1 | |
---|
2 | |
---|
3 | <html> |
---|
4 | <head> |
---|
5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
---|
6 | <meta name="layout" content="main" /> |
---|
7 | <title>Edit Task</title> |
---|
8 | </head> |
---|
9 | <body> |
---|
10 | <div class="nav"> |
---|
11 | <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span> |
---|
12 | <span class="menuButton"><g:link class="list" action="list">Task List</g:link></span> |
---|
13 | <span class="menuButton"><g:link class="create" action="create">New Task</g:link></span> |
---|
14 | </div> |
---|
15 | <div class="body"> |
---|
16 | <g:if test="${flash.message}"> |
---|
17 | <div class="message">${flash.message}</div> |
---|
18 | </g:if> |
---|
19 | <h1>Edit Task</h1> |
---|
20 | |
---|
21 | |
---|
22 | <g:hasErrors bean="${taskInstance}"> |
---|
23 | <div class="errors"> |
---|
24 | <g:renderErrors bean="${taskInstance}" as="list" /> |
---|
25 | </div> |
---|
26 | </g:hasErrors> |
---|
27 | <g:form method="post" > |
---|
28 | <input type="hidden" name="id" value="${taskInstance?.id}" /> |
---|
29 | <div class="buttons"> |
---|
30 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
31 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
32 | <span class="menuButton"><g:link controller="entry" params="['task.id':taskInstance.id]" action="create">Add Entry</g:link></span> |
---|
33 | <span class="menuButton"><g:link controller="modification" params="['task.id':taskInstance?.id]" action="list">Show Modifications</g:link></span> |
---|
34 | </div> |
---|
35 | <div class="dialog"> |
---|
36 | <table> |
---|
37 | <tbody> |
---|
38 | |
---|
39 | <tr class="prop"> |
---|
40 | <td valign="top" class="name"> |
---|
41 | <label for="name">Name:</label> |
---|
42 | </td> |
---|
43 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'name','errors')}"> |
---|
44 | <input type="text" style="width:200px" id="name" name="name" value="${fieldValue(bean:taskInstance,field:'name')}"/> |
---|
45 | </td> |
---|
46 | </tr> |
---|
47 | |
---|
48 | <tr class="prop"> |
---|
49 | <td valign="top" class="name"> |
---|
50 | <label for="description">Description:</label> |
---|
51 | </td> |
---|
52 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'description','errors')}"> |
---|
53 | ${hasErrors(bean:taskInstance,field:'description','errors')} |
---|
54 | <input type="text" style="width:350px" id="description" name="description" value="${fieldValue(bean:taskInstance,field:'description')}"/> |
---|
55 | </td> |
---|
56 | </tr> |
---|
57 | |
---|
58 | <tr class="prop"> |
---|
59 | <td valign="top" class="name"> |
---|
60 | <label for="leadPerson">Lead Person:</label> |
---|
61 | </td> |
---|
62 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'leadPerson','errors')}"> |
---|
63 | <g:select optionKey="id" from="${Person.list()}" name="leadPerson.id" value="${taskInstance?.leadPerson?.id}" ></g:select> |
---|
64 | </td> |
---|
65 | </tr> |
---|
66 | |
---|
67 | <tr class="prop"> |
---|
68 | <td valign="top" class="name"> |
---|
69 | <label for="scheduledDate">Scheduled Date:</label> |
---|
70 | </td> |
---|
71 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'scheduledDate','errors')}"> |
---|
72 | <g:datePicker name="scheduledDate" precision='day' value="${taskInstance?.scheduledDate}" ></g:datePicker> |
---|
73 | </td> |
---|
74 | </tr> |
---|
75 | |
---|
76 | <tr class="prop"> |
---|
77 | <td valign="top" class="name"> |
---|
78 | <label for="targetDate">Target Date:</label> |
---|
79 | </td> |
---|
80 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'targetDate','errors')}"> |
---|
81 | <g:datePicker name="targetDate" precision='day' value="${taskInstance?.targetDate}" ></g:datePicker> |
---|
82 | </td> |
---|
83 | </tr> |
---|
84 | |
---|
85 | <tr class="prop"> |
---|
86 | <td valign="top" class="name"> |
---|
87 | <label for="taskGroup">Task Group:</label> |
---|
88 | </td> |
---|
89 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskGroup','errors')}"> |
---|
90 | <g:select optionKey="id" from="${TaskGroup.list()}" name="taskGroup.id" value="${taskInstance?.taskGroup?.id}" ></g:select> |
---|
91 | </td> |
---|
92 | </tr> |
---|
93 | </tbody> |
---|
94 | </table> |
---|
95 | </div> |
---|
96 | |
---|
97 | </g:form> |
---|
98 | </div> |
---|
99 | </body> |
---|
100 | </html> |
---|