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/grails-app/views/taskDetailed
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • 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>
Note: See TracChangeset for help on using the changeset viewer.