Changeset 308 for trunk/grails-app/views/eventDescription/edit.gsp
- Timestamp:
- Mar 24, 2010, 11:51:25 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/eventDescription/edit.gsp
r299 r308 33 33 34 34 35 <% println eventDescriptionInstance.toString() %>36 35 <g:form action="save" method="post" id="${eventDescriptionInstance.id}" onsubmit="addHiddenDialogsToForm();"> 37 36 <g:hiddenField name="id" value="${eventDescriptionInstance?.id}" /> … … 76 75 77 76 78 <tr class="prop"> 79 <g:if test="!editExisting"> 80 <td valign="top" class="name"> <label> This is a sampling event</label> </td> 81 <td> <INPUT TYPE="checkbox" NAME="isSample" VALUE="true" <% if(eventDescriptionInstance==null) print 'disabled' %> > </td> 82 </g:if> 83 <g:else> 77 84 78 <tr class="prop"> 85 79 <td valign="top" class="name"> <label> This is a sampling event</label> </td> 86 <td valign="top" class="value ${hasErrors(bean: eventDescriptionInstance, field: 'protocol', 'errors')}"> 87 <label for="protocol"><g:message code="${eventDescriptionInstance.isSamplingEvent?'yes':'no'}" /></label> 88 </g:else> 80 <td> <INPUT TYPE="checkbox" NAME="isSample" VALUE="true" disabled> </td> 89 81 </tr> 90 82 … … 93 85 94 86 </tbody> 87 88 89 <g:include action="showMyProtocol" controller="eventDescription" id="${eventDescriptionInstance.id}" params="[editable:true]" /> 90 95 91 </table> 96 92 </div> 97 <g:include action="showMyProtocol" controller="eventDescription" id="${eventDescriptionInstance.id}" /> 93 94 98 95 <div class="buttons"> 99 96 <span class="button"><g:submitButton name="save" class="save" value="${message(code: 'default.save.label', default: 'Save')}" /></span>
Note: See TracChangeset
for help on using the changeset viewer.