Changeset 418 for trunk/grails-app
- Timestamp:
- May 17, 2010, 11:56:00 AM (12 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/dbnp/studycapturing/WizardController.groovy
r416 r418 157 157 158 158 if (!flow.subjects) { 159 flow.subjects = [ ]159 flow.subjects = [:] 160 160 flow.subjectTemplates = [:] 161 161 } … … 341 341 } 342 342 343 flow.eventGroups[increment] = new EventGroup( name: groupName)343 flow.eventGroups[increment] = new EventGroup( name: groupName ) 344 344 }.to "events" 345 345 on("deleteEventGroup") { … … 651 651 // walk through eventGroups 652 652 def g = 0 653 flow.eventGroups.each() { 653 654 flow.eventGroups.each() { eventGroup -> 654 655 def e = 0 655 def eventGroup = it656 656 657 657 // reset events 658 658 eventGroup.events = new HashSet() 659 659 660 // walkthrough events660 // iterate through events 661 661 flow.events.each() { 662 662 if (params.get('event_' + e + '_group_' + g) == 'on') { -
trunk/grails-app/views/wizard/pages/_events.gsp
r416 r418 53 53 <div class="firstColumn">${eventId + 1}</div> 54 54 <div class="firstColumn"> 55 <wizard:ajaxButton name="delete " src="../images/icons/famfamfam/delete.png" alt="delete this subject" class="famfamfam" value="-" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" before="\$(\'input[name=do]\').val(${eventId});" afterSuccess="onWizardPage()"/>55 <wizard:ajaxButton name="deleteEvent" src="../images/icons/famfamfam/delete.png" alt="delete this subject" class="famfamfam" value="-" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" before="\$(\'input[name=do]\').val(${eventId});" afterSuccess="onWizardPage()"/> 56 56 </div> 57 57 <wizard:templateColumns id="${eventId}" entity="${events[ eventId ]}" template="${events[ eventId ].template}" name="event_${eventId}" class="column" /> 58 58 <g:if test="${eventGroups}"><g:each var="eventGroup" status="j" in="${eventGroups}"> 59 59 <div class="column"> 60 <g:if test="${eventGroup.events.find{ it == event } }">60 <g:if test="${eventGroup.events.find{ it == events[ eventId ] } }"> 61 61 <input type="checkbox" name="event_${eventId}_group_${j}" checked="checked" /> 62 62 </g:if><g:else>
Note: See TracChangeset
for help on using the changeset viewer.