Ignore:
Timestamp:
Apr 7, 2010, 1:49:22 PM (14 years ago)
Author:
gav
Message:

Improve task search and calendar logic.
Move task quick search links to a template.
Set targetCompletionDate when creating task from calendar.
Remove task budget action and view, functionality moved to task search.
Customise calendar css.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/taskDetailed/search.gsp

    r467 r476  
    1515        <div class="body">
    1616            <g:render template="/shared/messages" />
    17             <g:if test="${params.message}">
    18                 <div class="message">${params.message}</div>
    19             </g:if>
    2017            <g:hasErrors bean="${appCore}">
    2118                <div class="errors">
     
    142139            </g:if>
    143140            <div class="paginateButtons">
    144                 <g:paginate total="${taskInstanceTotal}" params="${filterParams}" />
     141                <g:paginate  action="search" total="${taskInstanceTotal}" params="${filterParams}" />
    145142            </div>
    146143
     
    169166                                                                                targetStartDate:[years:2020..2000,precision:'day']
    170167                                                                                ]}"/>
     168
     169            <g:render template="quickSearchPane" />
     170
    171171        </div> <!-- end body  -->
    172 
    173         <!-- Start Search Pane -->
    174         <div class="overlayPane" id="searchPane" style="display:none;">
    175             <h2>Quick Search</h2>
    176             <g:form method="post" id="searchForm" name="searchForm" >
    177                 <table>
    178                     <tbody>
    179 
    180                         <tr class="prop">
    181                             <td valign="top" class="name">
    182                                 <label>My Tasks:</label>
    183                             </td>
    184                             <td valign="top" class="value">
    185                                 <g:link controller="taskDetailed"
    186                                                 action="search"
    187                                                 params="[quickSearch: 'searchMyTodays']">
    188                                                 Today's
    189                                 </g:link>
    190                                 <br />
    191                                 <g:link controller="taskDetailed"
    192                                                 action="search"
    193                                                 params="[quickSearch: 'searchMyInTheLastWeek']">
    194                                                 In the last week
    195                                 </g:link>
    196                             </td>
    197                         </tr>
    198 
    199                         <tr class="prop">
    200                             <td valign="top" class="name">
    201                                 <label>Tasks:</label>
    202                             </td>
    203                             <td valign="top" class="value">
    204                                 <g:link controller="taskDetailed"
    205                                                 action="search"
    206                                                 params="[quickSearch: 'searchTodays']">
    207                                                 Today's
    208                                 </g:link>
    209                                 <br />
    210                                 <g:link controller="taskDetailed"
    211                                                 action="search"
    212                                                 params="[quickSearch: 'searchInTheLastWeek']">
    213                                                 In the last week
    214                                 </g:link>
    215                             </td>
    216                         </tr>
    217 
    218                     </tbody>
    219                 </table>
    220                 <div class="buttons">
    221                     <span class="button">
    222                         <input type="button" value="${g.message(code:'fp.tag.filterPane.button.cancel.text', default:'Cancel')}" onclick="return hideElement('searchPane');" />
    223                     </span>
    224                 </div>
    225             </g:form>
    226         </div> <!-- end search pane -->
    227 
    228172    </body>
    229173</html>
Note: See TracChangeset for help on using the changeset viewer.