Changeset 578 for trunk/grails-app/views


Ignore:
Timestamp:
Jun 17, 2010, 2:57:04 PM (12 years ago)
Author:
duh
Message:
  • added logic to immediately edit or create a study (and hence skip the main wizard page)
  • the final wizard page now allows you to immediately edit the study, create a new study or show the study
  • the show study page's edit button now immediately makes you edit the study in the wizard
Location:
trunk/grails-app/views
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/study/show.gsp

    r572 r578  
    841841          <g:set var="studyInstance" value="${studyList[0]}" />
    842842          <g:hiddenField name="id" value="${studyInstance?.id}" />
    843           <span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}" /></span>
     843          <span class="button"><g:link class="edit" controller="wizard" params="[jump:'edit']" id="${studyInstance?.id}">${message(code: 'default.button.edit.label', default: 'Edit')}</g:link></span>
    844844          <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
    845845        </g:if>
  • trunk/grails-app/views/wizard/pages/_done.gsp

    r359 r578  
    1818
    1919        <span class="info">
    20                 <span class="todo">Finished!</span>
    21                 The study you have just created has been properly saved.
     20                <span class="todo">Done!</span>
     21                <g:if test="${quickSave}">
     22                        Your modifications you have made to this study have been saved.
     23                </g:if>
     24                <g:else>
     25                        The study you just created has been saved.
     26                </g:else>
     27
     28                You can now <g:link controller="study" action="show" id="${study.id}">view the study</g:link>,
     29                <g:link controller="wizard" params="[jump:'edit']" id="${study.id}">edit the study</g:link>
     30                <g:if test="${quickSave}"> again</g:if> or
     31                <g:link controller="wizard" params="[jump:'create']">create a new study</g:link>.
     32
    2233        </span>
    2334
Note: See TracChangeset for help on using the changeset viewer.