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

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

Improved overview + reset button

  • 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    </g:form>
29
30    <br><br>
31
32    <div id="accordion">
33      <h3><a href="#">Simple Assays</a></h3>
34      <div class="element">
35        <g:form action="pages" name="addCompound" id="addCompound">
36        <div class="description">Compound (e.g. 'glucose')</div>
37        <div class="input"><g:textField name="compound" value="" /></div>
38        <div class="description">Value</div>
39        <div class="input"><g:textField name="compound_value" value="" /></div>
40        <g:submitButton id="addCompound" name="addCompound" value="Add compound" />
41        </g:form>
42      </div>
43
44      <h3><a href="#">Transcriptomics</a></h3>
45
46      <div class="element">
47        <g:form action="pages" name="addTransciptome" id="addTransciptome">
48        <div class="description">List of Gene IDs or pathway IDs</div>
49        <div class="input"><g:textField name="genepath" value="" /></div>
50        <div class="description">Type of regulations</div>
51        <div class="input"><g:select name="regulation" from="" value="${regulation}" noSelection="['':'--- select regulation ---']"/></div>
52        <g:submitButton id="addTransciptome" name="addTransciptome" value="Add transciptome" />
53        </g:form>
54      </div>
55    </div>
56
57    <br><br>
58
59    <g:if test="${term}">
60        <h1><g:message code="Search results for term ${term}"/></h1>
61
62        <g:if test="${listStudies}">
63          <div class="list">
64            <table>
65                <thead>
66                    <tr>
67                        <g:sortableColumn property="title" title="${message(code: 'study.title.label', default: 'Study')}" />
68                    </tr>
69                </thead>
70                <tbody>
71                <g:each in="${listStudies}" var="Study" status="i" >
72                  <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
73                    <td><g:link action="show" id="${Study.id}">${fieldValue(bean: Study, field: "title")}</g:link></td>
74                  </tr>
75                </g:each>
76                </tbody>
77            </table>
78          </div>
79
80        </g:if>
81    </g:if>
82
83</div>
Note: See TracBrowser for help on using the repository browser.