Changeset 535


Ignore:
Timestamp:
Jun 4, 2010, 5:06:07 PM (13 years ago)
Author:
duh
Message:
  • removed obsolete templates
  • added redirect functionality
Location:
trunk/grails-app
Files:
3 deleted
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/dbnp/studycapturing/WizardController.groovy

    r533 r535  
    9696                        }.to "study"
    9797                        on("modify").to "modify"
     98                        on("import").to "redirectToImport"
     99                }
     100
     101                // redirect to the import wizard
     102                redirectToImport {
     103                        render(view: "_redirect")
     104                        onRender {
     105                                flash.uri = "/importer/index"
     106                        }
     107                        on("next").to "start"
    98108                }
    99109
  • trunk/grails-app/views/wizard/pages/_redirect.gsp

    r534 r535  
    11<%
    22/**
    3  * Protocols page
     3 * Redirect page
    44 *
    55 * @author  Jeroen Wesbeek
     
    1616%>
    1717<wizard:pageContent>
    18 todo...
     18        <script type="text/javascript">
     19                $(document).ready(function() {
     20                        window.location = "/${meta(name: 'app.name')}${uri}";
     21                });
     22        </script>
     23       
    1924</wizard:pageContent>
  • trunk/grails-app/views/wizard/pages/_start.gsp

    r526 r535  
    2323        <wizard:ajaxButton name="modify" class="bigbutton" value="Edit an existing study" alt="Edit an existing study" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()" />
    2424
     25        <wizard:ajaxButton name="import" class="bigbutton" value="Import a study" alt="Import a study" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()" />
     26
    2527        <span class="info">
    2628                <span class="title">Create a new study via the step-by-step interface</span>
     
    4042        </span>
    4143
    42         <g:if env="development">
    43         <span class="info">
    44                 <span class="known">Known issues</span>
    45                 <ul>
    46                         <li>navigating away from the wizard will result in loss of work. While you are currently warned when
    47                             clicking links outside of the wizard, this problem still exists when clicking 'refresh' or the
    48                                 back / forward buttons</li>
    49                 </ul>
    50         </span>
    51         <!--g:render template="pages/demo"//-->
    52         </g:if>
     44        <g:if env="development"><!--g:render template="pages/demo"//--></g:if>
    5345
    5446</wizard:pageContent>
Note: See TracChangeset for help on using the changeset viewer.