editsimple.smarty
2.91 KB
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
{literal}
<style type="text/css">
/* inactivity */
.active .inactivity_message { display: none; }
.save_button,
.done_button { display: none; }
.active.editing .save_button,
.active.editing .done_button { display: block; }
.active.editing .edit_button { display: none; }
.active { position: relative; }
.inactive { background: #ccc; position: relative; }
.inactive .fixed_message,
.inactive .unassigned_items,
.inactive .available_behaviours,
.inactive .behaviour_edit_options
{
display: none;
}
.inactive .item_list { display: none; }
.helpText {
color: #666;
}
/* logging support */
#brad-log .severity-INFO { color: blue; font-weight: bold; }
#brad-log .severity-DEBUG { color: green; font-weight: bold; }
#brad-log .severity-ERROR { color: red; font-weight: bold; }
#brad-log .explanation { font-family: monospace; white-space: pre; }
</style>
<!-- include the mochikit js -->
<script language="javascript" src="/thirdpartyjs/MochiKit/Base.js"> </script>
<script language="javascript" src="/thirdpartyjs/MochiKit/DateTime.js"> </script>
<script language="javascript" src="/thirdpartyjs/MochiKit/Iter.js"> </script>
<script language="javascript" src="/thirdpartyjs/MochiKit/Async.js"> </script>
<script language="javascript" src="/thirdpartyjs/MochiKit/DOM.js"> </script>
<script language="javascript" src="/presentation/lookAndFeel/knowledgeTree/js/taillog.js"> </script>
<script language="javascript" src="/presentation/lookAndFeel/knowledgeTree/js/conditional_simple_edit.js"> </script>
<!-- custom JS -->
<script language="javascript">
{/literal}
addLoadEvent(partial(editSimpleField, {$iMasterFieldId}));
{literal}
</script>
{/literal}
<h2>Editing Fieldset Rules (Simple)</h2>
<form>
<input type="hidden" name="fieldset_id" id="global-fieldset-id" value="{$fieldset_id}" />
<table id="simple_conditional_edit">
<tr>
<th>Column 1</th>
<th>Column 2</th>
<th>Column 3</th>
</tr>
<tr valign="top">
{foreach from=$aFields item=oField}
<td class="inactive" id="md_{$oField->getId()}">
<p class="inactivity_message">This field is not controlled by the currently active group.</p>
<div class="lookup_items">
<h3>Field: {$oField->getName()}</h3>
<select class="item_list">
{foreach from=$oField->getValues() item=oMetaData}
<option value="{$oMetaData->getId()}">{$oMetaData->getName()|escape}</option>
{/foreach}
</select>
<div class="buttonset">
<input type="button" value="edit" class="edit_button" onclick="editSimpleField({$oField->getId()})" />
<input type="button" value="save" class="save_button" onclick="saveSimpleField({$oField->getId()})" />
<input type="button" value="done" class="done_button" onclick="finishSimpleField({$oField->getId()})" />
</div>
</div>
</td>
{/foreach}
</tr>
</table>
<table id="brad-log">
<tr>
<th>Severity</th>
<th>Time</th>
<th>Entry</th>
</tr>
<tbody >
</tbody>
</table>