Ignore:
Timestamp:
Mar 29, 2009, 11:56:11 PM (16 years ago)
Author:
gav
Message:

Rename Modification and ModificationType? domains to TaskModification? and TaskModificationType? respectively. Re-generate controller and views. Update ERD. It's an evil but a necessary mouthful as we may want to track other modifications later.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/grails-app/views/task/edit.gsp

    r70 r93  
    153153                            <tr class="prop">
    154154                                <td valign="top" class="name">
    155                                     <label for="modifications">Modifications:</label>
    156                                 </td>
    157                                 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'modifications','errors')}">
    158                                    
    159 <ul>
    160 <g:each var="m" in="${taskInstance?.modifications?}">
    161     <li><g:link controller="modification" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>
    162 </g:each>
    163 </ul>
    164 <g:link controller="modification" params="['task.id':taskInstance?.id]" action="create">Add Modification</g:link>
     155                                    <label for="taskModifications">Modifications:</label>
     156                                </td>
     157                                <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskModifications','errors')}">
     158                                   
     159<ul>
     160<g:each var="m" in="${taskInstance?.taskModifications?}">
     161    <li><g:link controller="taskModification" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>
     162</g:each>
     163</ul>
     164<g:link controller="taskModification" params="['task.id':taskInstance?.id]" action="create">Add Modification</g:link>
    165165
    166166                                </td>
Note: See TracChangeset for help on using the changeset viewer.