Ignore:
Timestamp:
Feb 26, 2010, 3:23:03 PM (10 years ago)
Author:
duh
Message:
  • event grouping data is now handled properly
  • added image support to ajaxButton which now renders to an "input type='image'" instead of the default "input type='button'"
  • changed some in grouping to famfamfam icons
  • evenGroup deletions
  • eventGroup names are now uniquely generated
  • improved CSS
  • improved javascript
Location:
trunk/grails-app/views/wizard
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/wizard/common/_wizard.gsp

    r145 r216  
    1818        <h1>Create a new study</h1>
    1919        <g:form action="pages" name="wizardForm" id="wizardForm">
     20        <g:hiddenField name="do" value="" />
    2021                <div id="wizardPage">
    2122                        <wizard:ajaxFlowRedirect form="form#wizardForm" name="next" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()" />
  • trunk/grails-app/views/wizard/pages/_events.gsp

    r213 r216  
    4545                        <div class="column">duration</div>
    4646                        <g:if test="${eventGroups}"><g:each var="eventGroup" status="i" in="${eventGroups}">
    47                         <div class="column"><g:textField name="eventGroup_${i}_name" value="${eventGroup.name}" /></div>
     47                        <div class="column">
     48                                <g:textField name="eventGroup_${i}_name" value="${eventGroup.name}" />
     49                                <wizard:ajaxButton name="deleteEventGroup" src="../images/icons/famfamfam/delete.png" alt="delete this eventgroup" class="famfamfam" value="-" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" before="\$(\'input[name=do]\').val(${i});" afterSuccess="onWizardPage()" />
     50                        </div>
    4851                        </g:each></g:if>
    49                         <div class="column"><wizard:ajaxButton name="addEventGroup" value="+" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()" /></div>
     52                        <div class="column">
     53                                <wizard:ajaxButton name="addEventGroup" src="../images/icons/famfamfam/add.png" alt="add a new eventgroup" class="famfamfam" value="+" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()" />
     54                        </div>
    5055                </div>
    5156        <g:each var="event" status="i" in="${events}">
     
    5762                        <div class="column">${event.getShortDuration()}</div>
    5863                        <g:if test="${eventGroups}"><g:each var="eventGroup" status="j" in="${eventGroups}">
    59                         <div class="column"><input type="checkbox" name="event_${i}_group_${j}"/></div>
     64                        <div class="column">
     65                                <g:if test="${eventGroup.events.find{ it == event} }">
     66                                        <input type="checkbox" name="event_${i}_group_${j}" checked="checked" />
     67                                </g:if><g:else>
     68                                        <input type="checkbox" name="event_${i}_group_${j}"/>
     69                                </g:else>
     70                        </div>
    6071                        </g:each></g:if>
    6172                        <div class="column"></div>
     
    6374        </g:each>
    6475        </div>
     76        <div class="sliderContainer">
     77                <div class="slider"/>
     78        </div>
    6579</g:if>
    6680</wizard:pageContent>
Note: See TracChangeset for help on using the changeset viewer.