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.

Location:
trunk/src/grails-app/views/task
Files:
2 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>
  • trunk/src/grails-app/views/task/show.gsp

    r70 r93  
    125125                            <td  valign="top" style="text-align:left;" class="value">
    126126                                <ul>
    127                                 <g:each var="m" in="${taskInstance.modifications}">
    128                                     <li><g:link controller="modification" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>
     127                                <g:each var="m" in="${taskInstance.taskModifications}">
     128                                    <li><g:link controller="taskModification" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>
    129129                                </g:each>
    130130                                </ul>
Note: See TracChangeset for help on using the changeset viewer.