source: trunk/grails-app/views/simpleQuery/common/_query.gsp @ 570

Last change on this file since 570 was 570, checked in by vinlud, 12 years ago

Dynamic forms controls

  • Property svn:keywords set to Date Author Rev
File size: 3.3 KB
Line 
1<%--
2  Created by IntelliJ IDEA.
3  User: luddenv
4  Date: 26-mei-2010
5  Time: 13:17:50
6  To change this template use File | Settings | File Templates.
7--%>
8<div id="simpleQuery" class="simplequery">
9        <h1>Simple Query</h1>
10
11    <g:form action="pages" name="simpleQueryForm" id="simpleQueryForm">
12    <g:if test="${term}"><g:set var="preterm" value="${term}" /></g:if>
13    <div class="content">
14      <div class="element">
15        <div class="description">Search term (e.g. 'paracetamol')</div>
16        <div class="input"><g:textField name="term" value="${preterm}" /></div>
17      </div>
18      <div class="element">
19        <div class="description">Species (e.g. 'rattus norvegicus')</div>
20        <div class="input"><g:select name="species" from="${species}" value="" noSelection="['':'--- select a species ---']"/></div>
21      </div>
22      <div class="element">
23        <div class="description">Organ (e.g. 'liver')</div>
24        <div class="input"><g:select name="organ" from="" value="${organ}" noSelection="['':'--- select organ/tissue ---']"/></div>
25      </div>
26    </div>
27    <g:submitButton name="search" value="Search" /> <g:if test="${term}"><g:submitButton name="reset" value="Clear" /></g:if>
28
29    <br><br>
30
31    <div id="accordion">
32      <h3><a href="#">Simple Assays</a></h3>
33      <div class="element">
34        <div id="compoundGroup">
35          <div id="compoundRow1">
36            <div class="description">Compound (e.g. 'glucose')</div>
37            <div class="input"><g:textField name="compound" value="" id="compound1" /></div>
38            <div class="description">Value</div>
39            <div class="input"><g:textField name="compound_value" value="" id="compoundValue1" /></div>
40          </div>
41        </div>
42        <div id="addCompound">Add compound</div>
43      </div>
44
45      <h3><a href="#">Transcriptomics</a></h3>
46
47      <div class="element">
48        <div id="transcriptomeGroup">
49          <div id="transcriptomeRow1">
50            <div class="description">List of Gene IDs or pathway IDs</div>
51            <div class="input"><g:textField name="genepath" value="" /></div>
52            <div class="description">Type of regulations</div>
53            <div class="input"><g:select name="regulation" from="" value="${regulation}" noSelection="['':'--- select regulation ---']"/></div>
54          </div>
55        </div>
56        <div id="addTranscriptome">Add transciptome</div>
57      </div>
58    </div>
59    </g:form>
60
61    <br><br>
62
63    <g:if test="${term}">
64        <h1><g:message code="Search results for term ${term}"/></h1>
65
66        <g:if test="${listStudies}">
67          <div class="list">
68            <table>
69                <thead>
70                    <tr>
71                        <g:sortableColumn property="title" title="${message(code: 'study.title.label', default: 'Study')}" />
72                    </tr>
73                </thead>
74                <tbody>
75                <g:each in="${listStudies}" var="Study" status="i" >
76                  <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
77                    <td><g:link action="show" id="${Study.id}">${fieldValue(bean: Study, field: "title")}</g:link></td>
78                  </tr>
79                </g:each>
80                </tbody>
81            </table>
82          </div>
83
84        </g:if>
85    </g:if>
86
87</div>
Note: See TracBrowser for help on using the repository browser.