Changeset 240 for trunk/grails-app/views
- Timestamp:
- Dec 22, 2009, 5:38:37 PM (15 years ago)
- Location:
- trunk/grails-app/views
- Files:
-
- 5 added
- 1 deleted
- 8 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> -
trunk/grails-app/views/assignedGroupDetailed/edit.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>Edit Assigned Person</title>7 <title>Edit AssignedGroup</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 <h1>Edit Assigned Person</h1>11 <h1>Edit 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 method="post" > 23 <input type="hidden" name="id" value="${assigned PersonInstance?.id}" />24 <input type="hidden" name="version" value="${assigned PersonInstance?.version}" />23 <input type="hidden" name="id" value="${assignedGroupInstance?.id}" /> 24 <input type="hidden" name="version" value="${assignedGroupInstance?.version}" /> 25 25 <div class="dialog"> 26 26 <table> … … 31 31 <label for="task">Task:</label> 32 32 </td> 33 <td valign="top" class="value ${hasErrors(bean:assignedPersonInstance,field:'task','errors')}"> 34 <g:select optionKey="id" from="${Task.list()}" name="task.id" value="${assignedPersonInstance?.task?.id}" ></g:select> 33 <td valign="top" class="name"> 34 <g:link controller="taskDetailed" action="show" id="${assignedGroupInstance.task.id}" > 35 ${assignedGroupInstance?.task.encodeAsHTML()} 36 </g:link> 35 37 </td> 36 </tr> 38 </tr> 37 39 38 40 <tr class="prop"> 39 41 <td valign="top" class="name"> 40 <label for="person ">Person:</label>42 <label for="personGroup">Group:</label> 41 43 </td> 42 <td valign="top" class="value ${hasErrors(bean:assigned PersonInstance,field:'person','errors')}">43 <g:select optionKey="id" from="${Person .list()}" name="person.id" value="${assignedPersonInstance?.person?.id}" ></g:select>44 <td valign="top" class="value ${hasErrors(bean:assignedGroupInstance,field:'personGroup','errors')}"> 45 <g:select optionKey="id" from="${PersonGroup.list()}" name="personGroup.id" value="${assignedGroupInstance?.personGroup?.id}" ></g:select> 44 46 </td> 45 47 </tr> … … 50 52 </td> 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> -
trunk/grails-app/views/assignedGroupDetailed/list.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>Assigned PersonList</title>7 <title>AssignedGroup List</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 <h1>Assigned PersonList</h1>11 <h1>Assigned Group List</h1> 12 12 </div> 13 13 <div class="body"> … … 24 24 <th>Task</th> 25 25 26 <th> Person</th>26 <th>Group</th> 27 27 28 28 <g:sortableColumn property="estimatedHour" title="Estimated Hour" /> … … 33 33 </thead> 34 34 <tbody> 35 <g:each in="${assigned PersonInstanceList}" status="i" var="assignedPersonInstance">35 <g:each in="${assignedGroupInstanceList}" status="i" var="assignedGroupInstance"> 36 36 <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> 37 37 38 <td><g:link action="show" id="${assigned PersonInstance.id}">${fieldValue(bean:assignedPersonInstance, field:'id')}</g:link></td>38 <td><g:link action="show" id="${assignedGroupInstance.id}">${fieldValue(bean:assignedGroupInstance, field:'id')}</g:link></td> 39 39 40 <td>${fieldValue(bean:assigned PersonInstance, field:'task')}</td>40 <td>${fieldValue(bean:assignedGroupInstance, field:'task')}</td> 41 41 42 <td>${fieldValue(bean:assigned PersonInstance, field:'person')}</td>42 <td>${fieldValue(bean:assignedGroupInstance, field:'personGroup')}</td> 43 43 44 <td>${fieldValue(bean:assigned PersonInstance, field:'estimatedHour')}</td>44 <td>${fieldValue(bean:assignedGroupInstance, field:'estimatedHour')}</td> 45 45 46 <td>${fieldValue(bean:assigned PersonInstance, field:'estimatedMinute')}</td>46 <td>${fieldValue(bean:assignedGroupInstance, field:'estimatedMinute')}</td> 47 47 48 48 </tr> … … 52 52 </div> 53 53 <div class="paginateButtons"> 54 <g:paginate total="${assigned PersonInstanceTotal}" />54 <g:paginate total="${assignedGroupInstanceTotal}" /> 55 55 </div> 56 56 </div> -
trunk/grails-app/views/assignedGroupDetailed/show.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>Show Assigned Person</title>7 <title>Show AssignedGroup</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 <h1>Show Assigned Person</h1>11 <h1>Show Assigned Group</h1> 12 12 </div> 13 13 <div class="body"> … … 23 23 <td valign="top" class="name">Id:</td> 24 24 25 <td valign="top" class="value">${fieldValue(bean:assigned PersonInstance, field:'id')}</td>25 <td valign="top" class="value">${fieldValue(bean:assignedGroupInstance, field:'id')}</td> 26 26 27 27 </tr> … … 30 30 <td valign="top" class="name">Task:</td> 31 31 32 <td valign="top" class="value"><g:link controller="taskDetailed" action="show" id="${assigned PersonInstance?.task?.id}">${assignedPersonInstance?.task?.encodeAsHTML()}</g:link></td>32 <td valign="top" class="value"><g:link controller="taskDetailed" action="show" id="${assignedGroupInstance?.task?.id}">${assignedGroupInstance?.task?.encodeAsHTML()}</g:link></td> 33 33 34 34 </tr> 35 35 36 36 <tr class="prop"> 37 <td valign="top" class="name"> Person:</td>37 <td valign="top" class="name">Group:</td> 38 38 39 <td valign="top" class="value"><g:link controller="person " action="show" id="${assignedPersonInstance?.person?.id}">${assignedPersonInstance?.person?.encodeAsHTML()}</g:link></td>39 <td valign="top" class="value"><g:link controller="personGroup" action="show" id="${assignedGroupInstance?.personGroup?.id}">${assignedGroupInstance?.personGroup?.encodeAsHTML()}</g:link></td> 40 40 41 41 </tr> … … 43 43 <tr class="prop"> 44 44 <td valign="top" class="name">Estimated Duration:</td> 45 <td valign="top" class="value">${assigned PersonInstance.estimatedHour}h : ${assignedPersonInstance.estimatedMinute}min</td>45 <td valign="top" class="value">${assignedGroupInstance.estimatedHour}h : ${assignedGroupInstance.estimatedMinute}min</td> 46 46 </tr> 47 47 … … 51 51 <div class="buttons"> 52 52 <g:form> 53 <input type="hidden" name="id" value="${assigned PersonInstance?.id}" />53 <input type="hidden" name="id" value="${assignedGroupInstance?.id}" /> 54 54 <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> 55 55 <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> -
trunk/grails-app/views/task/edit.gsp
r181 r240 139 139 <tr class="prop"> 140 140 <td valign="top" class="name"> 141 <label for="assigned Persons">Assigned Persons:</label>142 </td> 143 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'assigned Persons','errors')}">144 145 <ul> 146 <g:each var="a" in="${taskInstance?.assigned Persons?}">147 <li><g:link controller="assigned Person" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>148 </g:each> 149 </ul> 150 <g:link controller="assigned Person" params="['task.id':taskInstance?.id]" action="create">Add AssignedPerson</g:link>141 <label for="assignedGroups">Assigned Groups:</label> 142 </td> 143 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'assignedGroups','errors')}"> 144 145 <ul> 146 <g:each var="a" in="${taskInstance?.assignedGroups?}"> 147 <li><g:link controller="assignedGroup" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 148 </g:each> 149 </ul> 150 <g:link controller="assignedGroup" params="['task.id':taskInstance?.id]" action="create">Add AssignedGroup</g:link> 151 151 152 152 </td> -
trunk/grails-app/views/task/show.gsp
r181 r240 114 114 115 115 <tr class="prop"> 116 <td valign="top" class="name">Assigned Persons:</td>117 118 <td valign="top" style="text-align:left;" class="value"> 119 <ul> 120 <g:each var="a" in="${taskInstance.assigned Persons}">121 <li><g:link controller="assigned Person" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>116 <td valign="top" class="name">Assigned Groups:</td> 117 118 <td valign="top" style="text-align:left;" class="value"> 119 <ul> 120 <g:each var="a" in="${taskInstance.assignedGroups}"> 121 <li><g:link controller="assignedGroup" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 122 122 </g:each> 123 123 </ul> -
trunk/grails-app/views/taskDetailed/edit.gsp
r213 r240 151 151 <tr class="prop"> 152 152 <td valign="top" class="name"> 153 <label for="assigned Persons">Assigned Persons:</label>153 <label for="assignedGroups">Assigned Groups:</label> 154 154 </td> 155 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'assigned Persons','errors')}">155 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'assignedGroups','errors')}"> 156 156 157 157 <ul> 158 <g:each var="a" in="${taskInstance?.assigned Persons?}">159 <li><g:link controller="assigned PersonDetailed" action="edit" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>158 <g:each var="a" in="${taskInstance?.assignedGroups?}"> 159 <li><g:link controller="assignedGroupDetailed" action="edit" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 160 160 </g:each> 161 161 </ul> -
trunk/grails-app/views/taskDetailed/show.gsp
r225 r240 183 183 184 184 <tr class="prop"> 185 <td valign="top" class="name">Assigned Persons:</td>185 <td valign="top" class="name">Assigned Groups:</td> 186 186 187 187 <td valign="top" style="text-align:left;" class="value"> 188 188 <ul> 189 <g:each var="a" in="${taskInstance.assigned Persons}">190 <li><g:link controller="assigned PersonDetailed" action="edit" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>189 <g:each var="a" in="${taskInstance.assignedGroups}"> 190 <li><g:link controller="assignedGroupDetailed" action="edit" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 191 191 </g:each> 192 192 </ul> 193 <g:link controller="assigned PersonDetailed" params="['task.id':taskInstance?.id]" action="create">Add AssignedPerson</g:link>193 <g:link controller="assignedGroupDetailed" params="['task.id':taskInstance?.id]" action="create">Add Assigned Group</g:link> 194 194 </td> 195 195
Note: See TracChangeset
for help on using the changeset viewer.