- Timestamp:
- Mar 24, 2010, 11:51:25 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/eventDescription/showMyProtocolFilled.gsp
r299 r308 251 251 252 252 253 <tr class="prop"> 254 <td id='test'> Protocol </td>255 256 <% def protocols = dbnp.studycapturing.Protocol.list() %> 257 <td>Name</td>258 </tr>259 <tr class="prop"> 253 254 <g:if test="${editable}"> 255 <tbody name="protocolselector" > 256 257 <tr> 258 <td>Protocol </td> 259 260 260 <td> 261 <% def protocols = dbnp.studycapturing.Protocol.list() %> 261 262 <g:if test="${protocol==null}"> 262 263 <g:select name="protocol" from="${protocols}" optionKey="id" optionValue="name" noSelection="['':'-- Select Protocol -- ']" 263 264 264 onchange= "${remoteFunction( action:'showProtocolParameters', update:'showProtocolParameters', params:'\'id=\'+this.value' )}; deleteHiddenDialogs();" /> 265 </g:if> 265 266 266 267 <g:else> 267 268 <g:select name="protocol" from="${protocols}" optionKey="id" optionValue="name" value='${protocol.id}' 268 269 onchange= "${remoteFunction( action:'showProtocolParameters', update:'showProtocolParameters', params:'\'id=\'+this.value' )}; deleteHiddenDialogs();" /> 269 270 </g:else> 270 271 </td> 271 272 273 272 </tr> 274 273 275 274 276 277 <tr><td></td> 278 <td> 279 280 <table id="someId" > 281 282 283 <thead> 284 <tr class="prop"> 275 </tbody> 276 </g:if> 277 278 279 280 281 282 283 <tr> <td colspan=2> 284 285 <table id="someId" > 286 <thead> 287 <tr class="prop"> 285 288 286 289 <th valign="top" class="name" width=200> … … 312 315 </th> 313 316 314 </tr> 315 </thead> 316 317 318 319 <tbody id="showProtocolParameters"> 320 <g:include action="showProtocolParameters" controller="eventDescription" id="${description.id} params="[protocol:protocol]" /> 321 </tbody> 322 323 324 <tbody> <tr> 325 <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td> <input type="button" value="Add Parameter" onclick="addRowEmpty('showProtocolParameters')"/> </td> 326 </tr> </tbody> 327 328 </table> 329 317 </tr> 318 </thead> 319 320 321 322 <tbody id="showProtocolParameters"> 323 <g:include action="showProtocolParameters" controller="eventDescription" id="${description.id} params="[protocol:protocol]" /> 324 </tbody> 325 326 327 <g:if test="${editable}"> 328 <tbody> 329 <tr> 330 <td> </td> <td></td> <td></td> <td></td> <td></td> <td></td> 331 <td> <input type="button" value="Add Parameter" onclick="addRowEmpty('showProtocolParameters')"/> </td> 332 </tr> 333 </tbody> 334 </g:if> 335 336 337 338 </table> 330 339 331 340 </td> </tr>
Note: See TracChangeset
for help on using the changeset viewer.