Ignore:
Timestamp:
Apr 7, 2009, 12:21:23 AM (16 years ago)
Author:
gav
Message:

Some CSS adjustments to text color, img border, remove body height:100%, add buttons input.add to CSS.
Move admin stuff to AppAdmin? to make it very clear that it is not for daily use.
TaskDetailed? list and delete now use the IsActive? attribute.
Remove Task.comment size constraint.
Add more help-ballons to TaskDetailed? create.
Clean loose comments from main.gsp and auth.gsp
Use pretty pictures in TaskDetailed? views instead of Edit and Show words.

Location:
trunk/grails-app/controllers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/AppCoreController.groovy

    r99 r106  
    5656
    5757    @Secured(['ROLE_AppAdmin'])   
    58     def admin = {
     58    def appAdmin = {
    5959    }
    6060
  • trunk/grails-app/controllers/TaskDetailedController.groovy

    r96 r106  
    1010    def list = {
    1111        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
    12         [ taskInstanceList: Task.list( params ), taskInstanceTotal: Task.count() ]
     12        def taskInstanceList = Task.findAllByIsActive( true )
     13        return [ taskInstanceList: taskInstanceList, taskInstanceTotal: taskInstanceList.count() ]
    1314    }
    1415
     
    2728        if(taskInstance) {
    2829            try {
    29                 taskInstance.delete()
    30                 flash.message = "Task ${params.id} deleted"
     30                taskInstance.isActive = false
     31                flash.message = "Task ${params.id} has been set to inactive."
    3132                redirect(action:list)
    3233            }
Note: See TracChangeset for help on using the changeset viewer.