Ignore:
Timestamp:
Feb 26, 2010, 4:32:43 PM (10 years ago)
Author:
duh
Message:
  • adding support for event deletion
Location:
trunk/grails-app/views/wizard/pages
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/wizard/pages/_eventDescriptions.gsp

    r214 r217  
    4747                <div class="header">
    4848                        <div class="firstColumn">#</div>
     49                        <div class="firstColumn"></div>
    4950                        <div class="column">name</div>
    5051                        <div class="column">description</div>
     
    5657                <div class="row">
    5758                        <div class="firstColumn">${i+1}</div>
     59                        <div class="firstColumn">
     60                                <wizard:ajaxButton name="delete" src="../images/icons/famfamfam/delete.png" alt="delete this event" class="famfamfam" value="-" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" before="\$(\'input[name=do]\').val(${i});" afterSuccess="onWizardPage()" />
     61                        </div>
    5862                        <div class="column"><g:textField name="eventDescription_${i}_name" value="${eventDescription.name}" size="12" maxlength="12" /></div>
    5963                        <div class="column"><g:textField name="eventDescription_${i}_description" value="${eventDescription.description}" size="12" maxlength="12" /></div>
  • trunk/grails-app/views/wizard/pages/_events.gsp

    r216 r217  
    4040                <div class="header">
    4141                        <div class="firstColumn">#</div>
     42                        <div class="firstColumn"></div>
    4243                        <div class="column">eventDescription</div>
    4344                        <div class="column">startTime</div>
     
    5758                <div class="row">
    5859                        <div class="firstColumn">${i+1}</div>
     60                        <div class="firstColumn">
     61                                <wizard:ajaxButton name="deleteEvent" src="../images/icons/famfamfam/delete.png" alt="delete this event" class="famfamfam" value="-" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" before="\$(\'input[name=do]\').val(${i});" afterSuccess="onWizardPage()" />                               
     62                        </div>
    5963                        <div class="column">${event.eventDescription}</div>
    6064                        <div class="column"><g:formatDate format="dd/MM/yyyy hh:mm" date="${event.startTime}" /></div>
Note: See TracChangeset for help on using the changeset viewer.