[55] | 1 | // locations to search for config files that get merged into the main config |
---|
| 2 | // config files can either be Java properties files or ConfigSlurper scripts |
---|
| 3 | |
---|
| 4 | // grails.config.locations = [ "classpath:${appName}-config.properties", |
---|
| 5 | // "classpath:${appName}-config.groovy", |
---|
| 6 | // "file:${userHome}/.grails/${appName}-config.properties", |
---|
| 7 | // "file:${userHome}/.grails/${appName}-config.groovy"] |
---|
| 8 | |
---|
| 9 | // if(System.properties["${appName}.config.location"]) { |
---|
| 10 | // grails.config.locations << "file:" + System.properties["${appName}.config.location"] |
---|
| 11 | // } |
---|
| 12 | grails.mime.file.extensions = true // enables the parsing of file extensions from URLs into the request format |
---|
| 13 | grails.mime.types = [ html: ['text/html','application/xhtml+xml'], |
---|
| 14 | xml: ['text/xml', 'application/xml'], |
---|
| 15 | text: 'text-plain', |
---|
| 16 | js: 'text/javascript', |
---|
| 17 | rss: 'application/rss+xml', |
---|
| 18 | atom: 'application/atom+xml', |
---|
| 19 | css: 'text/css', |
---|
| 20 | csv: 'text/csv', |
---|
[165] | 21 | pdf: 'application/pdf', |
---|
| 22 | rtf: 'application/rtf', |
---|
| 23 | excel: 'application/vnd.ms-excel', |
---|
| 24 | ods: 'application/vnd.oasis.opendocument.spreadsheet', |
---|
[55] | 25 | all: '*/*', |
---|
| 26 | json: ['application/json','text/json'], |
---|
| 27 | form: 'application/x-www-form-urlencoded', |
---|
| 28 | multipartForm: 'multipart/form-data' |
---|
| 29 | ] |
---|
| 30 | // The default codec used to encode data with ${} |
---|
| 31 | grails.views.default.codec="none" // none, html, base64 |
---|
| 32 | grails.views.gsp.encoding="UTF-8" |
---|
| 33 | grails.converters.encoding="UTF-8" |
---|
| 34 | |
---|
[449] | 35 | // enable Sitemesh preprocessing of GSP pages |
---|
| 36 | grails.views.gsp.sitemesh.preprocess = true |
---|
| 37 | // scaffolding templates configuration |
---|
| 38 | grails.scaffolding.templates.domainSuffix = 'Instance' |
---|
| 39 | |
---|
| 40 | // Set to false to use the new Grails 1.2 JSONBuilder in the render method |
---|
| 41 | grails.json.legacy.builder=false |
---|
| 42 | |
---|
[55] | 43 | // enabled native2ascii conversion of i18n properties files |
---|
| 44 | grails.enable.native2ascii = true |
---|
| 45 | |
---|
[449] | 46 | // whether to install the java.util.logging bridge for sl4j. Disable fo AppEngine! |
---|
| 47 | grails.logging.jul.usebridge = true |
---|
| 48 | // packages to include in Spring bean scanning |
---|
| 49 | grails.spring.bean.packages = [] |
---|
| 50 | |
---|
| 51 | |
---|
[197] | 52 | /** |
---|
[200] | 53 | * Log4j configuration. |
---|
| 54 | * Causing this file to reload (e.g. edit+save) may break the appLog destination |
---|
| 55 | * and further logs will be written to files or directories like "[:]". |
---|
[197] | 56 | * For more info see http://logging.apache.org/log4j/1.2/manual.html |
---|
| 57 | * For log levels see http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Level.html |
---|
| 58 | * Basic log levels are ALL < TRACE < DEBUG < INFO < WARN < ERROR < FATAL < OFF |
---|
| 59 | */ |
---|
[598] | 60 | // Pickup the Tomcat/Catalina work directory else use the current or temp dir. |
---|
[200] | 61 | def catalinaBase = System.properties.getProperty('catalina.base') |
---|
[598] | 62 | def fs = File.separator |
---|
| 63 | def logDirectory = catalinaBase ? "${catalinaBase}${fs}logs${fs}" : '' |
---|
[197] | 64 | |
---|
| 65 | log4j = { |
---|
| 66 | appenders { |
---|
| 67 | // Use if we want to prevent creation of a stacktrace.log file. |
---|
| 68 | 'null' name:'stacktrace' |
---|
| 69 | |
---|
| 70 | // Use this if we want to modify the default appender called 'stdout'. |
---|
| 71 | console name:'stdout', layout:pattern(conversionPattern: '[%t] %-5p %c{2} %x - %m%n') |
---|
| 72 | |
---|
| 73 | // Custom log file. |
---|
| 74 | rollingFile name:"appLog", |
---|
[598] | 75 | file:"${logDirectory}${appName}.log".toString(), |
---|
[358] | 76 | maxFileSize:'300kB', |
---|
[480] | 77 | maxBackupIndex:1, |
---|
[197] | 78 | layout:pattern(conversionPattern: '%d{[EEE, dd-MMM-yyyy @ HH:mm:ss.SSS]} [%t] %-5p %c %x - %m%n') |
---|
[55] | 79 | } |
---|
[197] | 80 | |
---|
[449] | 81 | // This is for the built-in stuff and from the default Grails-1.2.1 config. |
---|
[197] | 82 | error 'org.codehaus.groovy.grails.web.servlet', // controllers |
---|
| 83 | 'org.codehaus.groovy.grails.web.pages', // GSP |
---|
| 84 | 'org.codehaus.groovy.grails.web.sitemesh', // layouts |
---|
| 85 | 'org.codehaus.groovy.grails.web.mapping.filter', // URL mapping |
---|
| 86 | 'org.codehaus.groovy.grails.web.mapping', // URL mapping |
---|
| 87 | 'org.codehaus.groovy.grails.commons', // core / classloading |
---|
| 88 | 'org.codehaus.groovy.grails.plugins', // plugins |
---|
| 89 | 'org.codehaus.groovy.grails.orm.hibernate', // hibernate integration |
---|
| 90 | 'org.springframework', |
---|
[449] | 91 | 'org.hibernate', |
---|
| 92 | 'net.sf.ehcache.hibernate' |
---|
[197] | 93 | |
---|
| 94 | warn 'org.mortbay.log' // Jetty |
---|
| 95 | |
---|
[579] | 96 | error 'grails.app' // Set the default log level for our app code. |
---|
| 97 | info 'grails.app.bootstrap' // Set the log level per type and per type.class |
---|
| 98 | error 'grails.app.service.AuthService' |
---|
| 99 | error 'grails.app.service.NavigationService' |
---|
| 100 | error 'grails.app.service.com.zeddware.grails.plugins.filterpane.FilterService' |
---|
| 101 | error 'grails.app.task' // Quartz jobs. |
---|
| 102 | info 'grails.app.task.InventoryReindexJob' |
---|
[200] | 103 | |
---|
| 104 | // Move anything that should behave differently into this section. |
---|
| 105 | switch(environment) { |
---|
| 106 | case 'development': |
---|
[480] | 107 | // Configure the root logger to output to stdout and appLog appenders. |
---|
| 108 | root { |
---|
| 109 | error 'stdout','appLog' |
---|
| 110 | additivity = true |
---|
| 111 | } |
---|
[481] | 112 | //debug "org.hibernate.SQL" |
---|
[579] | 113 | debug 'grails.app.service' |
---|
| 114 | debug 'grails.app.controller' |
---|
[200] | 115 | break |
---|
| 116 | case 'test': |
---|
[480] | 117 | // Configure the root logger to only output to appLog appender. |
---|
| 118 | root { |
---|
[508] | 119 | error 'stdout','appLog' |
---|
[480] | 120 | additivity = true |
---|
| 121 | } |
---|
[579] | 122 | debug 'grails.app.service' |
---|
| 123 | debug 'grails.app.controller' |
---|
[200] | 124 | break |
---|
| 125 | case 'production': |
---|
[480] | 126 | // Configure the root logger to only output to appLog appender. |
---|
| 127 | root { |
---|
| 128 | error 'appLog' |
---|
| 129 | additivity = true |
---|
| 130 | } |
---|
[579] | 131 | warn 'grails.app.service' |
---|
| 132 | warn 'grails.app.controller' |
---|
| 133 | debug 'grails.app.service.AssetCsvService' |
---|
| 134 | debug 'grails.app.service.PersonCsvService' |
---|
| 135 | debug 'grails.app.service.InventoryCsvService' |
---|
| 136 | debug 'grails.app.service.AssetTreeService' /// @todo: remove after testing. |
---|
[200] | 137 | break |
---|
| 138 | } |
---|
[55] | 139 | } |
---|
| 140 | |
---|
[197] | 141 | /** |
---|
| 142 | * Environment specific configuration. |
---|
| 143 | */ |
---|
| 144 | environments { |
---|
| 145 | |
---|
| 146 | production { |
---|
| 147 | grails.serverURL = "http://www.changeme.com" // Set serverURL stem for creating absolute links. |
---|
[55] | 148 | } |
---|
| 149 | |
---|
[197] | 150 | development { |
---|
| 151 | grails.serverURL = "http://localhost:8080/${appName}" // Set serverURL stem for creating absolute links. |
---|
| 152 | } |
---|
[55] | 153 | |
---|
[197] | 154 | test { |
---|
| 155 | grails.serverURL = "http://localhost:8080/${appName}" // Set serverURL stem for creating absolute links. |
---|
| 156 | } |
---|
| 157 | |
---|
| 158 | } // end environments |
---|
| 159 | |
---|
[199] | 160 | /** |
---|
| 161 | * Navigation plugin menu. |
---|
| 162 | * The top level titles are taken from i18n message bundles. |
---|
| 163 | * Subitems i18n message bundles are not currently resolving with this plugin. |
---|
| 164 | */ |
---|
[139] | 165 | navigation.nav = [ |
---|
| 166 | [order:10, controller:'appCore', title:'home', action:'start', |
---|
| 167 | subItems: [ |
---|
| 168 | [order:10, controller:'appCore', title:'Start', action:'start', isVisible: { true }], |
---|
[149] | 169 | [order:20, controller:'appCore', title:'Manager', action:'manager', isVisible: { authenticateService.ifAnyGranted('ROLE_Manager,ROLE_AppAdmin') }], |
---|
[139] | 170 | [order:30, controller:'appCore', title:'Admin', action:'appAdmin', isVisible: { authenticateService.ifAllGranted('ROLE_AppAdmin') }], |
---|
| 171 | [order:90, controller:'appCore', title:'Timeout', action:'changeSessionTimeout', isVisible: { params.action == 'changeSessionTimeout' }], |
---|
| 172 | [order:91, controller:'appCore', title:'Password', action:'changePassword', isVisible: { params.action == 'changePassword' }], |
---|
| 173 | ] |
---|
| 174 | ], |
---|
| 175 | [order:20, controller:'taskDetailed', title:'tasks', action:'search', |
---|
| 176 | subItems: [ |
---|
[215] | 177 | [order:10, controller:'taskDetailed', title:'Search', action:'search', isVisible: { true }], |
---|
| 178 | [order:11, controller:'taskDetailed', title:'Calendar', action:'searchCalendar', isVisible: { true }], |
---|
[418] | 179 | [order:20, controller:'taskDetailed', title:'+Scheduled', action:'create', isVisible: { true }], |
---|
[433] | 180 | [order:30, controller:'taskDetailed', title:'+Unsheduled', action:'createUnscheduled', isVisible: { true }], |
---|
| 181 | [order:40, controller:'taskDetailed', title:'+Callout', action:'createImmediateCallout', isVisible: { true }], |
---|
| 182 | [order:90, controller:'taskDetailed', title:'Show', action:'show', id:'nav', isVisible: { params.action == 'show' }], |
---|
| 183 | [order:91, controller:'taskDetailed', title:'Edit', action:'edit', id:'nav', isVisible: { params.action == 'edit' }] |
---|
[139] | 184 | ] |
---|
| 185 | ], |
---|
| 186 | [order:30, controller:'inventoryItemDetailed', title:'inventory', action:'search', |
---|
| 187 | subItems: [ |
---|
| 188 | [order:10, controller:'inventoryItemDetailed', title:'Search', action:'search', isVisible: { true }], |
---|
| 189 | [order:20, controller:'inventoryItemDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 190 | [order:90, controller:'inventoryItemDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 191 | [order:91, controller:'inventoryItemDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 192 | ] |
---|
| 193 | ], |
---|
[306] | 194 | [order:40, controller:'assetDetailed', title:'assets', action:'search', |
---|
[139] | 195 | subItems: [ |
---|
[306] | 196 | [order:10, controller:'assetDetailed', title:'Search', action:'search', isVisible: { true }], |
---|
[139] | 197 | [order:20, controller:'assetDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 198 | [order:90, controller:'assetDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
[353] | 199 | [order:91, controller:'assetDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }], |
---|
| 200 | [order:99, controller:'assetSubItemDetailed', title:'Sub Items', action:'search', isVisible: { true }] |
---|
[139] | 201 | ] |
---|
| 202 | ] |
---|
| 203 | ] |
---|
[58] | 204 | |
---|
[199] | 205 | /** |
---|
| 206 | * Navigation plugin alternate menu. |
---|
[367] | 207 | * The alternate menu top level titles are not displayed anywhere. |
---|
[199] | 208 | * Subitems i18n message bundles are not currently resolving with this plugin. |
---|
| 209 | */ |
---|
[147] | 210 | navigation.navAlt = [ |
---|
| 211 | [order:10, controller:'person', title:'person', action:'list', |
---|
| 212 | subItems: [ |
---|
| 213 | [order:10, controller:'person', title:'Person List', action:'list', isVisible: { true }], |
---|
| 214 | [order:20, controller:'person', title:'Create', action:'create', isVisible: { true }], |
---|
| 215 | [order:90, controller:'person', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 216 | [order:91, controller:'person', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 217 | ] |
---|
| 218 | ], |
---|
[367] | 219 | [order:20, controller:'taskProcedureDetailed', title:'taskProcedure', action:'list', |
---|
[147] | 220 | subItems: [ |
---|
| 221 | [order:10, controller:'taskProcedureDetailed', title:'Task Procedure List', action:'list', isVisible: { true }], |
---|
| 222 | [order:20, controller:'taskProcedureDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 223 | [order:90, controller:'taskProcedureDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 224 | [order:91, controller:'taskProcedureDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 225 | ] |
---|
[367] | 226 | ], |
---|
| 227 | [order:30, controller:'assetSubItemDetailed', title:'assetSubItem', action:'search', |
---|
| 228 | subItems: [ |
---|
| 229 | [order:10, controller:'assetSubItemDetailed', title:'Sub Item Search', action:'search', isVisible: { true }], |
---|
| 230 | [order:20, controller:'assetSubItemDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 231 | [order:90, controller:'assetSubItemDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 232 | [order:91, controller:'assetSubItemDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 233 | ] |
---|
| 234 | ], |
---|
| 235 | [order:40, controller:'maintenancePolicyDetailed', title:'maintenancePolicy', action:'list', |
---|
| 236 | subItems: [ |
---|
| 237 | [order:10, controller:'maintenancePolicyDetailed', title:'Maintenance Policy List', action:'list', isVisible: { true }], |
---|
| 238 | [order:20, controller:'maintenancePolicyDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 239 | [order:90, controller:'maintenancePolicyDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 240 | [order:91, controller:'maintenancePolicyDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 241 | ] |
---|
[374] | 242 | ], |
---|
| 243 | [order:50, controller:'supplierDetailed', title:'supplier', action:'list', |
---|
| 244 | subItems: [ |
---|
| 245 | [order:10, controller:'supplierDetailed', title:'Supplier List', action:'list', isVisible: { true }], |
---|
| 246 | [order:20, controller:'supplierDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 247 | [order:90, controller:'supplierDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 248 | [order:91, controller:'supplierDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 249 | ] |
---|
| 250 | ], |
---|
| 251 | [order:60, controller:'manufacturerDetailed', title:'manufacturer', action:'list', |
---|
| 252 | subItems: [ |
---|
| 253 | [order:10, controller:'manufacturerDetailed', title:'Manufacturer List', action:'list', isVisible: { true }], |
---|
| 254 | [order:20, controller:'manufacturerDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 255 | [order:90, controller:'manufacturerDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 256 | [order:91, controller:'manufacturerDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 257 | ] |
---|
[377] | 258 | ], |
---|
| 259 | [order:70, controller:'inventoryStoreDetailed', title:'inventoryStore', action:'list', |
---|
| 260 | subItems: [ |
---|
| 261 | [order:10, controller:'inventoryStoreDetailed', title:'Inventory Store List', action:'list', isVisible: { true }], |
---|
| 262 | [order:20, controller:'inventoryStoreDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 263 | [order:90, controller:'inventoryStoreDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 264 | [order:91, controller:'inventoryStoreDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 265 | ] |
---|
| 266 | ], |
---|
| 267 | [order:80, controller:'inventoryLocationDetailed', title:'inventoryLocation', action:'list', |
---|
| 268 | subItems: [ |
---|
| 269 | [order:10, controller:'inventoryLocationDetailed', title:'Inventory Location List', action:'list', isVisible: { true }], |
---|
| 270 | [order:20, controller:'inventoryLocationDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 271 | [order:90, controller:'inventoryLocationDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 272 | [order:91, controller:'inventoryLocationDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 273 | ] |
---|
[380] | 274 | ], |
---|
| 275 | [order:90, controller:'inventoryGroupDetailed', title:'inventoryGroup', action:'list', |
---|
| 276 | subItems: [ |
---|
| 277 | [order:10, controller:'inventoryGroupDetailed', title:'Inventory Group List', action:'list', isVisible: { true }], |
---|
| 278 | [order:20, controller:'inventoryGroupDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 279 | [order:90, controller:'inventoryGroupDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 280 | [order:91, controller:'inventoryGroupDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 281 | ] |
---|
[383] | 282 | ], |
---|
| 283 | [order:100, controller:'manufacturerTypeDetailed', title:'manufacturerType', action:'list', |
---|
| 284 | subItems: [ |
---|
| 285 | [order:10, controller:'manufacturerTypeDetailed', title:'Manufacturer Type List', action:'list', isVisible: { true }], |
---|
| 286 | [order:20, controller:'manufacturerTypeDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 287 | [order:90, controller:'manufacturerTypeDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 288 | [order:91, controller:'manufacturerTypeDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 289 | ] |
---|
| 290 | ], |
---|
| 291 | [order:110, controller:'supplierTypeDetailed', title:'supplierType', action:'list', |
---|
| 292 | subItems: [ |
---|
| 293 | [order:10, controller:'supplierTypeDetailed', title:'Supplier Type List', action:'list', isVisible: { true }], |
---|
| 294 | [order:20, controller:'supplierTypeDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 295 | [order:90, controller:'supplierTypeDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 296 | [order:91, controller:'supplierTypeDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 297 | ] |
---|
[385] | 298 | ], |
---|
[386] | 299 | [order:120, controller:'siteDetailed', title:'site', action:'list', |
---|
[385] | 300 | subItems: [ |
---|
| 301 | [order:10, controller:'siteDetailed', title:'Site List', action:'list', isVisible: { true }], |
---|
| 302 | [order:20, controller:'siteDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 303 | [order:90, controller:'siteDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 304 | [order:91, controller:'siteDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 305 | ] |
---|
| 306 | ], |
---|
[386] | 307 | [order:130, controller:'sectionDetailed', title:'section', action:'list', |
---|
[385] | 308 | subItems: [ |
---|
| 309 | [order:10, controller:'sectionDetailed', title:'Section List', action:'list', isVisible: { true }], |
---|
| 310 | [order:20, controller:'sectionDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 311 | [order:90, controller:'sectionDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 312 | [order:91, controller:'sectionDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 313 | ] |
---|
[386] | 314 | ], |
---|
[387] | 315 | [order:140, controller:'extendedAttributeTypeDetailed', title:'extendedAttributeType', action:'list', |
---|
[386] | 316 | subItems: [ |
---|
| 317 | [order:10, controller:'extendedAttributeTypeDetailed', title:'Attribute Type List', action:'list', isVisible: { true }], |
---|
| 318 | [order:20, controller:'extendedAttributeTypeDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 319 | [order:90, controller:'extendedAttributeTypeDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 320 | [order:91, controller:'extendedAttributeTypeDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 321 | ] |
---|
[412] | 322 | ], |
---|
| 323 | [order:150, controller:'departmentDetailed', title:'department', action:'list', |
---|
| 324 | subItems: [ |
---|
| 325 | [order:10, controller:'departmentDetailed', title:'Department List', action:'list', isVisible: { true }], |
---|
| 326 | [order:20, controller:'departmentDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 327 | [order:90, controller:'departmentDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 328 | [order:91, controller:'departmentDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 329 | ] |
---|
[431] | 330 | ], |
---|
| 331 | [order:160, controller:'productionReferenceDetailed', title:'productionReference', action:'list', |
---|
| 332 | subItems: [ |
---|
| 333 | [order:10, controller:'productionReferenceDetailed', title:'Production Reference List', action:'list', isVisible: { true }], |
---|
| 334 | [order:20, controller:'productionReferenceDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 335 | [order:90, controller:'productionReferenceDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 336 | [order:91, controller:'productionReferenceDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 337 | ] |
---|
[440] | 338 | ], |
---|
| 339 | [order:170, controller:'costCodeDetailed', title:'costCode', action:'list', |
---|
| 340 | subItems: [ |
---|
| 341 | [order:10, controller:'costCodeDetailed', title:'Cost Code List', action:'list', isVisible: { true }], |
---|
| 342 | [order:20, controller:'costCodeDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 343 | [order:90, controller:'costCodeDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 344 | [order:91, controller:'costCodeDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 345 | ] |
---|
[471] | 346 | ], |
---|
| 347 | [order:180, controller:'personGroupDetailed', title:'personGroup', action:'list', |
---|
| 348 | subItems: [ |
---|
| 349 | [order:10, controller:'personGroupDetailed', title:'Person Group List', action:'list', isVisible: { true }], |
---|
| 350 | [order:20, controller:'personGroupDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 351 | [order:90, controller:'personGroupDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 352 | [order:91, controller:'personGroupDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 353 | ] |
---|
| 354 | ], |
---|
| 355 | [order:190, controller:'personGroupTypeDetailed', title:'personGroupType', action:'list', |
---|
| 356 | subItems: [ |
---|
| 357 | [order:10, controller:'personGroupTypeDetailed', title:'Person Group Type List', action:'list', isVisible: { true }], |
---|
| 358 | [order:20, controller:'personGroupTypeDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 359 | [order:90, controller:'personGroupTypeDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 360 | [order:91, controller:'personGroupTypeDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 361 | ] |
---|
[556] | 362 | ], |
---|
| 363 | [order:200, controller:'taskGroupDetailed', title:'taskProcedure', action:'list', |
---|
| 364 | subItems: [ |
---|
| 365 | [order:10, controller:'taskGroupDetailed', title:'Task Group List', action:'list', isVisible: { true }], |
---|
| 366 | [order:20, controller:'taskGroupDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 367 | [order:90, controller:'taskGroupDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 368 | [order:91, controller:'taskGroupDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 369 | ] |
---|
[559] | 370 | ], |
---|
| 371 | [order:210, controller:'unitOfMeasureDetailed', title:'unitOfMeasure', action:'list', |
---|
| 372 | subItems: [ |
---|
| 373 | [order:10, controller:'unitOfMeasureDetailed', title:'Unit Of Measure List', action:'list', isVisible: { true }], |
---|
| 374 | [order:20, controller:'unitOfMeasureDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 375 | [order:90, controller:'unitOfMeasureDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 376 | [order:91, controller:'unitOfMeasureDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 377 | ] |
---|
[595] | 378 | ], |
---|
| 379 | [order:220, controller:'inventoryItemPurchaseDetailed', title:'inventoryItemPurchase', action:'search', |
---|
| 380 | subItems: [ |
---|
| 381 | [order:10, controller:'inventoryItemPurchaseDetailed', title:'Purchase Search', action:'search', isVisible: { true }], |
---|
| 382 | [order:20, controller:'inventoryItemPurchaseDetailed', title:'Order', action:'create', isVisible: { true }], |
---|
| 383 | [order:90, controller:'inventoryItemPurchaseDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 384 | [order:91, controller:'inventoryItemPurchaseDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 385 | ] |
---|
[147] | 386 | ] |
---|
| 387 | ] |
---|
[199] | 388 | |
---|
| 389 | /** |
---|
[604] | 390 | * Custom application global settings. |
---|
[607] | 391 | * @todo: externalise these settings to a config file (along with the database settings) or have them configurable via the web interface+database. |
---|
[199] | 392 | */ |
---|
| 393 | taskRecurringScheduleJob.repeatInterval=10 |
---|
[608] | 394 | // It is recommended to limit the currencyList to the one that the site uses e.g: currencyList = ['AUD'] |
---|
[607] | 395 | currencyList = ['EUR', 'XCD', 'USD', 'XOF', 'NOK', 'AUD', 'XAF', 'NZD', 'MAD', 'DKK', 'GBP', 'CHF', 'XPF', 'ILS', 'ROL', 'TRL'] |
---|
[604] | 396 | |
---|