edit.smarty
2.04 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
<h2><img src="{if $config->get("ui/morphEnabled") == '1'}{$rootUrl}/skins/kts_{$config->get("ui/morphTo")}/title_bullet.png{else}{$rootUrl}/resources/graphics/title_bullet.png{/if}"/>{i18n}Fieldset{/i18n}:<br />{$oFieldset->getName()}</h2>
<h3>{i18n}Fieldset properties{/i18n}</h3>
<form action="{$smarty.server.PHP_SELF}" method="POST">
<input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}">
<input type="hidden" name="action" value="editobject">
<table class="prettysw" cellpadding="0" cellspacing="0">
<tr>
<th>{i18n}Name{/i18n}</th>
<td><input type="textbox" name="name" value="{$oFieldset->getName()}"></td>
</tr>
<tr>
<th>{i18n}Namespace{/i18n}</th>
<td><input type="textbox" name="namespace" value="{$oFieldset->getNamespace()}"></td>
</tr>
</table>
<input type="submit" name="submit" value="{i18n}Change{/i18n}" />
</form>
<h3>{i18n}Fieldset members{/i18n}</h3>
{if $oFieldset->getFields() }
<h4>{i18n}Existing members{/i18n}</h4>
<form action="{$smarty.server.PHP_SELF}" method="POST">
<input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}">
<ul>
{foreach from=$oFieldset->getFields() item=oField}
<li><label><input type="checkbox"
name="fieldsetids[]"
value="{$oField->getId()}">{$oField->getName()}</label></li>
{/foreach}
</ul>
<input type="submit" name="submit" value="{i18n}Remove fields{/i18n}" />
</form>
{/if}
<h4>{i18n}Add a new field{/i18n}</h4>
<form action="{$smarty.server.PHP_SELF}" method="POST">
<input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}">
<input type="hidden" name="action" value="newfield">
<table class="prettysw" cellpadding="0" cellspacing="0">
<tr>
<th>{i18n}Name{/i18n}</th>
<td><input type="textbox" name="name" />
</tr>
<tr>
<th>{i18n}Type{/i18n}</th>
<td>
<select name="type">
<option value="normal">{i18n}Normal{/i18n}</option>
<option value="lookup">{i18n}Lookup{/i18n}</option>
<option value="tree">{i18n}Tree{/i18n}</option>
</select>
</td>
</tr>
</table>
<input type="submit" name="submit" value="{i18n}Add field{/i18n}" />
</form>