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 | <title><g:message code="default.create.label" args="[entityName]" /></title> |
---|
9 | </head> |
---|
10 | <body> |
---|
11 | <div class="nav"> |
---|
12 | <span class="menuButton"><a class="home" href="${createLink(uri: '/')}">Home</a></span> |
---|
13 | <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span> |
---|
14 | </div> |
---|
15 | <div class="body"> |
---|
16 | <h1><g:message code="default.create.label" args="[entityName]" /></h1> |
---|
17 | <g:if test="${flash.message}"> |
---|
18 | <div class="message">${flash.message}</div> |
---|
19 | </g:if> |
---|
20 | <g:hasErrors bean="${eventDescriptionInstance}"> |
---|
21 | <div class="errors"> |
---|
22 | <g:renderErrors bean="${eventDescriptionInstance}" as="list" /> |
---|
23 | </div> |
---|
24 | </g:hasErrors> |
---|
25 | <g:form action="save" method="post" > |
---|
26 | <div class="dialog"> |
---|
27 | <table> |
---|
28 | <tbody> |
---|
29 | |
---|
30 | <tr class="prop"> |
---|
31 | <td valign="top" class="name"> |
---|
32 | <label for="protocol"><g:message code="eventDescription.protocol.label" default="Protocol" /></label> |
---|
33 | </td> |
---|
34 | <td valign="top" class="value ${hasErrors(bean: eventDescriptionInstance, field: 'protocol', 'errors')}"> |
---|
35 | <g:select name="protocol.id" from="${dbnp.studycapturing.ProtocolInstance.list()}" optionKey="id" value="${eventDescriptionInstance?.protocol?.id}" /> |
---|
36 | </td> |
---|
37 | </tr> |
---|
38 | |
---|
39 | <tr class="prop"> |
---|
40 | <td valign="top" class="name"> |
---|
41 | <label for="description"><g:message code="eventDescription.description.label" default="Description" /></label> |
---|
42 | </td> |
---|
43 | <td valign="top" class="value ${hasErrors(bean: eventDescriptionInstance, field: 'description', 'errors')}"> |
---|
44 | <g:textField name="description" value="${eventDescriptionInstance?.description}" /> |
---|
45 | </td> |
---|
46 | </tr> |
---|
47 | |
---|
48 | <tr class="prop"> |
---|
49 | <td valign="top" class="name"> |
---|
50 | <label for="name"><g:message code="eventDescription.name.label" default="Name" /></label> |
---|
51 | </td> |
---|
52 | <td valign="top" class="value ${hasErrors(bean: eventDescriptionInstance, field: 'name', 'errors')}"> |
---|
53 | <g:textField name="name" value="${eventDescriptionInstance?.name}" /> |
---|
54 | </td> |
---|
55 | </tr> |
---|
56 | |
---|
57 | <tr class="prop"> |
---|
58 | <td valign="top" class="name"> |
---|
59 | <label for="classification"><g:message code="eventDescription.classification.label" default="Classification" /></label> |
---|
60 | </td> |
---|
61 | <td valign="top" class="value ${hasErrors(bean: eventDescriptionInstance, field: 'classification', 'errors')}"> |
---|
62 | <g:textField name="classification" value="${eventDescriptionInstance?.classification}" /> |
---|
63 | </td> |
---|
64 | </tr> |
---|
65 | |
---|
66 | </tbody> |
---|
67 | </table> |
---|
68 | </div> |
---|
69 | <div class="buttons"> |
---|
70 | <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span> |
---|
71 | </div> |
---|
72 | </g:form> |
---|
73 | </div> |
---|
74 | </body> |
---|
75 | </html> |
---|