Changeset 798 for trunk/grails-app/views/taskProcedureDetailed
- Timestamp:
- Feb 8, 2011, 11:00:27 PM (14 years ago)
- Location:
- trunk/grails-app/views/taskProcedureDetailed
- Files:
-
- 1 deleted
- 3 edited
- 5 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/taskProcedureDetailed/create.gsp
r173 r798 7 7 <title>Create TaskProcedure</title> 8 8 <nav:resources override="true"/> 9 <g:javascript src="dynamicOneToMany.js" /> 9 10 </head> 10 11 <body> … … 13 14 </div> 14 15 <div class="body"> 15 <g:if test="${flash.message}"> 16 <div class="message">${flash.message}</div> 17 </g:if> 16 <g:render template="/shared/messages" /> 17 18 18 <g:hasErrors bean="${taskProcedureInstance}"> 19 <div class="errors">20 <g:renderErrors bean="${taskProcedureInstance}" as="list" />21 </div>19 <div class="errors"> 20 <g:renderErrors bean="${taskProcedureInstance}" as="list" /> 21 </div> 22 22 </g:hasErrors> 23 23 24 <g:form action="save" method="post" > 24 <input type="hidden" name="taskInstance.id" value="${taskInstance?.id}" />25 <input type="hidden" name="linkedTask.id" value="${taskProcedureInstance.linkedTask.id}" /> 25 26 26 <div class="dialog"> 27 <table> 28 <tbody> 27 <g:render template="taskProcedure" model="['taskProcedureInstance': taskProcedureInstance]" /> 29 28 30 <tr class="prop">31 <td valign="top" class="name">32 <label for="name">Name:</label>33 </td>34 <td valign="top" class="value ${hasErrors(bean:taskProcedureInstance,field:'name','errors')}">35 <input type="text" class="description" maxlength="75" id="name" name="name" value="${fieldValue(bean:taskProcedureInstance,field:'name')}"/>36 </td>37 </tr>38 39 <tr class="prop">40 <td valign="top" class="name">41 <label for="description">Description:</label>42 </td>43 <td valign="top" class="value ${hasErrors(bean:taskProcedureInstance,field:'description','errors')}">44 <input type="text" class="description" maxlength="100" id="description" name="description" value="${fieldValue(bean:taskProcedureInstance,field:'description')}"/>45 </td>46 </tr>47 48 <tr class="prop">49 <td valign="top" class="name">50 <label for="isActive">Is Active:</label>51 </td>52 <td valign="top" class="value ${hasErrors(bean:taskProcedureInstance,field:'isActive','errors')}">53 <g:checkBox name="isActive" value="${taskProcedureInstance?.isActive}" ></g:checkBox>54 </td>55 </tr>56 57 <g:if test="${taskInstance}">58 <tr class="prop">59 <td valign="top" class="name">60 <label for="taskInstance">Linking with Task:</label>61 </td>62 <td valign="top" name="taskInstance" class="value">63 ${taskInstance}64 </td>65 </tr>66 </g:if>67 68 </tbody>69 </table>70 </div>71 29 <div class="buttons"> 72 30 <span class="button"><input class="save" type="submit" value="Create" /></span> … … 74 32 </g:form> 75 33 </div> 34 <table style="display:none;"> 35 <g:render template="documentReference" model="['docRef': null, 36 'i': '_clone']" /> 37 </table> 38 <table style="display:none;"> 39 <g:render template="maintenanceAction" model="['tp': null, 40 'ma': null, 41 'i': '_clone', 42 'assemblies': assemblies]" /> 43 </table> 76 44 </body> 77 45 </html> -
trunk/grails-app/views/taskProcedureDetailed/edit.gsp
r410 r798 7 7 <title>Edit TaskProcedure</title> 8 8 <nav:resources override="true"/> 9 <g:javascript src="dynamicOneToMany.js" /> 9 10 </head> 10 11 <body> … … 13 14 </div> 14 15 <div class="body"> 15 <g:if test="${flash.message}"> 16 <div class="message">${flash.message}</div> 17 </g:if> 16 <g:render template="/shared/messages" /> 17 18 18 <g:hasErrors bean="${taskProcedureInstance}"> 19 <div class="errors">20 <g:renderErrors bean="${taskProcedureInstance}" as="list" />21 </div>19 <div class="errors"> 20 <g:renderErrors bean="${taskProcedureInstance}" as="list" /> 21 </div> 22 22 </g:hasErrors> 23 23 24 <g:form method="post" > 24 25 <input type="hidden" name="id" value="${taskProcedureInstance?.id}" /> 25 26 <input type="hidden" name="version" value="${taskProcedureInstance?.version}" /> 26 <div class="dialog">27 <table>28 <tbody>29 30 <tr class="prop">31 <td valign="top" class="name">32 <label for="name">Name:</label>33 </td>34 <td valign="top" class="value ${hasErrors(bean:taskProcedureInstance,field:'name','errors')}">35 <input type="text" class="description" maxlength="75" id="name" name="name" value="${fieldValue(bean:taskProcedureInstance,field:'name')}"/>36 </td>37 </tr>38 39 <tr class="prop">40 <td valign="top" class="name">41 <label for="description">Description:</label>42 </td>43 <td valign="top" class="value ${hasErrors(bean:taskProcedureInstance,field:'description','errors')}">44 <input type="text" class="description" maxlength="100" id="description" name="description" value="${fieldValue(bean:taskProcedureInstance,field:'description')}"/>45 </td>46 </tr>47 48 <tr class="prop">49 <td valign="top" class="name">50 <label for="isActive">Is Active:</label>51 </td>52 <td valign="top" class="value ${hasErrors(bean:taskProcedureInstance,field:'isActive','errors')}">53 <g:checkBox name="isActive" value="${taskProcedureInstance?.isActive}" ></g:checkBox>54 </td>55 </tr>56 57 <tr class="prop">58 <td valign="top" class="name">59 <label for="maintenanceActions">Maintenance Actions:</label>60 </td>61 <td valign="top" class="value ${hasErrors(bean:taskProcedureInstance,field:'maintenanceActions','errors')}">62 63 <ul>64 <g:each var="m" in="${taskProcedureInstance?.maintenanceActions?}">65 <li><g:link controller="maintenanceActionDetailed" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>66 </g:each>67 </ul>68 <g:link controller="maintenanceActionDetailed" params="['taskProcedure.id':taskProcedureInstance?.id]" action="create">+Add MaintenanceAction</g:link>69 27 70 </td> 71 </tr> 72 73 <tr class="prop"> 74 <td valign="top" class="name"> 75 <label for="tasks">Tasks:</label> 76 </td> 77 <td valign="top" class="value ${hasErrors(bean:taskProcedureInstance,field:'tasks','errors')}"> 78 79 <ul> 80 <g:each var="t" in="${taskProcedureInstance?.tasks?}"> 81 <li><g:link controller="taskDetailed" action="show" id="${t.id}">${t?.encodeAsHTML()}</g:link></li> 82 </g:each> 83 </ul> 84 <g:link controller="taskDetailed" params="['taskProcedure.id':taskProcedureInstance?.id]" action="create">+Add Task</g:link> 28 <g:render template="taskProcedure" model="['taskProcedureInstance': taskProcedureInstance]" /> 85 29 86 </td>87 </tr>88 89 </tbody>90 </table>91 </div>92 30 <div class="buttons"> 93 31 <span class="button"><g:actionSubmit class="save" value="Update" /></span> 32 <span class="button"><g:actionSubmit class="cancel" value="Cancel" action="Show"/></span> 94 33 <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> 95 34 </div> 96 35 </g:form> 97 36 </div> 37 <table style="display:none;"> 38 <g:render template="documentReference" model="['docRef': null, 39 'i': '_clone']" /> 40 </table> 41 <table style="display:none;"> 42 <g:render template="maintenanceAction" model="['tp': null, 43 'ma': null, 44 'i': '_clone', 45 'assemblies': assemblies]" /> 46 </table> 98 47 </body> 99 48 </html> -
trunk/grails-app/views/taskProcedureDetailed/list.gsp
r467 r798 37 37 <thead> 38 38 <tr> 39 39 40 40 <g:sortableColumn property="id" title="Id" params="${filterParams}" /> 41 42 <g:sortableColumn property="name" title="Name" params="${filterParams}" /> 43 44 <g:sortableColumn property="description" title="Description" params="${filterParams}" /> 45 46 <g:sortableColumn property="isActive" title="Is Active" params="${filterParams}" /> 41 <th>Description</th> 42 <th>Asset</th> 47 43 48 44 <th></th> 49 45 50 46 </tr> 51 47 </thead> … … 53 49 <g:each in="${taskProcedureInstanceList}" status="i" var="taskProcedureInstance"> 54 50 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/taskProcedureDetailed/show/${taskProcedureInstance.id}"'/> 55 51 56 52 <td>${fieldValue(bean:taskProcedureInstance, field:'id')}</td> 57 58 <td>${fieldValue(bean:taskProcedureInstance, field:'name')}</td> 59 60 <td>${fieldValue(bean:taskProcedureInstance, field:'description')}</td> 61 62 <td>${fieldValue(bean:taskProcedureInstance, field:'isActive')}</td> 63 53 54 <td>${taskProcedureInstance.description.encodeAsHTML()}</td> 55 56 <td>${taskProcedureInstance.asset?.encodeAsHTML()}</td> 57 64 58 <td> 65 59 <g:link action="show" id="${taskProcedureInstance.id}"> … … 67 61 </g:link> 68 62 </td> 69 63 70 64 </tr> 71 65 </g:each> … … 83 77 action="list" 84 78 class="overlayPane" 85 excludeProperties="" /> 79 additionalProperties="id" 80 excludeProperties="" 81 associatedProperties="linkedTask.description" /> 86 82 </div> 87 83 </body>
Note: See TracChangeset
for help on using the changeset viewer.