- Timestamp:
- Jan 14, 2010, 8:35:31 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/AppConfig.groovy
r234 r265 9 9 10 10 static constraints = { 11 name(maxSize: 50,unique:true,blank:false)12 description(maxSize:100)13 value(maxSize:50,blank:false)11 name(maxSize:100,unique:true,blank:false) 12 value(maxSize:500,blank:false) 13 description(maxSize:500) 14 14 } 15 15 -
trunk/grails-app/services/CreateDataService.groovy
r258 r265 55 55 createBaseAuthorities() 56 56 createBasePersonGroups() 57 createBaseDefinitions() 57 58 createBaseUnitsOfMeasure() 58 59 createBasePeriods() … … 303 304 ***********************/ 304 305 306 //These can redefined by the site at deployment time. 307 def createBaseDefinitions() { 308 appConfigService.set("Department Definition", "A department as recongised by accounting.") 309 appConfigService.set("Site Definition", "The site, plant or area.") 310 appConfigService.set("Section Definition", "A logical grouping of assets as determined by design.") 311 appConfigService.set("Asset Definition", "Asset definition") 312 appConfigService.set("Asset Element Name", "Asset Element name") 313 appConfigService.set("Asset Element Definition", "Asset Element definition") 314 appConfigService.set("Asset SubElement 1 Name", "Asset Sub Element name") 315 appConfigService.set("Asset Sub Element 1 Definition", "Asset Sub Element definition") 316 appConfigService.set("Asset Sub Element 2 Name", "Asset Sub Element name") 317 appConfigService.set("Asset Sub Element 2 Definition", "Asset Sub Element definition") 318 appConfigService.set("Asset Sub Element 3 Name", "Asset Sub Element name") 319 appConfigService.set("Asset Sub Element 3 Definition", "Asset Sub Element definition") 320 } 321 305 322 def createDemoSites() { 306 323 //Site -
trunk/grails-app/views/appConfig/create.gsp
r234 r265 31 31 </td> 32 32 <td valign="top" class="value ${hasErrors(bean:appConfigInstance,field:'name','errors')}"> 33 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:appConfigInstance,field:'name')}"/> 33 <input type="text" maxlength="100" id="name" name="name" value="${fieldValue(bean:appConfigInstance,field:'name')}"/> 34 </td> 35 </tr> 36 37 <tr class="prop"> 38 <td valign="top" class="name"> 39 <label for="value">Value:</label> 40 </td> 41 <td valign="top" class="value ${hasErrors(bean:appConfigInstance,field:'value','errors')}"> 42 <textarea rows="5" cols="40" name="value">${fieldValue(bean:appConfigInstance, field:'value')}</textarea> 34 43 </td> 35 44 </tr> … … 40 49 </td> 41 50 <td valign="top" class="value ${hasErrors(bean:appConfigInstance,field:'description','errors')}"> 42 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:appConfigInstance,field:'description')}"/> 43 </td> 44 </tr> 45 46 <tr class="prop"> 47 <td valign="top" class="name"> 48 <label for="value">Value:</label> 49 </td> 50 <td valign="top" class="value ${hasErrors(bean:appConfigInstance,field:'value','errors')}"> 51 <input type="text" id="value" name="value" value="${fieldValue(bean:appConfigInstance,field:'value')}"/> 51 <textarea rows="5" cols="40" name="description">${fieldValue(bean:appConfigInstance, field:'description')}</textarea> 52 52 </td> 53 53 </tr> -
trunk/grails-app/views/appConfig/edit.gsp
r234 r265 34 34 </td> 35 35 <td valign="top" class="value ${hasErrors(bean:appConfigInstance,field:'name','errors')}"> 36 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:appConfigInstance,field:'name')}"/> 36 <input type="text" maxlength="100" id="name" name="name" value="${fieldValue(bean:appConfigInstance,field:'name')}"/> 37 </td> 38 </tr> 39 40 <tr class="prop"> 41 <td valign="top" class="name"> 42 <label for="value">Value:</label> 43 </td> 44 <td valign="top" class="value ${hasErrors(bean:appConfigInstance,field:'value','errors')}"> 45 <textarea rows="5" cols="40" name="value">${fieldValue(bean:appConfigInstance, field:'value')}</textarea> 37 46 </td> 38 47 </tr> … … 43 52 </td> 44 53 <td valign="top" class="value ${hasErrors(bean:appConfigInstance,field:'description','errors')}"> 45 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:appConfigInstance,field:'description')}"/> 46 </td> 47 </tr> 48 49 <tr class="prop"> 50 <td valign="top" class="name"> 51 <label for="value">Value:</label> 52 </td> 53 <td valign="top" class="value ${hasErrors(bean:appConfigInstance,field:'value','errors')}"> 54 <input type="text" id="value" name="value" value="${fieldValue(bean:appConfigInstance,field:'value')}"/> 54 <textarea rows="5" cols="40" name="description">${fieldValue(bean:appConfigInstance, field:'description')}</textarea> 55 55 </td> 56 56 </tr> -
trunk/grails-app/views/appConfig/list.gsp
r234 r265 25 25 <g:sortableColumn property="name" title="Name" /> 26 26 27 <g:sortableColumn property="value" title="Value" /> 28 27 29 <g:sortableColumn property="description" title="Description" /> 28 29 <g:sortableColumn property="value" title="Value" />30 30 31 31 </tr> … … 39 39 <td>${fieldValue(bean:appConfigInstance, field:'name')}</td> 40 40 41 <td>${fieldValue(bean:appConfigInstance, field:'value')}</td> 42 41 43 <td>${fieldValue(bean:appConfigInstance, field:'description')}</td> 42 43 <td>${fieldValue(bean:appConfigInstance, field:'value')}</td>44 44 45 45 </tr> -
trunk/grails-app/views/appConfig/show.gsp
r234 r265 37 37 38 38 <tr class="prop"> 39 <td valign="top" class="name"> Description:</td>39 <td valign="top" class="name">Value:</td> 40 40 41 <td valign="top" class="value">${fieldValue(bean:appConfigInstance, field:' description')}</td>41 <td valign="top" class="value">${fieldValue(bean:appConfigInstance, field:'value')}</td> 42 42 43 43 </tr> 44 44 45 45 <tr class="prop"> 46 <td valign="top" class="name"> Value:</td>46 <td valign="top" class="name">Description:</td> 47 47 48 <td valign="top" class="value">${fieldValue(bean:appConfigInstance, field:' value')}</td>48 <td valign="top" class="value">${fieldValue(bean:appConfigInstance, field:'description')}</td> 49 49 50 50 </tr>
Note: See TracChangeset
for help on using the changeset viewer.