Changeset 106


Ignore:
Timestamp:
Apr 7, 2009, 12:21:23 AM (15 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
Files:
12 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/application.properties

    r105 r106  
    11#utf-8
    2 #Sun Apr 05 15:45:59 EST 2009
     2#Sun Apr 05 16:03:34 EST 2009
    33plugins.help-balloons=1.2
    44app.version=0.1
  • 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            }
  • trunk/grails-app/domain/Task.groovy

    r96 r106  
    2828        taskStatus()
    2929        parentTask(blank: true, nullable:true)
    30         comment(maxSize:255)
     30        comment()
    3131       
    3232    }
  • trunk/grails-app/i18n/messages.properties

    r99 r106  
    55entry.duration=Duration
    66entry.duration.help=The time (hh:mm) booked against this entry for date done.
     7
     8task.assignedPersons=Assigned Persons
     9task.assignedPersons.help=The persons assigned to work on this task during planning along with estimated time.
     10task.description=Task Description
     11task.description.help=Short basic description of the task.
     12task.comment=Task Comment
     13task.comment.help=Long text for additional info, only shown in detail views.
     14task.targetStartDate=Target Start Date
     15task.targetStartDate.help=The date we would like the task to start, set during scheduling.
     16task.targetCompletionDate=Target Completion Date
     17task.targetCompletionDate.help=The date we would like the task to be completed by, set during scheduling.
     18task.leadPerson=Lead Person
     19task.leadPerson.help=The primay contact person.
    720
    821default.doesnt.match.message=Property [{0}] of class [{1}] with value [{2}] does not match the required pattern [{3}]
  • trunk/grails-app/views/_adminmenubar.gsp

    r91 r106  
    99    <g:ifAnyGranted role="ROLE_AppAdmin">
    1010        <span class="appControlButton">
    11             <g:link controller="appCore" action="admin">
    12                 Admin
     11            <g:link controller="appCore" action="appAdmin">
     12                AppAdmin
    1313            </g:link>
    1414        </span>
  • trunk/grails-app/views/layouts/main.gsp

    r98 r106  
    1818                    <img src="${createLinkTo(dir:'images',file:'spinner.gif')}" alt="Spinner" />
    1919                </div> 
    20                 <!-- <div class="logo" style="text-align: center; width: 980px; height: 220px">
    21                 <img src="${createLinkTo(dir:'images',file:'logo.png')}"
    22                 alt="gnuMims" />
    23                 <g:render template="/adminmenubar" />
    24        
    25                 </div> -->
    2620                <div id="Header">
    2721                    <a href="http://www.gnumims.org" id=HeaderLink></a>
  • trunk/grails-app/views/login/auth.gsp

    r59 r106  
    4646        <div id='login'>
    4747        <h1>Welcome to gnuMims please log in</h1>
    48         The demo users are "admin" and "user" both having password "pass"
     48        The demo users are "manager" and "user" both having password "pass"
    4949
    5050                <div class='inner'>
     
    6262                                        <input type='password' class='text_' name='j_password' id='j_password' />
    6363                                </p>
    64 <!--                            <p>
    65                                         <label for='remember_me'>Remember me</label>
    66                                         <input type='checkbox' class='chk' name='_spring_security_remember_me' id='remember_me'
    67                                         <g:if test='${hasCookie}'>checked='checked'</g:if> />
    68                                 </p>-->
     64
    6965                                <p>
    7066                                        <input type='submit' value='Login' />
  • trunk/grails-app/views/taskDetailed/create.gsp

    r91 r106  
    3333                                <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'description','errors')}">
    3434                                    <input type="text"  style="width:450px" maxlength="75" id="description" name="description" value="${fieldValue(bean:taskInstance,field:'description')}"/>
     35                                    <g:helpBalloon class="helpballoon" code="task.description" />
    3536                                </td>
    3637                            </tr>
     
    4243                                <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'comment','errors')}">
    4344                                    <textarea  style="width:450px" rows="5" cols="40" name="comment">${fieldValue(bean:taskInstance, field:'comment')}</textarea>
     45                                    <g:helpBalloon class="helpballoon" code="task.comment" />
    4446                                </td>
    4547                            </tr>
     
    5153                                <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'targetStartDate','errors')}">
    5254                                    <g:datePicker name="targetStartDate" value="${taskInstance?.targetStartDate}" precision="day"></g:datePicker>
     55                                    <g:helpBalloon class="helpballoon" code="task.targetStartDate" />
    5356                                </td>
    5457                            </tr>
     
    6063                                <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'targetCompletionDate','errors')}">
    6164                                    <g:datePicker name="targetCompletionDate" value="${taskInstance?.targetCompletionDate}" precision="day"></g:datePicker>
     65                                    <g:helpBalloon class="helpballoon" code="task.targetCompletionDate" />
    6266                                </td>
    6367                            </tr>
     
    6973                                <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'leadPerson','errors')}">
    7074                                    <g:select optionKey="id" from="${Person.list()}" name="leadPerson.id" value="${taskInstance?.leadPerson?.id}" ></g:select>
     75                                    <g:helpBalloon code="task.leadPerson" />
    7176                                </td>
    7277                            </tr>
  • trunk/grails-app/views/taskDetailed/list.gsp

    r85 r106  
    3333                           
    3434                                <th>Task Status</th>
    35            
    36                             <th>Edit</th>
    3735
    38                             <th>Show</th>
     36                            <th></th>
    3937                           
    4038                        </tr>
     
    5654                            <td>${fieldValue(bean:taskInstance, field:'taskStatus')}</td>
    5755
    58                             <td><g:link action="edit" id="${taskInstance.id}">Edit</g:link></td>
    59 
    60                             <td><g:link action="show" id="${taskInstance.id}">Show</g:link></td>
     56                            <td>
     57                                <g:link action="show" id="${taskInstance.id}">
     58                                    <img  src="${createLinkTo(dir:'images/skin',file:'database_table.png')}" alt="Show" />
     59                                </g:link>
     60                            </td>
    6161                       
    6262                        </tr>
  • trunk/grails-app/views/taskDetailed/show.gsp

    r98 r106  
    161161                    <thead>
    162162                        <tr>
    163                             <th style="color:Black">Comment</th>
    164                             <th style="color:Black">Date Done</th>
    165                             <th style="color:Black">Duration</th>
    166                             <th style="color:Black">Entered By</th>
    167                             <th style="color:Black">Edit</th>
     163                            <th>Comment</th>
     164                            <th>Date Done</th>
     165                            <th>Duration</th>
     166                            <th>Entered By</th>
     167                            <th></th>
    168168
    169169<!--                            <g:sortableColumn property="comment" title="Comment" />
     
    179179                            <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
    180180                           
    181                                 <td width="65%">${entry.comment}</td>
     181                                <td style="width:65%">${entry.comment}</td>
    182182                                <td><g:formatDate date="${entry.dateDone}" format="EEE, dd MMM yyyy"/></td>
    183183                                <td>${entry.durationHour}:${entry.durationMinute}</td>
    184184                                <td>${entry.enteredBy}</td>
    185                                 <td><g:link controller="entryDetailed" action="edit" id="${entry.id}">Edit</g:link></td>
     185                                <td>
     186                                    <g:link controller="entryDetailed" action="edit" id="${entry.id}">
     187                                        <img  src="${createLinkTo(dir:'images/skin',file:'database_edit.png')}" alt="Edit" />
     188                                    </g:link>
     189                                </td>
    186190
    187191                        </g:if>
     
    198202                    <thead>
    199203                        <tr>
    200                             <th style="color:Black">Comment</th>
    201                             <th style="color:Black">Date Done</th>
    202                             <th style="color:Black">Duration</th>
    203                             <th style="color:Black">Entered By</th>
    204                             <th style="color:Black">Edit</th>
     204                            <th>Comment</th>
     205                            <th>Date Done</th>
     206                            <th>Duration</th>
     207                            <th>Entered By</th>
     208                            <th></th>
    205209<!--                            <g:sortableColumn property="commentW" title="Comment" />
    206210                       
     
    219223                                <td>${entry.durationHour}:${entry.durationMinute}</td>
    220224                                <td>${entry.enteredBy}</td>
    221                                 <td><g:link controller="entryDetailed" action="edit" id="${entry.id}">Edit</g:link></td>
     225                                <td>
     226                                    <g:link controller="entryDetailed" action="edit" id="${entry.id}">
     227                                        <img  src="${createLinkTo(dir:'images/skin',file:'database_edit.png')}" alt="Edit" />
     228                                    </g:link>
     229                                </td>
    222230                        </g:if>
    223231                       
     
    234242                    <input type="hidden" name="taskInstance.id" value="${taskInstance?.id}" />
    235243                    <span class="button">
    236                         <g:actionSubmit value="Add Entry" action="create"  class="edit"/>
     244                        <g:actionSubmit value="Add Entry" action="create"  class="add"/>
    237245                    </span>
    238246                </g:form>
  • trunk/web-app/css/main.css

    r98 r106  
    1717    width: 980px
    1818    background: #fff;
    19     color: #333;
     19    color: #222;
    2020    font: 14px verdana, arial, helvetica, sans-serif;
    2121    background: transparent url("../images/brushed_metal.png") repeat fixed center;
     
    5555    font-weight: bold;
    5656    text-decoration: none;
     57}
     58
     59img {
     60    border: 0px;
    5761}
    5862
     
    9195    padding: 0px 20px 20px;
    9296    background: url("../images/Contentbg.png") repeat-y scroll center;
    93     height: 100%;
     97/*     height: 100%; */
    9498}
    9599
     
    212216th {
    213217    background: #fff url(../images/skin/shadow.jpg);
    214     color: #666;
     218    color: #555;
    215219    font-size: 14px;
    216220    font-weight: bold;
     
    333337    padding-left: 28px;
    334338}
     339.buttons input.add {
     340    background: transparent url(../images/skin/database_add.png) 5px 50% no-repeat;
     341    padding-left: 28px;
     342}
    335343
    336344#bottom {
Note: See TracChangeset for help on using the changeset viewer.