Changeset 694
- Timestamp:
- Jul 22, 2010, 1:25:03 PM (13 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/dbnp/studycapturing/WizardController.groovy
r691 r694 648 648 onRender { 649 649 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 650 663 } 651 664 on("next").to "samples" … … 659 672 flow.page = 6 660 673 661 // for now, development only!662 if (grails.util.GrailsUtil.environment == "development") {663 674 // iterate through eventGroups 664 675 if (!flow.samples) { 676 println ".generating samples" 665 677 flow.samplesWithTemplate = 0 666 678 flow.samples = [] … … 704 716 } 705 717 } 706 }707 718 708 719 success() -
trunk/grails-app/views/wizard/pages/_samples.gsp
r635 r694 16 16 %> 17 17 <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 yet24 production ready... We appologize for the inconvenience.25 </span>26 27 </g:if><g:else>28 29 18 30 19 <g:if env="development"> … … 97 86 </div> 98 87 </g:each> 99 </g:if> 100 101 </g:else> 102 88 </g:if> 103 89 </wizard:pageContent>
Note: See TracChangeset
for help on using the changeset viewer.