Changeset 694


Ignore:
Timestamp:
Jul 22, 2010, 1:25:03 PM (13 years ago)
Author:
duh
Message:
  • enabled samples page
  • remove samples from study when user browses back
Location:
trunk/grails-app
Files:
2 edited

Legend:

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

    r691 r694  
    648648                        onRender {
    649649                                flow.page = 6
     650
     651                                // TEMPORARY FIX TO REMOVE ALL SAMPLES AND REGENERATE THEM
     652                                // THEN USER BROWSED BACK
     653                                println ".removing samples from study"
     654
     655                                // remove samples from study
     656                                flow.samples.each() {
     657                                        flow.study.removeFromSamples(it.sample)
     658                                }
     659
     660                                // remove samples from flow
     661                                flow.remove('samples')
     662                                // END FIX
    650663                        }
    651664                        on("next").to "samples"
     
    659672                                flow.page = 6
    660673
    661 // for now, development only!
    662 if (grails.util.GrailsUtil.environment == "development") {
    663674                                // iterate through eventGroups
    664675                                if (!flow.samples) {
     676                                        println ".generating samples"
    665677                                        flow.samplesWithTemplate = 0
    666678                                        flow.samples = []
     
    704716                                        }
    705717                                }
    706 }
    707718
    708719                                success()
  • trunk/grails-app/views/wizard/pages/_samples.gsp

    r635 r694  
    1616%>
    1717<wizard:pageContent>
    18 
    19 <g:if env="production">
    20 
    21         <span class="info">
    22                 <span class="title">Samples</span>
    23                 The sample input page is still under development and is not yet
    24                 production ready... We appologize for the inconvenience.
    25         </span>
    26 
    27 </g:if><g:else>
    28 
    2918
    3019        <g:if env="development">
     
    9786                        </div>
    9887                </g:each>
    99         </g:if>
    100 
    101 </g:else>
    102        
     88        </g:if>
    10389</wizard:pageContent>
Note: See TracChangeset for help on using the changeset viewer.