Changeset 833 for trunk/grails-app/views
- Timestamp:
- Mar 3, 2011, 12:24:01 PM (14 years ago)
- Location:
- trunk/grails-app/views
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/entryDetailed/_create.gsp
r830 r833 1 1 2 <g:form action="save" method="post" > 2 3 <g:render template="/shared/messages" /> 4 <g:hasErrors bean="${entryInstance}"> 5 <div class="errors"> 6 <g:renderErrors bean="${entryInstance}" as="list" /> 7 </div> 8 </g:hasErrors> 9 <div class="pane_close"> 10 <img src="${resource(dir:'images/skin',file:'cross.png')}" alt="Close" title="Close"/> 11 </div> 12 <g:form action="ajaxSave" method="post" name="createEntryForm"> 3 13 <g:hiddenField name="task.id" value="${entryInstance.task.id}" /> 4 14 <g:hiddenField name="entryType.id" value="${entryInstance.entryType.id}" /> -
trunk/grails-app/views/taskDetailed/_showProcedureTab.gsp
r831 r833 25 25 <br /> 26 26 27 <div id="pmEntryContainer"></div> 27 <div id="pmEntryContainer"> 28 <g:if test="${entryPMList.isEmpty()}"> 29 <h1>No PM Entries</h1> 30 <br /> 31 </g:if> 32 <g:else> 33 <g:render template="/entryDetailed/list" 34 model="['entryList':entryPMList]" /> 35 </g:else> 36 </div> 37 38 <br /> 39 40 <div id="createPMEntryContainer" style="display:none;"></div> 28 41 29 42 <div style="text-align:right;" id="pmEntryButton"> … … 32 45 class="add" 33 46 value="Add PM Entry" 34 onclick="loadEntryForm(jQuery('#pmEntryContainer'), 35 jQuery('#pmEntryButton'), 36 {taskId: ${taskInstance?.id}, entryTypeId: 6})" /> 47 onclick="getCreateEntryForm(jQuery('#pmEntryContainer'), 48 jQuery('#createPMEntryContainer'), 49 jQuery('#pmEntryButton'), 50 {taskId: ${taskInstance?.id}, entryTypeId: 6})" /> 37 51 </span> 38 52 </div> 53 39 54 </g:else> -
trunk/grails-app/views/taskDetailed/_showTaskTab.gsp
r823 r833 230 230 <tbody> 231 231 <g:each in="${entryFaultList}" status="i" var="entry"> 232 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" />232 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}"> 233 233 234 234 <td style="width:65%" onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'> … … 300 300 <tbody> 301 301 <g:each in="${entryCauseList}" status="i" var="entry"> 302 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" />302 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}"> 303 303 304 304 <td style="width:65%" onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'> … … 339 339 <br /> 340 340 341 <g:if test="${entryWorkDoneList.isEmpty()}"> 342 <h1>No Work Done</h1> 343 <br /> 344 </g:if> 345 <g:else> 346 <div class="list"> 347 <h1>Work Done</h1> 348 <table> 349 <thead> 350 <tr> 351 <th>Comment</th> 352 <th>Date Done</th> 353 <th>Duration</th> 354 <th>Entered By</th> 355 <th></th> 356 </tr> 357 </thead> 358 <tbody> 359 <g:each in="${entryWorkDoneList}" status="i" var="entry"> 360 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}"/> 361 362 <td width="65%" onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'> 363 ${entry.comment.encodeAsHTML()} 364 </td> 365 366 <td onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'> 367 <g:formatDate date="${entry.dateDone}" format="EEE, dd-MMM-yyyy"/> 368 </td> 369 370 <td onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'> 371 ${entry.durationHour}:${entry.durationMinute} 372 </td> 373 374 <td onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'> 375 ${entry.enteredBy.encodeAsHTML()} 376 </td> 377 378 <td class="notClickable"> 379 <g:link controller="entryDetailed" action="edit" id="${entry.id}"> 380 <img src="${resource(dir:'images/skin',file:'database_edit.png')}" alt="Edit" title="Edit" /> 381 </g:link> 382 </td> 383 384 </tr> 385 </g:each> 386 </tbody> 387 </table> 388 </div> 389 </g:else> 390 391 <div class="buttons"> 392 <g:form controller="entryDetailed"> 393 <g:hiddenField name="taskInstance.id" value="${taskInstance?.id}" /> 394 <g:hiddenField name="entryType.id" value="3" /> 395 <span class="button"> 396 <g:actionSubmit value="Add Work Done" action="create" class="add"/> 397 </span> 398 </g:form> 399 </div> 341 <div id="workDoneContainer"> 342 <g:if test="${entryWorkDoneList.isEmpty()}"> 343 <h1>No Work Done</h1> 344 <br /> 345 </g:if> 346 <g:else> 347 <g:render template="/entryDetailed/list" 348 model="['entryList':entryWorkDoneList]" /> 349 </g:else> 350 </div> 351 352 <br /> 353 354 <div id="createWorkDoneContainer" style="display:none;"></div> 355 356 <div style="text-align:right;" id="workDoneButton"> 357 <span class="buttons"> 358 <input type="button" 359 class="add" 360 value="Add Work Done" 361 onclick="getCreateEntryForm(jQuery('#workDoneContainer'), 362 jQuery('#createWorkDoneContainer'), 363 jQuery('#workDoneButton'), 364 {taskId: ${taskInstance?.id}, entryTypeId: 3})" /> 365 </span> 366 </div>
Note: See TracChangeset
for help on using the changeset viewer.