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

Last change on this file since 642 was 642, checked in by vinlud, 11 years ago

changes so far, not working yet

  • Property svn:keywords set to Date Author Rev
File size: 4.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="${search_term}"><g:set var="preterm" value="${search_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="search_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
28    <br>
29
30    <g:submitButton name="search" value="Search"  /> <g:if test="${search_term}"><g:submitButton name="reset" value="Clear" /></g:if>
31
32    <br><br>
33
34    <div id="accordion">
35      <h3><a href="#">Simple Assays</a></h3>
36      <div class="element">
37        <div id="compoundGroup">
38
39          <g:if test="${showFirstRowCompounds}">
40          <div id="compoundRow1">
41            <div class="descriptionSA">Compound</div>
42            <div class="input"><g:textField name="sa_compound" value="${search_sa_compounds}"/></div>
43            <div class="descriptionSA">Operator</div>
44            <div class="input" id="operatorInput"><g:select name="operator" from="${operators}" value="="/></div>
45            <div class="descriptionSA">Value</div>
46            <div class="input"><g:textField name="sa_value" value="${search_sa_values}"/></div>
47          </div>
48          </g:if>
49
50          <g:else>
51            <g:each status="i" in="${search_sa_compounds}" var="compound">
52            <div id="compoundRow${i}">
53              <div class="descriptionSA">Compound (e.g. 'glucose')</div>
54              <div class="input"><g:textField name="sa_compound" value="${compound}"/></div>
55              <div class="descriptionSA">Type of regulations</div>
56              <div class="input"><g:select name="operator" from="${operators}" value="="/></div>
57              <div class="descriptionSA">Value</div>
58              <div class="input"><g:textField name="sa_value" value="${search_sa_values[i]}"/></div>
59            </div>
60            </g:each>
61          </g:else>
62        </div>
63        <div id="addCompound" class="submit">Add compound</div>
64      </div>
65
66      <h3><a href="#">Transcriptomics</a></h3>
67
68      <div class="element">
69        <div id="transcriptomeGroup">
70          <div id="transcriptomeRow1">
71            <div class="description">List of Gene IDs or pathway IDs</div>
72            <div class="input"><g:textField name="genepath" value="" /></div>
73            <div class="description">Type of regulations</div>
74            <div class="input" id="regulationInput"><g:select name="regulation" from="" value="${regulation}" noSelection="['':'--- select regulation ---']"/></div>
75          </div>
76        </div>
77        <div id="addTranscriptome">Add transciptome</div>
78      </div>
79    </div>
80    </g:form>
81
82    <br><br>
83
84    <g:if test="${search_term}">
85        <h1><g:message code="Search results for term ${search_term}"/></h1>
86
87        <g:if test="${listStudies}">
88          <div class="list">
89            <table>
90                <thead>
91                    <tr>
92                        <g:sortableColumn property="title" title="${message(code: 'study.title.label', default: 'Study')}" />
93                    </tr>
94                </thead>
95                <tbody>
96                <g:each in="${listStudies}" var="Study" status="i" >
97                  <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
98                    <td><g:link action="show" id="${Study.id}">${fieldValue(bean: Study, field: "title")}</g:link></td>
99                  </tr>
100                </g:each>
101                </tbody>
102            </table>
103          </div>
104
105        </g:if>
106    </g:if>
107
108</div>
Note: See TracBrowser for help on using the repository browser.