Changeset 240 for trunk/grails-app/views/assignedGroupDetailed/create.gsp
- Timestamp:
- Dec 22, 2009, 5:38:37 PM (15 years ago)
- Location:
- trunk/grails-app/views/assignedGroupDetailed
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/assignedGroupDetailed/create.gsp
r147 r240 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Create Assigned Person</title>7 <title>Create Assigned Group</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 <h1>Create Assigned Person</h1>11 <h1>Create Assigned Group</h1> 12 12 </div> 13 13 <div class="body"> … … 15 15 <div class="message">${flash.message}</div> 16 16 </g:if> 17 <g:hasErrors bean="${assigned PersonInstance}">17 <g:hasErrors bean="${assignedGroupInstance}"> 18 18 <div class="errors"> 19 <g:renderErrors bean="${assigned PersonInstance}" as="list" />19 <g:renderErrors bean="${assignedGroupInstance}" as="list" /> 20 20 </div> 21 21 </g:hasErrors> 22 22 <g:form action="save" method="post" > 23 <input type="hidden" name="task.id" value="${assigned PersonInstance?.task?.id}" />23 <input type="hidden" name="task.id" value="${assignedGroupInstance?.task?.id}" /> 24 24 <div class="dialog"> 25 25 <table> … … 30 30 <label for="task">Task:</label> 31 31 </td> 32 <td valign="top" class="value ${hasErrors(bean:assignedPersonInstance,field:'task','errors')}"> 33 ${assignedPersonInstance?.task} 32 <td valign="top" class="name"> 33 <g:link controller="taskDetailed" action="show" id="${assignedGroupInstance.task.id}" > 34 ${assignedGroupInstance?.task.encodeAsHTML()} 35 </g:link> 34 36 </td> 35 </tr> 37 </tr> 36 38 37 39 <tr class="prop"> 38 40 <td valign="top" class="name"> 39 <label for="person ">Person:</label>41 <label for="personGroup">Group:</label> 40 42 </td> 41 <td valign="top" class="value ${hasErrors(bean:assigned PersonInstance,field:'person','errors')}">42 <g:select optionKey="id" from="${Person .list()}" name="person.id" value="${assignedPersonInstance?.person?.id}" ></g:select>43 <td valign="top" class="value ${hasErrors(bean:assignedGroupInstance,field:'personGroup','errors')}"> 44 <g:select optionKey="id" from="${PersonGroup.list()}" name="personGroup.id" value="${assignedGroupInstance?.personGroup?.id}" ></g:select> 43 45 </td> 44 46 </tr> … … 50 52 51 53 <td valign="top" class="value"> 52 <input class="time ${hasErrors(bean:assigned PersonInstance,field:'estimatedHour','errors')}"54 <input class="time ${hasErrors(bean:assignedGroupInstance,field:'estimatedHour','errors')}" 53 55 type="text" id="estimatedHour" name="estimatedHour" 54 value="${fieldValue(bean:assigned PersonInstance,field:'estimatedHour')}" />56 value="${fieldValue(bean:assignedGroupInstance,field:'estimatedHour')}" /> 55 57 : 56 <input class="time ${hasErrors(bean:assigned PersonInstance,field:'estimatedMinute','errors')}"58 <input class="time ${hasErrors(bean:assignedGroupInstance,field:'estimatedMinute','errors')}" 57 59 type="text" id="estimatedMinute" name="estimatedMinute" 58 value="${fieldValue(bean:assigned PersonInstance,field:'estimatedMinute')}" />59 <g:helpBalloon code="assigned Person.estimatedDuration" />60 value="${fieldValue(bean:assignedGroupInstance,field:'estimatedMinute')}" /> 61 <g:helpBalloon code="assignedGroup.estimatedDuration" /> 60 62 </td> 61 63 </tr>
Note: See TracChangeset
for help on using the changeset viewer.