forked from Normation/rudder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ComponentDirectiveEditForm.html
296 lines (262 loc) · 7.98 KB
/
ComponentDirectiveEditForm.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
<xml:group>
<component:staticInit>
<head>
<style type="text/css">
.topLevelAction .twoColumns {
vertical-align: middle;
max-width: 45%;
display: inline-block;
/* only for IE inf 7 */
display*: inline;
zoom*: 1;
}
.topLevelAction .twoColumnsRight {
margin-left:20px
}
.topLevelAction .twoColumns > * {
display: inline-block;
vertical-align: middle;
margin-left: 50px;
}
.disableNotice {
margin-top:10px;
font-size:0.9em;
}
.reasonsFieldsetPopup {
margin-top: 15px;
margin-bottom: 5px;
}
.reasonsField {
margin-bottom: 5px;
}
.cpiefsave {
margin-top:5px;
}
#clone {
margin-top:5px;
padding-right: 40px;
padding-left: 40px;
}
.warnicon {
margin-top:-7px;
}
.simplemodal-content {
margin-top:5px;
margin-bottom:0px;
}
</style>
</head>
</component:staticInit>
<component:itemDependencies>
<table id="itemDependenciesGrid">
<thead>
<tr><td>Col1</td><td>Col2</td><td>Col3</td></tr>
</thead>
<tbody>
<tr><td>Col1</td><td>Col2</td><td>Col3</td></tr>
<tr><td>Col1</td><td>Col2</td><td>Col3</td></tr>
<tr><td>Col1</td><td>Col2</td><td>Col3</td></tr>
</tbody>
</table>
</component:itemDependencies>
<component:body>
<div>
<div id="editForm" />
<div id="removeActionDialog" />
<div id="disableActionDialog" />
<div id="confirmUpdateActionDialog" />
</div>
</component:body>
<component:form>
<div id="editForm" class="object-details">
<lift:authz role="directive_edit">
<fieldset class="topLevelAction">
<p class="clearable">
This is the zone for top level actions which does not take into account
modifications done in the edit zone.
</p>
<legend>Modify Directive status</legend>
<div id="removeAction" class="twoColumns">
</div>
<div id="desactivateAction" class="twoColumns twoColumnsRight">
</div>
<div class="disableNotice">
Note: A Directive's status may be Enabled, but it will be effectively disabled
if the Technique it's based on is disabled.
</div>
</fieldset>
</lift:authz>
<fieldset class="editZone">
<legend>Directive settings</legend>
<div id="notifications">
<!-- <ul> -->
<!-- <li>Here comes notifications</li> -->
<!-- </ul> -->
</div>
<hr class="spacer" />
<p>This Directive is based on the <b><span id="techniqueName"/></b> Technique.</p>
<p id="isSingle">Unique Technique</p>
<fieldset><legend>Description of the Technique</legend><span id="techniqueDescription"/></fieldset>
<br/>
<div id="nameField">
Here comes the name field
</div>
<hr class="spacer" />
<div id="shortDescriptionField">
Here comes the shortDescription field
</div>
<hr class="spacer" />
<div id="priority">
Here come the priority field
</div>
<hr class="spacer" />
<hr class="spacer"/>
<div id="longDescriptionField">
Here comes the longDescription field
</div>
<hr class="spacer"/>
<fieldset><legend>Parameters</legend>
<span id="parameters">Here goes the list of parameters</span>
</fieldset>
<lift:authz role="directive_edit">
<fieldset class="reasonsFieldset">
<legend>Change Message</legend>
<div id="explanationMessage">
Here comes the explanation to reasons field
</div>
<div id="reasonsField">
Here comes the reasons field
</div>
</fieldset>
<div class="cpiefsave">
<button id="save">Save</button>
</div>
<button id="clone">[Clone]</button>
</lift:authz>
</fieldset>
</div>
<div id="createCloneDirectivePopup" class="nodisplay">
<lift:ignore>
This div gets the content of the createDirective injected within
</lift:ignore>
</div>
</component:form>
<component:popupRemoveForm>
<div id="removeActionDialog" class="nodisplay">
<div class="simplemodal-title">
<h1>Delete a Directive</h1>
<hr/>
</div>
<div class="simplemodal-content">
<div>
<img src="/images/icWarn.png" alt="Warning!" height="32" width="32" class="warnicon"/>
<h2>Are you sure that you want to delete this item?</h2>
</div>
<br />
<div>
Deleting this Directive will also remove it as a part of
the following Rules which depend on it.
</div>
<div id="removeItemDependencies">
Here comes the grid of Rules that will be removed
</div>
<br />
<div class="reasonsFieldsetPopup">
<div id="explanationMessage">
Here comes the explanation to reasons field
</div>
<div id="reasonsField">
Here comes the reasons field
</div>
</div>
<br />
<hr class="spacer" />
</div>
<div class="simplemodal-bottom">
<hr/>
<div class="popupButton">
<span>
<button class="simplemodal-close" onClick="$.modal.close();">Cancel</button>
<button id="dialogRemoveButton">Delete</button>
</span>
</div>
</div>
</div>
</component:popupRemoveForm>
<component:popupDisactivateForm>
<div id="disableActionDialog" class="nodisplay">
<div class="simplemodal-title">
<h1><span id="dialogDisableTitle">Disable</span> a Directive</h1>
<hr/>
</div>
<div class="simplemodal-content">
<div>
<img src="/images/icWarn.png" alt="Warning!" height="32" width="32" class="warnicon"/>
<h2>Are you sure that you want to <span id="dialogDisableLabel">disable</span> this Directive?</h2>
<br />
<div id="dialogDisableWarning">
Disabling this Directive will affect the following Rules.
</div>
</div>
<div id="disableItemDependencies">
Here comes the grid of Rules that will be removed
</div>
<br />
<div class="reasonsFieldsetPopup">
<div id="explanationMessage">
Here comes the explanation to reasons field
</div>
<div id="reasonsField">
Here comes the reasons field
</div>
</div>
<hr class="spacer" />
</div>
<div class="simplemodal-bottom">
<hr/>
<div class="popupButton">
<span>
<button class="simplemodal-close" onClick="$.modal.close();">Cancel</button>
<button id="dialogDisableButton">Disable</button>
</span>
</div>
</div>
</div>
</component:popupDisactivateForm>
<component:popupDependentUpdateForm>
<div id="updateActionDialog" class="nodisplay">
<div class="simplemodal-title">
<h1>Update the Directive</h1>
<hr/>
</div>
<div class="simplemodal-content">
<div>
<img src="/images/icDetails.png" alt="Details" height="20" width="22" class="icon"/>
<h2>Are you sure that you want to update this Directive?</h2>
</div>
<br />
<div id="directiveDisabled" class="nodisplay">
<img src="/images/icWarn.png" alt="Warning!" height="32" width="32" class="warnicon"/>
<b>Warning:</b> This directive is currently disabled. Your changes will not take effect until it is enabled.
</div>
<div>
Updating this Directive will have an impact on the following Rules which apply it.
</div>
<div id="updateItemDependencies">
Here comes the grid of Rules that will be dependantly updated
</div>
<br />
<hr class="spacer" />
</div>
<div class="simplemodal-bottom">
<hr/>
<div class="popupButton">
<span>
<button class="simplemodal-close" onClick="$.modal.close();">Cancel</button>
<button id="dialogSaveButton">Save</button>
</span>
</div>
</div>
</div>
</component:popupDependentUpdateForm>
</xml:group>