blob: b58ddeba48bd842c7905aec8d853d5384725673e (
plain)
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
|
<ste:load name="master.html" />
<ste:block name="content">
<ste:if>$error
<ste:then>
<div class="error">$error</div>
</ste:then>
</ste:if>
<ste:if>$success
<ste:then>
<div class="success">$success</div>
</ste:then>
</ste:if>
<form action="$rel_path_to_root/backend/content/tags" method="POST" accept-charset="UTF-8">
<table class="listtab">
<thead>
<tr>
<th><ste:get_translation for="tag_name" /></th>
<th><ste:get_translation for="delete" /></th>
<ste:foreach array="all_tag_langs" key="langcode" value="langname">
<th>($langcode) <ste:escape>$langname</ste:escape></th>
</ste:foreach>
<th><ste:get_translation for="tag_add_lang" /></th>
</tr>
</thead>
<tbody>
<ste:foreach array="alltags" value="tagdata">
<tr>
<td>$tagdata[name]</td>
<td>
<a href="$rel_path_to_root/backend/content/tags/$tagdata[name]/delete"><img src="$rel_path_to_root/ratatoeskr/cms_style/images/delete.png" alt="<ste:get_translation for='delete' />" /></a>
</td>
<ste:foreach array="all_tag_langs" key="langcode" value="_">
<td>
<input type="text" name="tagtrans_${langcode}_${tagdata[name]}" value="<ste:escape>$tagdata[translations][$langcode]</ste:escape>" />
</td>
</ste:foreach>
<td>
<a href="$rel_path_to_root/backend/content/tags/$tagdata[name]/addtranslation"><img src="$rel_path_to_root/ratatoeskr/cms_style/images/add.png" alt="<ste:get_translation for='tag_add_lang' />" /></a>
</td>
</tr>
</ste:foreach>
</tbody>
</table>
<div><input type="submit" name="edit_translations" /></div>
</form>
<div>
<h2><ste:get_translation for="create_new_tag" /></h2>
<form action="$rel_path_to_root/backend/content/tags" method="POST" accept-charset="UTF-8">
<p><ste:get_translation for="new_tag_name" />: <input type="text" name="new_tag_name" /></p>
<p><input type="submit" name="create_new_tag" /></p>
</form>
</div>
</ste:block>
|