Changeset 989


Ignore:
Timestamp:
Oct 25, 2010, 4:29:05 PM (10 years ago)
Author:
t.w.abma@…
Message:
  • added referer to the last step of the wizard
Location:
trunk/grails-app
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/dbnp/importer/ImporterController.groovy

    r976 r989  
    4040     * Default page
    4141     **/
    42     def index = {       
     42
     43    def index = {
     44        session.import_referer = request.getHeader('referer')       
    4345    }
    4446
     
    273275    def savePostview = {
    274276        def validatedSuccesfully = ImporterService.saveDatamatrix(session.importer_study, session.importer_importeddata)
    275         render(view:"step4", model:[validatedSuccesfully:validatedSuccesfully, totalrows:session.importer_importeddata.size])
     277        render(view:"step4", model:[validatedSuccesfully:validatedSuccesfully, totalrows:session.importer_importeddata.size, referer: session.import_referer])
    276278    }
    277279
  • trunk/grails-app/views/importer/step4.gsp

    r959 r989  
    2525    <h1>Step 5: import wizard finished</h1>
    2626    <p>${validatedSuccesfully} of ${totalrows} rows were imported succesfully.</p>
     27    <p>Click <a href="${referer}">here</a> to return to the page you came from.</p>
    2728  </body>
    2829</html>
Note: See TracChangeset for help on using the changeset viewer.