Ignore:
Timestamp:
Mar 22, 2010, 2:56:15 AM (9 years ago)
Author:
jahn
Message:

Views for EventDescription? (edit and create) have been cleaned, tested, debugged, and improved.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/eventDescription/showMyProtocolFilled.gsp

    r249 r289  
    251251
    252252
    253 
    254 
    255 
    256 
    257 
    258 
    259 
    260 
    261 
    262 
    263 
    264253<tr class="prop">
    265     <td id='test'>  Protocol </td>
    266     <td> <g:select name="protocol" from="${dbnp.studycapturing.Protocol.list()}" value="${protocol}" optionKey="id"   optionValue="name"
     254    <td id='test'> Protocol </td>
     255
     256    <% def protocols = dbnp.studycapturing.Protocol.list() %>
     257    <td>
     258           <g:if test="${protocol==null}">
     259               <g:select name="protocol" from="${protocols}" optionKey="id"   optionValue="name"  noSelection="['':'-- Select Protocol -- ']"
    267260                   onchange= "${remoteFunction( action:'showProtocolParameters', update:'showProtocolParameters', params:'\'id=\'+this.value' )}; deleteHiddenDialogs();" />
     261           </g:if>
     262
     263           <g:else>
     264               <g:select name="protocol" from="${protocols}" optionKey="id"   optionValue="name" value='${protocol.id}'
     265                   onchange= "${remoteFunction( action:'showProtocolParameters', update:'showProtocolParameters', params:'\'id=\'+this.value' )}; deleteHiddenDialogs();" />
     266           </g:else>
    268267    </td>
     268
     269
    269270</tr>
     271
    270272
    271273
Note: See TracChangeset for help on using the changeset viewer.