Last change
on this file since 895 was
859,
checked in by gav, 14 years ago
|
Rework entry create and save ajax to allow multiple page element updates with JSON.
|
File size:
2.0 KB
|
Line | |
---|
1 | |
---|
2 | <g:if test="${!taskProcedureExits}"> |
---|
3 | <br /> |
---|
4 | No Procedure linked. |
---|
5 | <br /> |
---|
6 | <br /> |
---|
7 | <g:form controller="taskProcedureDetailed" > |
---|
8 | <g:hiddenField name="taskInstance.id" value="${taskInstance?.id}" /> |
---|
9 | |
---|
10 | <div class="buttons"> |
---|
11 | <span class="button"> |
---|
12 | <g:actionSubmit value="New" action="create" class="add"/> |
---|
13 | </span> |
---|
14 | <span class="button"> |
---|
15 | <g:actionSubmit value="Search" action="search" class="search"/> |
---|
16 | </span> |
---|
17 | </div> |
---|
18 | |
---|
19 | </g:form> |
---|
20 | |
---|
21 | </g:if> |
---|
22 | <g:else> |
---|
23 | <g:render template="/taskProcedureDetailed/taskProcedureRevision" |
---|
24 | model="['taskProcedureRevision':taskProcedureRevision]" /> |
---|
25 | <br /> |
---|
26 | |
---|
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> |
---|
41 | |
---|
42 | <div style="text-align:right;" id="pmEntryButton"> |
---|
43 | <span class="buttons"> |
---|
44 | <input type="button" |
---|
45 | class="add" |
---|
46 | value="Add PM Entry" |
---|
47 | onclick="getCreateEntryForm(jQuery('#pmEntryContainer'), |
---|
48 | jQuery('#pmEntryButton'), |
---|
49 | {target: '#createPMEntryContainer', |
---|
50 | taskId: ${taskInstance?.id}, |
---|
51 | entryTypeId: 6})" /> |
---|
52 | </span> |
---|
53 | </div> |
---|
54 | |
---|
55 | </g:else> |
---|
Note: See
TracBrowser
for help on using the repository browser.