Changeset 191 for trunk/grails-app/views/taskDetailed
- Timestamp:
- Nov 19, 2009, 9:16:21 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.