Changeset 1775
- Timestamp:
- Apr 19, 2011, 4:12:15 PM (12 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/dbnp/studycapturing/StudyWizardController.groovy
r1774 r1775 1261 1261 def handlePublications(flow, flash, params) { 1262 1262 flash.wizardErrors = [:] 1263 handleStudyPublications( flow.study, params ) ;1263 handleStudyPublications( flow.study, params ) 1264 1264 } 1265 1265 … … 1274 1274 flash.wizardErrors = [:] 1275 1275 1276 handleStudyContacts( flow.study, params ) ;1276 handleStudyContacts( flow.study, params ) 1277 1277 } 1278 1278 … … 1287 1287 def handleUsers(flow, flash, params, type) { 1288 1288 flash.wizardErrors = [:] 1289 handleStudyUsers( flow.study, params, type ) ;1289 handleStudyUsers( flow.study, params, type ) 1290 1290 } 1291 1291 -
trunk/grails-app/domain/dbnp/studycapturing/Study.groovy
r1728 r1775 56 56 code(nullable: true, blank: true, unique: true, maxSize: 255) 57 57 studyUUID(nullable:true, unique:true, maxSize: 255) 58 persons(size:1..1000) 58 59 // TODO: add custom validator for 'published' to assess whether the study meets all quality criteria for publication 59 60 // tested by SampleTests.testStudyPublish -
trunk/grails-app/i18n/messages.properties
r1581 r1775 59 59 select.not.selected=You need to select a {0} 60 60 select.not.selected.or.add=You need to select a {0}, or add one if it is not yet present 61 dbnp.studycapturing.Study.persons.size.error=You need to add at least one contact to your study 61 62 62 63 # TemplateEntity errors -
trunk/grails-app/taglib/dbnp/studycapturing/WizardTagLib.groovy
r1590 r1775 204 204 205 205 def ContactSelectElement = { attrs, body -> 206 207 206 attrs.description = 'Contacts'; 207 208 208 // render list with publications currently available 209 attrs['required']='true' 209 210 baseElement.call( 210 211 '_contactList', … … 212 213 body 213 214 ) 214 215 attrs.description 216 217 // render ' publications list'215 attrs.required = false 216 attrs.description = ''; 217 218 // render 'constacts list' 218 219 out << '<div id="' + attrs.name + '_dialog" class="contacts_dialog" style="display: none;">' 219 220 baseElement.call( -
trunk/grails-app/views/studyWizard/pages/_study.gsp
r1461 r1775 23 23 </span> 24 24 25 <af:templateElement name="template" description="Template" value="${study?.template}" entity="${dbnp.studycapturing.Study}" addDummy="true" ajaxOnChange="switchTemplate" afterSuccess="onPage()" >25 <af:templateElement name="template" description="Template" value="${study?.template}" entity="${dbnp.studycapturing.Study}" addDummy="true" ajaxOnChange="switchTemplate" afterSuccess="onPage()" required="true" > 26 26 Choose the type of study you would like to create. 27 27 Depending on the chosen template specific fields can be filled out. If none of the templates contain all the necessary fields, a new template can be defined (based on other templates). … … 30 30 <af:templateElements entity="${study}"/> 31 31 <af:publicationSelectElement name="publication" value="${study?.publications}"/> 32 <af:contactSelectElement name="contacts" value="${study?.persons}" />32 <af:contactSelectElement name="contacts" value="${study?.persons}" /> 33 33 <br/> 34 34 <div class="element">
Note: See TracChangeset
for help on using the changeset viewer.