Changeset 54
- Timestamp:
- Nov 9, 2009, 2:04:00 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/application.properties
r51 r54 1 1 #utf-8 2 # Fri Nov 06 13:55:45 CET 20092 #Mon Nov 09 12:32:00 EST 2009 3 3 plugins.shiro=1.0.1 4 4 plugins.mail=0.9 -
trunk/grails-app/conf/DataSource.groovy
r45 r54 35 35 * @see http://wiki.github.com/RobertFischer/autobase/example-usage 36 36 */ 37 dbCreate = 37 dbCreate = "update" 38 38 username = "gscf" 39 39 password = "dbnp" … … 42 42 driverClassName = "org.postgresql.Driver" 43 43 url = "jdbc:postgresql://localhost:5432/gscf" 44 dialect = org.hibernate.dialect.PostgreSQLDialect 44 45 45 46 // MySQL 47 //driverClassName = "com.mysql.jdbc.Driver" 46 48 //url = "jdbc:mysql://localhost/gscf" 49 //dialect = "org.hibernate.dialect.MySQL5InnoDBDialect" 47 50 48 51 //In memory 49 //driverClassName = "com.mysql.jdbc.Driver"50 52 //url = "jdbc:hsqldb:file:prodDb;shutdown=true" 51 53 } -
trunk/grails-app/conf/NimbleBootStrap.groovy
r53 r54 46 46 47 47 // Execute any custom Nimble related BootStrap for your application below 48 if (nimble.User.count() == 0) { 48 49 49 // Create example User account50 def user = InstanceGenerator.user()51 user.username = "user"52 user.pass = 'useR123!'53 user.passConfirm = 'useR123!'54 user.enabled = true50 // Create example User account 51 def user = InstanceGenerator.user() 52 user.username = "user" 53 user.pass = 'useR123!' 54 user.passConfirm = 'useR123!' 55 user.enabled = true 55 56 56 def userProfile = InstanceGenerator.profile()57 userProfile.fullName = "Test User"58 userProfile.owner = user59 user.profile = userProfile57 def userProfile = InstanceGenerator.profile() 58 userProfile.fullName = "Test User" 59 userProfile.owner = user 60 user.profile = userProfile 60 61 61 def savedUser = userService.createUser(user) 62 if (savedUser.hasErrors()) { 63 savedUser.errors.each { 64 log.error(it) 65 } 66 throw new RuntimeException("Error creating example user") 62 def savedUser = userService.createUser(user) 63 if (savedUser.hasErrors()) { 64 savedUser.errors.each { 65 log.error(it) 66 } 67 throw new RuntimeException("Error creating example user") 68 } 69 70 // Create example Administrative account 71 def admins = Role.findByName(AdminsService.ADMIN_ROLE) 72 def admin = InstanceGenerator.user() 73 admin.username = "admin" 74 admin.pass = "admiN123!" 75 admin.passConfirm = "admiN123!" 76 admin.enabled = true 77 78 def adminProfile = InstanceGenerator.profile() 79 adminProfile.fullName = "Administrator" 80 adminProfile.owner = admin 81 admin.profile = adminProfile 82 83 def savedAdmin = userService.createUser(admin) 84 if (savedAdmin.hasErrors()) { 85 savedAdmin.errors.each { 86 log.error(it) 87 } 88 throw new RuntimeException("Error creating administrator") 89 } 90 91 adminsService.add(admin) 92 67 93 } 68 69 // Create example Administrative account70 def admins = Role.findByName(AdminsService.ADMIN_ROLE)71 def admin = InstanceGenerator.user()72 admin.username = "admin"73 admin.pass = "admiN123!"74 admin.passConfirm = "admiN123!"75 admin.enabled = true76 77 def adminProfile = InstanceGenerator.profile()78 adminProfile.fullName = "Administrator"79 adminProfile.owner = admin80 admin.profile = adminProfile81 82 def savedAdmin = userService.createUser(admin)83 if (savedAdmin.hasErrors()) {84 savedAdmin.errors.each {85 log.error(it)86 }87 throw new RuntimeException("Error creating administrator")88 }89 90 adminsService.add(admin)91 94 } 92 95 -
trunk/grails-app/views/layouts/main.gsp
r52 r54 7 7 <link rel="stylesheet" href="${resource(dir:'css',file:'login_panel.css')}" /> 8 8 <link rel="shortcut icon" href="${resource(dir:'images',file:'favicon.ico')}" type="image/x-icon" /> 9 <!-- 10 we'd rather like to use this tag, as this tag uses the proper jquery version 11 as maintained by the jquery plugin. However, nimble is conflicting at this 12 moment and tries to fetch jquery from it's plugin resource location (which 13 you can see in the HTML rendered version of this layout in the nimble views. 14 So for now we will use the hardcoded javascript tag instead and comment out: 15 <g:javascript library="jquery" /> 16 @see http://jira.codehaus.org/browse/GRAILSPLUGINS-1658 17 @see http://github.com/intient/nimble/issues#issue/55 18 //--> 19 <script type="text/javascript" src="/gscf/js/jquery/jquery-1.3.2.js"></script> 20 <!-- /jquery //--> 21 9 <my:jquery/> 22 10 <!-- layouthead //--> 23 11 <g:layoutHead /> -
trunk/grails-app/views/query/index.gsp
r41 r54 3 3 <title>Generic Study Capture Framework - Query studies</title> 4 4 <meta name="layout" content="main" /> 5 <g:javascript library="jquery"/> 6 <link rel="stylesheet" href="${createLinkTo(dir:'css/jquery-ui', file: 'jquery-ui-1.7.2.custom.css')}"/> 7 <script src="${createLinkTo(dir: 'js', file: 'jquery-ui-1.7.2.custom.min.js')}" type="text/javascript"></script> 5 <my:jqueryui/> 8 6 <script type="text/javascript"> 9 7 $(function() {
Note: See TracChangeset
for help on using the changeset viewer.