Changeset 754 for branches/features
- Timestamp:
- Jan 25, 2011, 6:41:00 PM (14 years ago)
- Location:
- branches/features/taskProcedureRework/grails-app
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/features/taskProcedureRework/grails-app/domain/TaskProcedure.groovy
r131 r754 1 1 class TaskProcedure { 2 3 String name4 String description = ""5 Boolean isActive = true6 2 7 3 static hasMany = [tasks: Task, maintenanceActions: MaintenanceAction] … … 10 6 11 7 static constraints = { 12 name(maxSize:75,unique:true,blank:false)13 description(maxSize:100)14 8 } 15 9 16 10 String toString() { 17 "${this. name}"11 "${this.id}" 18 12 } 19 13 } -
branches/features/taskProcedureRework/grails-app/views/taskDetailed/show.gsp
r736 r754 518 518 </tr> 519 519 520 <tr class="prop">521 <td valign="top" class="name">Name:</td>522 523 <td valign="top" class="value">${fieldValue(bean:taskProcedureInstance, field:'name')}</td>524 525 </tr>526 527 <tr class="prop">528 <td valign="top" class="name">Description:</td>529 530 <td valign="top" class="value">${fieldValue(bean:taskProcedureInstance, field:'description')}</td>531 532 </tr>533 534 <tr class="prop">535 <td valign="top" class="name">Is Active:</td>536 537 <td valign="top" class="value">${fieldValue(bean:taskProcedureInstance, field:'isActive')}</td>538 539 </tr>540 541 520 </tbody> 542 521 </table> -
branches/features/taskProcedureRework/grails-app/views/taskProcedureDetailed/create.gsp
r173 r754 28 28 <tbody> 29 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 30 <g:if test="${taskInstance}"> 58 31 <tr class="prop"> -
branches/features/taskProcedureRework/grails-app/views/taskProcedureDetailed/edit.gsp
r410 r754 27 27 <table> 28 28 <tbody> 29 29 30 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 31 <td valign="top" class="name">Id:</td> 32 <td valign="top" class="value">${fieldValue(bean:taskProcedureInstance, field:'id')}</td> 33 </tr> 34 57 35 <tr class="prop"> 58 36 <td valign="top" class="name"> -
branches/features/taskProcedureRework/grails-app/views/taskProcedureDetailed/list.gsp
r467 r754 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 42 <th>Task Description</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.tasks.encodeAsHTML()}</td> 55 64 56 <td> 65 57 <g:link action="show" id="${taskProcedureInstance.id}"> … … 67 59 </g:link> 68 60 </td> 69 61 70 62 </tr> 71 63 </g:each> -
branches/features/taskProcedureRework/grails-app/views/taskProcedureDetailed/show.gsp
r147 r754 20 20 <tbody> 21 21 22 23 22 <tr class="prop"> 24 23 <td valign="top" class="name">Id:</td> 25 24 26 25 <td valign="top" class="value">${fieldValue(bean:taskProcedureInstance, field:'id')}</td> 27 28 </tr>29 30 <tr class="prop">31 <td valign="top" class="name">Name:</td>32 33 <td valign="top" class="value">${fieldValue(bean:taskProcedureInstance, field:'name')}</td>34 35 </tr>36 37 <tr class="prop">38 <td valign="top" class="name">Description:</td>39 40 <td valign="top" class="value">${fieldValue(bean:taskProcedureInstance, field:'description')}</td>41 42 </tr>43 44 <tr class="prop">45 <td valign="top" class="name">Is Active:</td>46 47 <td valign="top" class="value">${fieldValue(bean:taskProcedureInstance, field:'isActive')}</td>48 26 49 27 </tr>
Note: See TracChangeset
for help on using the changeset viewer.