Conservation de l'état de déroulement de l'arborescence (seulement pour le déroulement).
[MosaicDocument.git] / dtml / slotsForm.dtml
1 <dtml-let form_title="'Actions'">
2 <dtml-if manage_page_header>
3 <dtml-var manage_page_header>
4 <dtml-else>
5 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
6 <html lang="en">
7 <head>
8 <title>&dtml-form_title;</title>
9 </head>
10 <body bgcolor="#FFFFFF" link="#000099" vlink="#555555">
11 <h3>&dtml-form_title;</h3>
12 </dtml-if>
13 </dtml-let>
14 <dtml-var manage_tabs>
15 <dtml-if "objectIds(['Slot Information',])">
16 <form action="&dtml-absolute_url;" method="POST">
17 <dtml-in "objectValues(['Slot Information',])">
18 <dtml-let currentSlot="_['sequence-item']">
19 <table>
20 <tr>
21 <td>
22 <input type="checkbox" name="slotSelection:list"
23 value="<dtml-var "_['sequence-item'].id">">
24 </td>
25 <td class="form-label">
26 Id
27 </td>
28 <td>
29 <input type="text"
30 name="<dtml-var "_['sequence-item'].id + '.id:record'">"
31 value="<dtml-var "_['sequence-item'].id">">
32 </td>
33 </tr>
34 <tr>
35 <td></td>
36 <td class="form-label">
37 Type
38 </td>
39 <td>
40 <input type="text"
41 name="<dtml-var "_['sequence-item'].id + '.type:record'">"
42 value="<dtml-var "_['sequence-item'].type">">
43 </td>
44 </tr>
45 <tr>
46 <td></td>
47 <td class="form-label" valign="top">
48 Arguments
49 </td>
50 <td>
51 <table border="1">
52 <tr>
53 <th>Id</th>
54 <th>Type</th>
55 <th>Value</th>
56 </tr>
57 <dtml-in "_['sequence-item'].propertyMap()">
58 <tr>
59 <td><dtml-var "_['sequence-item']['id']"></td>
60 <td><dtml-var "_['sequence-item']['type']"></td>
61 <td><dtml-var "currentSlot.getProperty(_['sequence-item']['id'])"></td>
62 </tr>
63 </dtml-in>
64 <tr>
65 <td colspan="3">
66 <div class="std-text">
67 <a href="<dtml-var "currentSlot.absolute_url() + '/manage_propertiesForm'">">
68 Edit arguments...
69 </a>
70 </div>
71 </td>
72 </tr>
73 </table>
74 </td>
75 </tr>
76
77 <tr>
78 <td colspan="3"><hr></td>
79 </tr>
80 </table>
81 </dtml-let>
82 </dtml-in>
83 <div>
84 <input type="submit" name="saveSlots:method" value="Save">
85 <input type="submit" name="deleteSlots:method" value="Delete">
86 </div>
87 </form>
88 </dtml-if>
89 <h3 class="form-help">Add a slot</h3>
90 <form action="manage_addSlot" method="POST">
91 <table>
92 <tr>
93 <td class="form-label">
94 Id
95 </td>
96 <td class="form-label">
97 <input type="text" name="id">
98 </td>
99 </tr>
100 <tr>
101 <td class="form-label">
102 Type
103 </td>
104 <td class="form-label">
105 <input type="text" name="type">
106 </td>
107 </tr>
108 <tr>
109 <td colspan="2">
110 <input type="submit" value="Add">
111 </td>
112 </tr>
113 </table>
114 </form>
115 <dtml-if manage_page_footer>
116 <dtml-var manage_page_footer>
117 <dtml-else>
118 </body></html>
119 </dtml-if>