Changeset 570 for trunk/grails-app/views


Ignore:
Timestamp:
Jun 16, 2010, 3:09:42 PM (11 years ago)
Author:
vinlud
Message:

Dynamic forms controls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/simpleQuery/common/_query.gsp

    r555 r570  
    2626    </div>
    2727    <g:submitButton name="search" value="Search" /> <g:if test="${term}"><g:submitButton name="reset" value="Clear" /></g:if>
    28     </g:form>
    2928
    3029    <br><br>
     
    3332      <h3><a href="#">Simple Assays</a></h3>
    3433      <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>
     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>
    4243      </div>
    4344
     
    4546
    4647      <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>
     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>
    5457      </div>
    5558    </div>
     59    </g:form>
    5660
    5761    <br><br>
Note: See TracChangeset for help on using the changeset viewer.