Ignore:
Timestamp:
Nov 5, 2009, 4:01:35 AM (14 years ago)
Author:
gav
Message:

Change is* in Task to just 'active', 'scheduled' and 'approved'.
Regenerate non detailed controller and views.
Adjust detailed controller, views and services to suite.
Add support for task actions 'approve', 'complete', 'trash' and their counter parts.
Default task status to "not started" when creating a new task.

File:
1 edited

Legend:

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

    r178 r181  
    127127                            <tr class="prop">
    128128                                <td valign="top" class="name">
    129                                     <label for="isActive">Is Active:</label>
     129                                    <label for="approved">Approved:</label>
    130130                                </td>
    131                                 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'isActive','errors')}">
    132                                     <g:checkBox name="isActive" value="${taskInstance?.isActive}" ></g:checkBox>
     131                                <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'approved','errors')}">
     132                                    <g:checkBox name="approved" value="${taskInstance?.approved}" ></g:checkBox>
    133133                                </td>
    134134                            </tr>
     
    136136                            <tr class="prop">
    137137                                <td valign="top" class="name">
    138                                     <label for="isApproved">Is Approved:</label>
     138                                    <label for="scheduled">Scheduled:</label>
    139139                                </td>
    140                                 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'isApproved','errors')}">
    141                                     <g:checkBox name="isApproved" value="${taskInstance?.isApproved}" ></g:checkBox>
    142                                 </td>
    143                             </tr>
    144                        
    145                             <tr class="prop">
    146                                 <td valign="top" class="name">
    147                                     <label for="isScheduled">Is Scheduled:</label>
    148                                 </td>
    149                                 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'isScheduled','errors')}">
    150                                     <g:checkBox name="isScheduled" value="${taskInstance?.isScheduled}" ></g:checkBox>
     140                                <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'scheduled','errors')}">
     141                                    <g:checkBox name="scheduled" value="${taskInstance?.scheduled}" ></g:checkBox>
    151142                                </td>
    152143                            </tr>
     
    170161                            </tr>
    171162                       
     163                            <tr class="prop">
     164                                <td valign="top" class="name">
     165                                    <label for="trash">Trash:</label>
     166                                </td>
     167                                <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'trash','errors')}">
     168                                    <g:checkBox name="trash" value="${taskInstance?.trash}" ></g:checkBox>
     169                                </td>
     170                            </tr>
     171                       
    172172                        </tbody>
    173173                    </table>
Note: See TracChangeset for help on using the changeset viewer.