Ignore:
Timestamp:
Mar 24, 2010, 11:51:25 AM (13 years ago)
Author:
jahn
Message:

Added an actually non editable show. (Parameters script needs to be adapted, still.)

File:
1 edited

Legend:

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

    r299 r308  
    3333
    3434
    35            <% println eventDescriptionInstance.toString() %>
    3635            <g:form action="save" method="post" id="${eventDescriptionInstance.id}" onsubmit="addHiddenDialogsToForm();">
    3736                <g:hiddenField name="id" value="${eventDescriptionInstance?.id}" />
     
    7675
    7776
    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
    8478                            <tr class="prop">
    8579                                <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>
    8981                            </tr>
    9082
     
    9385
    9486                        </tbody>
     87
     88
     89                            <g:include action="showMyProtocol" controller="eventDescription" id="${eventDescriptionInstance.id}" params="[editable:true]" />
     90
    9591                    </table>
    9692                </div>
    97                                 <g:include action="showMyProtocol" controller="eventDescription" id="${eventDescriptionInstance.id}" />
     93
     94
    9895                <div class="buttons">
    9996                    <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.