list.smarty
1.01 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
<h1>Document Fields</h1>
{ if $fieldsets}
<h2>Existing generic document fields</h2>
<table class="pretty" cellspacing="0" cellpadding="0">
<thead>
<tr>
<th colspan="2">Name</th>
<th>Generic</th>
<th>Fields</th>
</tr>
</thead>
<tbody>
{foreach from=$fieldsets item=oFieldset}
<tr>
<td>
<a href="?action=edit&fFieldsetId={$oFieldset->getId()}" class="ktAction ktDelete">Delete</a>
</td>
<td>
<a href="?action=edit&fFieldsetId={$oFieldset->getId()}">
{ $oFieldset->getName() }
</a>
</td>
<td>
{if $oFieldset->getIsGeneric()}
Yes
{else}
No
{/if}
</td>
<td>
<ul>
{foreach from=$oFieldset->getFields() item=oField}
<li>{$oField->getName()}</li>
{/foreach}
</ul>
</td>
</tr>
</tbody>
{/foreach}
</table>
{/if}
<h2>Create a new document field set</h2>
<form method="POST">
<input type="hidden" name="action" value="new">
<input type="textbox" name="name">
<input type="submit" name="submit" value="Create">
</form>