- Timestamp:
- Feb 3, 2009, 10:51:43 PM (16 years ago)
- Location:
- trunk/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/grails-app/domain/Entry.groovy
r39 r50 18 18 19 19 } 20 21 String toString() { 22 "${this.comments}" 23 } 20 24 } 21 25 -
trunk/src/grails-app/domain/Task.groovy
r47 r50 7 7 Date targetDate 8 8 9 static hasMany = [entries: Entry, modifications 9 static hasMany = [entries: Entry, modifications: Modification] 10 10 11 11 static belongsTo = [TaskGroup, Person] -
trunk/src/grails-app/views/_adminmenubar.gsp
r44 r50 13 13 </span> 14 14 </g:if> 15 -
trunk/src/grails-app/views/person/login.gsp
r44 r50 9 9 10 10 <div class="body"> 11 <h1> Please log in</h1>11 <h1>Welcome to gnuMims please log in</h1> 12 12 <g:if test="${flash.message}"> 13 13 <div class="message">${flash.message}</div> -
trunk/src/grails-app/views/task/edit.gsp
r49 r50 14 14 </div> 15 15 <div class="body"> 16 <h1>Edit Task</h1>17 16 <g:if test="${flash.message}"> 18 17 <div class="message">${flash.message}</div> 19 18 </g:if> 19 <h1>Edit Task</h1> 20 21 20 22 <g:hasErrors bean="${taskInstance}"> 21 23 <div class="errors"> … … 25 27 <g:form method="post" > 26 28 <input type="hidden" name="id" value="${taskInstance?.id}" /> 29 <div class="buttons"> 30 <span class="button"><g:actionSubmit class="save" value="Update" /></span> 31 <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> 32 <span class="menuButton"><g:link controller="entry" params="['task.id':taskInstance.id]" action="create">Add Entry</g:link></span> 33 <span class="menuButton"><g:link controller="modification" params="['task.id':taskInstance?.id]" action="list">Show Modifications</g:link></span> 34 </div> 27 35 <div class="dialog"> 28 36 <table> … … 83 91 </td> 84 92 </tr> 85 <tr class="prop">86 <td valign="top">87 <g:link controller="entry" params="['task.id':taskInstance.id]" action="create">Add Entry</g:link>88 </td>89 </tr>90 91 <tr class="prop">92 <td valign="top">93 <!-- <g:link controller="modification" params="['task.id':taskInstance?.id]" action="showModifications">Show Modifications</g:link> -->94 <g:link controller="modification" params="['task.id':taskInstance?.id]" action="list">Show Modifications</g:link>95 </td>96 </tr>97 93 </tbody> 98 94 </table> 99 95 </div> 100 <div class="buttons"> 101 <span class="button"><g:actionSubmit class="save" value="Update" /></span> 102 <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> 103 </div> 96 104 97 </g:form> 105 98 </div> -
trunk/src/grails-app/views/task/show.gsp
r47 r50 1 2 3 1 <html> 4 2 <head> … … 18 16 <div class="message">${flash.message}</div> 19 17 </g:if> 18 <div class="buttons"> 19 <g:form> 20 <input type="hidden" name="id" value="${taskInstance?.id}" /> 21 <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> 22 <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> 23 </g:form> 24 </div> 25 20 26 <div class="dialog"> 21 27 <table> … … 44 50 </tr> 45 51 46 <tr class="prop"> 47 <td valign="top" class="name">Entries:</td> 48 49 <td valign="top" style="text-align:left;" class="value"> 50 <ul> 51 <g:each var="e" in="${taskInstance.entries}"> 52 <li><g:link controller="entry" action="show" id="${e.id}">${e?.encodeAsHTML()}</g:link></li> 53 </g:each> 54 </ul> 55 </td> 56 57 </tr> 52 58 53 59 <tr class="prop">54 <!-- <tr class="prop"> 60 55 <td valign="top" class="name">Modifications:</td> 61 56 … … 68 63 </td> 69 64 70 </tr> 65 </tr>--> 71 66 72 67 <tr class="prop"> … … 101 96 </table> 102 97 </div> 103 <div class="buttons"> 104 <g:form> 105 <input type="hidden" name="id" value="${taskInstance?.id}" /> 106 <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> 107 <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> 108 </g:form> 98 <div class="dialog"> 99 <table> 100 <tbody> 101 <div class="dialog"> 102 <tr class="prop"> 103 <td valign="top" class="name">Entries:</td> 104 <td /> 105 <td /> 106 <td /> 107 </tr> 108 <tr class="prop"> 109 <td /> 110 <td valign="top" style="text-align:left;" class="value"> 111 <g:each var="comment" in="${taskInstance.entries.comments}"> 112 </br> 113 ${comment} 114 </br> 115 </g:each> 116 </td> 117 <td valign="top" style="text-align:left;" class="value"> 118 <g:each var="date" in="${taskInstance.entries.date}"> 119 </br> 120 ${date} 121 </br> 122 </g:each> 123 </td> 124 <td valign="top" style="text-align:left;" class="value"> 125 <g:each var="person" in="${taskInstance.entries.person}"> 126 </br> 127 ${person} 128 </br> 129 </g:each> 130 </td> 131 </tr> 132 </div> 133 </tbody> 134 </table> 109 135 </div> 110 136 </div> -
trunk/src/web-app/css/public.css
r48 r50 56 56 font-weight: normal; 57 57 font-size: 16px; 58 margin: .8em0 .3em 0;58 margin: 0 0 .3em 0; 59 59 } 60 60 … … 152 152 color: #006dba; 153 153 margin: 10px 0 5px 0; 154 padding: 5px 5px 5px 30px154 padding: 5px 5px 5px 0px 155 155 } 156 156
Note: See TracChangeset
for help on using the changeset viewer.