Changeset 191 for trunk/grails-app/views
- Timestamp:
- Nov 19, 2009, 9:16:21 PM (15 years ago)
- Location:
- trunk/grails-app/views
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/entryDetailed/create.gsp
r186 r191 24 24 <g:form action="save" method="post" > 25 25 <g:hiddenField name="task.id" value="${entryInstance.task.id}" /> 26 <g:hiddenField name="entryType.id" value="${entryInstance.entryType.id}" /> 26 27 <div class="dialog"> 27 28 <table> … … 33 34 </td> 34 35 <td valign="top" class="name"> 35 ${entryInstance?.task} 36 <g:link controller="taskDetailed" action="show" id="${entryInstance.task.id}" > 37 ${entryInstance?.task} 38 </g:link> 36 39 </td> 37 </tr> 40 </tr> 38 41 39 42 <tr class="prop"> 40 43 <td valign="top" class="name"> 41 <label for="comment"> Comment:</label>44 <label for="comment">${entryInstance?.entryType}:</label> 42 45 </td> 43 46 <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'comment','errors')}"> … … 71 74 </td> 72 75 </tr> 73 74 <tr class="prop">75 <td valign="top" class="name">76 <label for="entryType">Entry Type:</label>77 </td>78 <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'entryType','errors')}">79 <g:select optionKey="id" from="${EntryType.list()}" name="entryType.id" value="${entryInstance?.entryType?.id}" ></g:select>80 </td>81 </tr>82 76 83 77 </tbody> -
trunk/grails-app/views/inventoryMovementDetailed/create.gsp
r177 r191 59 59 </td> 60 60 <td valign="top" name="inventoryMovementInstance.task" class="value"> 61 <input type="hidden" id="task.id" name="task.id" value="${inventoryMovementInstance.task.id}" /> 62 ${inventoryMovementInstance.task} 61 <g:hiddenField name="task.id" value="${inventoryMovementInstance.task.id}" /> 62 <g:link controller="taskDetailed" action="show" id="${inventoryMovementInstance.task.id}" > 63 ${inventoryMovementInstance.task} 64 </g:link> 63 65 </td> 64 66 </tr> -
trunk/grails-app/views/taskDetailed/show.gsp
r184 r191 231 231 </div> 232 232 233 <div class="list">234 <h1>Faults</h1>235 <table>236 <thead>237 <tr>238 <th>Comment</th>239 <th>Date Done</th>240 <th>Duration</th>241 <th>Entered By</th>242 <th></th>243 </tr>244 </thead>245 <tbody>246 <g:each in="${entryFaultList}" status="i" var="entry">247 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'/>248 249 <td style="width:65%">${entry.comment}</td>250 <td><g:formatDate date="${entry.dateDone}" format="EEE, dd-MMM-yyyy"/></td>251 <td>${entry.durationHour}:${entry.durationMinute}</td>252 <td>${entry.enteredBy}</td>253 254 <td>255 <g:link controller="entryDetailed" action="edit" id="${entry.id}">256 <img src="${resource(dir:'images/skin',file:'database_edit.png')}" alt="Edit" />257 </g:link>258 </td>259 260 </tr>261 </g:each>262 </tbody>263 </table>264 </div>265 266 <div class="list">267 <h1>Work Done</h1>268 <table>269 <thead>270 <tr>271 <th>Comment</th>272 <th>Date Done</th>273 <th>Duration</th>274 <th>Entered By</th>275 <th></th>276 </tr>277 </thead>278 <tbody>279 <g:each in="${entryWorkDoneList}" status="i" var="entry">280 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'/>281 282 <td width="65%">${entry.comment}</td>283 <td><g:formatDate date="${entry.dateDone}" format="EEE, dd-MMM-yyyy"/></td>284 <td>${entry.durationHour}:${entry.durationMinute}</td>285 <td>${entry.enteredBy}</td>286 287 <td>288 <g:link controller="entryDetailed" action="edit" id="${entry.id}">289 <img src="${resource(dir:'images/skin',file:'database_edit.png')}" alt="Edit" />290 </g:link>291 </td>292 293 </tr>294 </g:each>295 </tbody>296 </table>297 </div>298 299 233 <br /> 234 235 <g:if test="${entryFaultList.isEmpty()}"> 236 <h1>No Faults</h1> 237 <br /> 238 </g:if> 239 <g:else> 240 <div class="list"> 241 <h1>Faults</h1> 242 <table> 243 <thead> 244 <tr> 245 <th>Comment</th> 246 <th>Date Done</th> 247 <th>Duration</th> 248 <th>Entered By</th> 249 <th></th> 250 </tr> 251 </thead> 252 <tbody> 253 <g:each in="${entryFaultList}" status="i" var="entry"> 254 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'/> 255 256 <td style="width:65%">${entry.comment}</td> 257 <td><g:formatDate date="${entry.dateDone}" format="EEE, dd-MMM-yyyy"/></td> 258 <td>${entry.durationHour}:${entry.durationMinute}</td> 259 <td>${entry.enteredBy}</td> 260 261 <td> 262 <g:link controller="entryDetailed" action="edit" id="${entry.id}"> 263 <img src="${resource(dir:'images/skin',file:'database_edit.png')}" alt="Edit" /> 264 </g:link> 265 </td> 266 267 </tr> 268 </g:each> 269 </tbody> 270 </table> 271 </div> 272 </g:else> 300 273 301 274 <div class="buttons"> 302 275 <g:form controller="entryDetailed"> 303 <input type="hidden" name="taskInstance.id" value="${taskInstance?.id}" /> 276 <g:hiddenField name="taskInstance.id" value="${taskInstance?.id}" /> 277 <g:hiddenField name="entryType.id" value="1" /> 304 278 <span class="button"> 305 <g:actionSubmit value="Add Entry" action="create" class="add"/> 279 <g:actionSubmit value="Add Fault" action="create" class="add"/> 280 </span> 281 </g:form> 282 </div> 283 284 <br /> 285 286 <g:if test="${entryWorkDoneList.isEmpty()}"> 287 <h1>No Work Done</h1> 288 <br /> 289 </g:if> 290 <g:else> 291 <div class="list"> 292 <h1>Work Done</h1> 293 <table> 294 <thead> 295 <tr> 296 <th>Comment</th> 297 <th>Date Done</th> 298 <th>Duration</th> 299 <th>Entered By</th> 300 <th></th> 301 </tr> 302 </thead> 303 <tbody> 304 <g:each in="${entryWorkDoneList}" status="i" var="entry"> 305 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'/> 306 307 <td width="65%">${entry.comment}</td> 308 <td><g:formatDate date="${entry.dateDone}" format="EEE, dd-MMM-yyyy"/></td> 309 <td>${entry.durationHour}:${entry.durationMinute}</td> 310 <td>${entry.enteredBy}</td> 311 312 <td> 313 <g:link controller="entryDetailed" action="edit" id="${entry.id}"> 314 <img src="${resource(dir:'images/skin',file:'database_edit.png')}" alt="Edit" /> 315 </g:link> 316 </td> 317 318 </tr> 319 </g:each> 320 </tbody> 321 </table> 322 </div> 323 </g:else> 324 325 <div class="buttons"> 326 <g:form controller="entryDetailed"> 327 <g:hiddenField name="taskInstance.id" value="${taskInstance?.id}" /> 328 <g:hiddenField name="entryType.id" value="2" /> 329 <span class="button"> 330 <g:actionSubmit value="Add Work Done" action="create" class="add"/> 306 331 </span> 307 332 </g:form>
Note: See TracChangeset
for help on using the changeset viewer.