Changeset 862


Ignore:
Timestamp:
Mar 13, 2011, 7:06:34 PM (14 years ago)
Author:
gav
Message:

Add task show tab header and control button update elements on entry save.

Location:
trunk/grails-app
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/EntryDetailedController.groovy

    r859 r862  
    153153
    154154            def model = ['entryList': entryList]
     155            def taskModel = ['taskInstance': entryList[0].task]
    155156
    156157            render(contentType:"text/json") {
    157158                updates = array {
    158159                    element([ mode: 'replace', target:"$params.target", content: g.render(template: 'list', model:model) ])
     160                    element([ mode: 'replace',
     161                                    target:".tabHeader",
     162                                    content: g.render(template: '/taskDetailed/showTabHeader', model:taskModel) ])
     163                    element([ mode: 'replace',
     164                                    target:"#taskControlButtons",
     165                                    content: g.render(template: '/taskDetailed/showTaskControlButtons', model:taskModel) ])
    159166                }
    160167            }
  • trunk/grails-app/views/taskDetailed/_showTaskControlButtons.gsp

    r861 r862  
    1515                <g:else>
    1616                    <span class="button"><g:actionSubmit class="flag" value="Unresolved" action="setAttentionFlag"/></span>
    17                     <g:helpBalloon class="helpballoon" code="task.status.unresolved" />
     17                    <custom:helpBalloon code="task.status.unresolved" iconSrc="${resource(plugin:'help-balloons', dir:'images', file:'balloon-icon.gif')}" />
     18
    1819                </g:else>
    1920
     
    2930                    </g:else>
    3031                </span>
    31                 <g:helpBalloon class="helpballoon" code="task.status.resolved" />
     32                <custom:helpBalloon code="task.status.resolved" iconSrc="${resource(plugin:'help-balloons', dir:'images', file:'balloon-icon.gif')}" />
     33
    3234
    3335                <g:if test="${taskInstance.approved}" >
Note: See TracChangeset for help on using the changeset viewer.