1 | |
---|
2 | <%@ page import="dbnp.studycapturing.Study" %> |
---|
3 | <html> |
---|
4 | <head> |
---|
5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
---|
6 | <meta name="layout" content="${layout}" /> |
---|
7 | <g:set var="entityName" value="${message(code: 'study.label', default: 'Study')}" /> |
---|
8 | <title><g:message code="default.create.label" args="[entityName]" /></title> |
---|
9 | </head> |
---|
10 | <body> |
---|
11 | <div class="body"> |
---|
12 | <h1><g:message code="default.create.label" args="[entityName]" /></h1> |
---|
13 | <g:if test="${flash.message}"> |
---|
14 | <div class="message">${flash.message}</div> |
---|
15 | </g:if> |
---|
16 | <g:hasErrors bean="${studyInstance}"> |
---|
17 | <div class="errors"> |
---|
18 | <g:renderErrors bean="${studyInstance}" as="list" /> |
---|
19 | </div> |
---|
20 | </g:hasErrors> |
---|
21 | <g:form action="save" method="post" > |
---|
22 | <div class="dialog"> |
---|
23 | <p><b>Instructions</b>: Start by creating a study. For this pilot a title and start date are sufficient. When finished click on the "Create" button.</p> |
---|
24 | <table> |
---|
25 | <tbody> |
---|
26 | |
---|
27 | <tr class="prop"> |
---|
28 | <td valign="top" class="name"> |
---|
29 | <label for="title"><g:message code="study.title.label" default="Title" /></label> |
---|
30 | </td> |
---|
31 | <td valign="top" class="value ${hasErrors(bean: studyInstance, field: 'title', 'errors')}"> |
---|
32 | <g:textField name="title" value="${studyInstance?.title}" /> |
---|
33 | </td> |
---|
34 | </tr> |
---|
35 | |
---|
36 | <tr class="prop"> |
---|
37 | <td valign="top" class="name"> |
---|
38 | <label for="startDate"><g:message code="study.startDate.label" default="Start Date" /></label> |
---|
39 | </td> |
---|
40 | <td valign="top" class="value ${hasErrors(bean: studyInstance, field: 'startDate', 'errors')}"> |
---|
41 | <g:datePicker name="startDate" precision="day" value="${studyInstance?.startDate}" /> |
---|
42 | </td> |
---|
43 | </tr> |
---|
44 | |
---|
45 | </tbody> |
---|
46 | </table> |
---|
47 | </div> |
---|
48 | <div class="buttons"> |
---|
49 | <g:each in="${extraparams}" var="param"> |
---|
50 | <input type="hidden" name="${param.key}" value="${param.value}"> |
---|
51 | </g:each> |
---|
52 | <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span> |
---|
53 | <span class="button"><g:link class="cancel" action="list" params="${extraparams}">Cancel</g:link></span> |
---|
54 | </div> |
---|
55 | </g:form> |
---|
56 | </div> |
---|
57 | </body> |
---|
58 | </html> |
---|