Ignore:
Timestamp:
Jan 29, 2009, 8:31:15 PM (16 years ago)
Author:
gav
Message:

Added login page and adjusted Person domain/views/controller and BootStrap?.
Add beforeInterceptor() to all controllers.
Added BaseController?.
Added adminmenubar adjust layout and css to suite.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/grails-app/conf/BootStrap.groovy

    r39 r40  
    4444        //Person
    4545        new Person(personGroup:PersonGroup.get(1),
    46                    firstName:"Craig",
    47                    lastName:"SuperTech").save()
     46            firstName:"Admin",
     47            lastName:"Powers",
     48            userId:"admin",
     49            password:"pass").save()
     50        new Person(personGroup:PersonGroup.get(1),
     51            firstName:"User",
     52            lastName:"Tester",
     53            userId:"user",
     54            password:"pass").save()
     55        new Person(personGroup:PersonGroup.get(1),
     56            firstName:"Craig",
     57            lastName:"SuperTech",
     58            userId:"craig",
     59            password:"pass").save()
    4860        new Person(personGroup:PersonGroup.get(2),
    49                    firstName:"Joe",
    50                    lastName:"Samples").save()
     61            firstName:"Joe",
     62            lastName:"Samples",
     63            userId:"joe",
     64            password:"pass").save()
    5165        new Person(personGroup:PersonGroup.get(1),
    52                    firstName:"Production",
    53                    lastName:"Mann").save()
     66            firstName:"Production",
     67            lastName:"Mann",
     68            userId:"Mann",
     69            password:"pass").save()
    5470               
    5571        //TaskGroup
     
    6480        //Task
    6581        new Task(taskGroup:TaskGroup.findByName("Engineering"),
    66                  person:Person.get(1),
     82                 person:Person.get(3),
    6783                 name:"Check specific level sensor",
    6884                 description:"Has been noted as problematic, try recallibrating",
     
    7086                 targetDate: new Date() ).save()
    7187        new Task(taskGroup:TaskGroup.findByName("Production"),
    72                  person:Person.get(2),
     88                 person:Person.get(5),
    7389                 name:"Production Report",
    7490                 description:"Production report for specific production run or shift",
     91                 scheduledDate: new Date(),
     92                 targetDate: new Date() ).save()
     93        new Task(taskGroup:TaskGroup.findByName("NewProject(s)"),
     94                 person:Person.get(1),
     95                 name:"Make killer CMMS app",
     96                 description:"Use Grails and get a move on!",
    7597                 scheduledDate: new Date(),
    7698                 targetDate: new Date() ).save()
Note: See TracChangeset for help on using the changeset viewer.