Changeset 803 for trunk


Ignore:
Timestamp:
Feb 11, 2011, 2:24:08 PM (14 years ago)
Author:
gav
Message:

Add clear task attention flag and complete confirmation.

Location:
trunk/grails-app
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/i18n/messages.properties

    r802 r803  
    146146task.trash.confirm=Trash, are you sure? \
    147147    If authorised, recurrence will be disabled and Sub Task links will be forever removed!
     148task.clear.attention.flag.on.completion.confirm=Clear Flag and Complete, are you sure?
    148149task.notFound=Could not complete operation, task not found.
    149150task.operationNotPermittedOnCompleteTask=This operation is not permitted on a complete task.
  • trunk/grails-app/views/taskDetailed/show.gsp

    r802 r803  
    271271                                        </g:else>
    272272
    273                                         <span class="button"><g:actionSubmit class="complete" value="Resolved" action="complete"/></span>
     273                                        <span class="button">
     274                                            <g:if test="${taskInstance.attentionFlag}" >
     275                                                <g:actionSubmit class="complete"
     276                                                                        value="Resolved"
     277                                                                        onclick="return confirm('${message(code:'task.clear.attention.flag.on.completion.confirm')}');"
     278                                                                        action="complete"/>
     279                                            </g:if>
     280                                            <g:else>
     281                                                <g:actionSubmit class="complete" value="Resolved" action="complete"/>
     282                                            </g:else>
     283                                        </span>
    274284                                        <g:helpBalloon class="helpballoon" code="task.status.resolved" />
    275285
Note: See TracChangeset for help on using the changeset viewer.