Changeset 47
- Timestamp:
- Feb 1, 2009, 2:40:28 PM (16 years ago)
- Location:
- trunk/src/grails-app
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/grails-app/conf/BootStrap.groovy
r44 r47 80 80 //Task 81 81 new Task(taskGroup:TaskGroup.findByName("Engineering"), 82 person:Person.get(3),82 leadPerson:Person.get(3), 83 83 name:"Check specific level sensor", 84 84 description:"Has been noted as problematic, try recallibrating", … … 86 86 targetDate: new Date() ).save() 87 87 new Task(taskGroup:TaskGroup.findByName("Production"), 88 person:Person.get(5),88 leadPerson:Person.get(5), 89 89 name:"Production Report", 90 90 description:"Production report for specific production run or shift", … … 92 92 targetDate: new Date() ).save() 93 93 new Task(taskGroup:TaskGroup.findByName("NewProject(s)"), 94 person:Person.get(1),94 leadPerson:Person.get(1), 95 95 name:"Make killer CMMS app", 96 96 description:"Use Grails and get a move on!", -
trunk/src/grails-app/domain/Task.groovy
r18 r47 1 1 class Task { 2 2 TaskGroup taskGroup 3 Person person3 Person leadPerson 4 4 String name 5 5 String description -
trunk/src/grails-app/views/task/create.gsp
r21 r47 47 47 <tr class="prop"> 48 48 <td valign="top" class="name"> 49 <label for=" person">Person:</label>49 <label for="leadPerson">Lead Person:</label> 50 50 </td> 51 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:' person','errors')}">52 <g:select optionKey="id" from="${Person.list()}" name=" person.id" value="${taskInstance?.person?.id}" ></g:select>51 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'leadPerson','errors')}"> 52 <g:select optionKey="id" from="${Person.list()}" name="leadPerson.id" value="${taskInstance?.leadPerson?.id}" ></g:select> 53 53 </td> 54 54 </tr> -
trunk/src/grails-app/views/task/edit.gsp
r21 r47 81 81 <tr class="prop"> 82 82 <td valign="top" class="name"> 83 <label for=" person">Person:</label>83 <label for="leadPerson">Person:</label> 84 84 </td> 85 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:' person','errors')}">86 <g:select optionKey="id" from="${Person.list()}" name=" person.id" value="${taskInstance?.person?.id}" ></g:select>85 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'leadPerson','errors')}"> 86 <g:select optionKey="id" from="${Person.list()}" name="leadPerson.id" value="${taskInstance?.leadPerson?.id}" ></g:select> 87 87 </td> 88 88 </tr> -
trunk/src/grails-app/views/task/list.gsp
r21 r47 1 2 1 3 2 <html> … … 28 27 <g:sortableColumn property="description" title="Description" /> 29 28 30 <th>Person</th>29 <g:sortableColumn property="leadPerson" title="Lead Person" /> 31 30 32 31 <g:sortableColumn property="scheduledDate" title="Scheduled Date" /> … … 40 39 <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> 41 40 42 <td><g:link action=" show" id="${taskInstance.id}">${fieldValue(bean:taskInstance, field:'id')}</g:link></td>41 <td><g:link action="edit" id="${taskInstance.id}">${fieldValue(bean:taskInstance, field:'id')}</g:link></td> 43 42 44 <td> ${fieldValue(bean:taskInstance, field:'name')}</td>43 <td><g:link action="edit" id="${taskInstance.id}">${fieldValue(bean:taskInstance, field:'name')}</g:link></td> 45 44 46 <td> ${fieldValue(bean:taskInstance, field:'description')}</td>45 <td><g:link action="edit" id="${taskInstance.id}">${fieldValue(bean:taskInstance, field:'description')}</g:link></td> 47 46 48 <td> ${fieldValue(bean:taskInstance, field:'person')}</td>47 <td><g:link action="edit" id="${taskInstance.id}">${fieldValue(bean:taskInstance, field:'leadPerson')}</g:link></td> 49 48 50 <td> ${fieldValue(bean:taskInstance, field:'scheduledDate')}</td>49 <td><g:link action="edit" id="${taskInstance.id}">${fieldValue(bean:taskInstance, field:'scheduledDate')}</g:link></td> 51 50 52 <td> ${fieldValue(bean:taskInstance, field:'targetDate')}</td>51 <td><g:link action="edit" id="${taskInstance.id}">${fieldValue(bean:taskInstance, field:'targetDate')}</g:link></td> 53 52 54 53 </tr> -
trunk/src/grails-app/views/task/show.gsp
r21 r47 71 71 72 72 <tr class="prop"> 73 <td valign="top" class="name"> Person:</td>73 <td valign="top" class="name">Lead Person:</td> 74 74 75 <td valign="top" class="value"><g:link controller="person" action="show" id="${taskInstance?. person?.id}">${taskInstance?.person?.encodeAsHTML()}</g:link></td>75 <td valign="top" class="value"><g:link controller="person" action="show" id="${taskInstance?.leadPerson?.id}">${taskInstance?.leadPerson?.encodeAsHTML()}</g:link></td> 76 76 77 77 </tr>
Note: See TracChangeset
for help on using the changeset viewer.