Changeset 851 for trunk/grails-app/views


Ignore:
Timestamp:
Mar 8, 2011, 6:33:40 PM (14 years ago)
Author:
gav
Message:

Complete and Flag buttons on ajax task entries, first draft.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/entryDetailed/_create.gsp

    r838 r851  
    1313        <g:hiddenField name="task.id" value="${entryInstance.task.id}" />
    1414        <g:hiddenField name="entryType.id" value="${entryInstance.entryType.id}" />
     15        <g:hiddenField name="submitAction" value="save" />
    1516        <div class="dialog">
    1617            <table>
     
    105106        </div>
    106107        <div class="buttons">
    107             <span class="button"><input class="save" type="submit" value="Create" /></span>
     108            <span class="button">
     109                <input class="save" type="submit" value="Save" name="submit_default" />
     110            </span>
     111            <span class="button">
     112                <input class="flag" type="button" value="Unresolved" name="submit_andSetAttentionFlag" />
     113            </span>
     114            <custom:helpBalloon code="task.status.unresolved" iconSrc="${resource(plugin:'help-balloons', dir:'images', file:'balloon-icon.gif')}" />
     115            <span class="button">
     116                <g:if test="${entryInstance.task.attentionFlag}" >
     117                    <input class="complete"
     118                                type="button"
     119                                value="Resolved"
     120                                onclick="return confirm('${message(code:'task.clear.attention.flag.on.completion.confirm')}');"
     121                                name="submit_andComplete"/>
     122                </g:if>
     123                <g:else>
     124                    <input class="complete" type="button" value="Resolved" name="submit_andComplete" />
     125                </g:else>
     126            </span>
     127            <custom:helpBalloon code="task.status.resolved" iconSrc="${resource(plugin:'help-balloons', dir:'images', file:'balloon-icon.gif')}" />
    108128        </div>
    109129    </g:form>
Note: See TracChangeset for help on using the changeset viewer.