1 | |
---|
2 | <%@ page import="dbnp.studycapturing.EventDescription" %> |
---|
3 | <html> |
---|
4 | <head> |
---|
5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
---|
6 | <meta name="layout" content="main" /> |
---|
7 | <g:set var="entityName" value="${message(code: 'eventDescription.label', default: 'EventDescription')}" /> |
---|
8 | <g:setProvider library="jquery"/> |
---|
9 | <title><g:message code="default.edit.label" args="[entityName]" /></title> |
---|
10 | </head> |
---|
11 | |
---|
12 | <body> |
---|
13 | |
---|
14 | |
---|
15 | <div class="nav"> |
---|
16 | <span class="menuButton"><a class="home" href="${createLink(uri: '/')}">Home</a></span> |
---|
17 | <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span> |
---|
18 | <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span> |
---|
19 | </div> |
---|
20 | |
---|
21 | |
---|
22 | |
---|
23 | <div class="body"> |
---|
24 | <h1><g:message code="default.edit.label" args="[entityName]" /></h1> |
---|
25 | <g:if test="${flash.message}"> |
---|
26 | <div class="message">${flash.message}</div> |
---|
27 | </g:if> |
---|
28 | <g:hasErrors bean="${eventDescriptionInstance}"> |
---|
29 | <div class="errors"> |
---|
30 | <g:renderErrors bean="${eventDescriptionInstance}" as="list" /> |
---|
31 | </div> |
---|
32 | </g:hasErrors> |
---|
33 | |
---|
34 | |
---|
35 | <% println eventDescriptionInstance.toString() %> |
---|
36 | <g:form action="save" method="post" id="${eventDescriptionInstance.id}" onsubmit="addHiddenDialogsToForm();"> |
---|
37 | <g:hiddenField name="id" value="${eventDescriptionInstance?.id}" /> |
---|
38 | <g:hiddenField name="version" value="${eventDescriptionInstance?.version}" /> |
---|
39 | <div class="dialog"> |
---|
40 | <table> |
---|
41 | <tbody> |
---|
42 | |
---|
43 | <tr class="prop"> |
---|
44 | <td valign="top" class="name"> |
---|
45 | <label for="name"><g:message code="eventDescription.name.label" default="Name" /></label> |
---|
46 | </td> |
---|
47 | <td valign="top" class="value ${hasErrors(bean: eventDescriptionInstance, field: 'name', 'errors')}"> |
---|
48 | <g:textField name="name" value="${eventDescriptionInstance?.name}" /> |
---|
49 | </td> |
---|
50 | </tr> |
---|
51 | |
---|
52 | <tr class="prop"> |
---|
53 | <td valign="top" class="name"> |
---|
54 | <label for="description"><g:message code="eventDescription.description.label" default="Description" /></label> |
---|
55 | </td> |
---|
56 | <td valign="top" class="value ${hasErrors(bean: eventDescriptionInstance, field: 'description', 'errors')}"> |
---|
57 | <g:textArea name="description" value="${eventDescriptionInstance?.description}" rows="8" cols="80" /> |
---|
58 | </td> |
---|
59 | </tr> |
---|
60 | |
---|
61 | <tr class="prop"> |
---|
62 | <td valign="top" class="name"> |
---|
63 | <label for="classification"><g:message code="eventDescription.classification.label" default="Classification" /></label> |
---|
64 | </td> |
---|
65 | <td valign="top" class="value ${hasErrors(bean: eventDescriptionInstance, field: 'classification', 'errors')}"> |
---|
66 | <g:textField name="classification" value="${eventDescriptionInstance?.classification}" /> |
---|
67 | </td> |
---|
68 | </tr> |
---|
69 | |
---|
70 | <tr class="prop"> |
---|
71 | <td valign="top" class="name"> |
---|
72 | </td> |
---|
73 | <td valign="top" class="value ${hasErrors(bean: eventDescriptionInstance, field: 'protocol', 'errors')}"> |
---|
74 | </td> |
---|
75 | </tr> |
---|
76 | |
---|
77 | |
---|
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> |
---|
84 | <tr class="prop"> |
---|
85 | <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> |
---|
89 | </tr> |
---|
90 | |
---|
91 | |
---|
92 | |
---|
93 | |
---|
94 | </tbody> |
---|
95 | </table> |
---|
96 | </div> |
---|
97 | <g:include action="showMyProtocol" controller="eventDescription" id="${eventDescriptionInstance.id}" /> |
---|
98 | <div class="buttons"> |
---|
99 | <span class="button"><g:submitButton name="save" class="save" value="${message(code: 'default.save.label', default: 'Save')}" /></span> |
---|
100 | <span class="button"><g:submitToRemote class="delete" action="list" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span> |
---|
101 | </div> |
---|
102 | </g:form> |
---|
103 | </div> |
---|
104 | </body> |
---|
105 | </html> |
---|