aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/templates/src/systemtemplates/templates.html
blob: 1d15967bd0d56e9872f3213ac8fdd7ad200f0b5e (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
56
57
58
59
60
<ste:load name="master.html" />
<ste:block name="content">
	<ste:if>$success
		<ste:then>
			<div class="success"><ste:escape>$success</ste:escape></div>
		</ste:then>
	</ste:if>
	<ste:if>$error
		<ste:then>
			<div class="error"><ste:escape>$error</ste:escape></div>
		</ste:then>
	</ste:if>
	<div class="dualcolumns">
		<div class="column_left">
			<form action="$rel_path_to_root/backend/design/templates" method="POST">
				<table class="fullwidth listtab">
					<thead>
						<tr>
							<th>&nbsp;</th>
							<th><ste:get_translation for="template" /></th>
						</tr>
					</thead>
					<tbody>
						<tr>
							<td>&nbsp;</td>
							<td><a href="$rel_path_to_root/backend/design/templates"><em><ste:get_translation for="new_template" /></em></a></td>
						</tr>
						<ste:foreach array="templates" value="template">
							<tr>
								<td><input type="checkbox" name="templates_multiselect[]" value="$template" /></td>
								<td><a href="$rel_path_to_root/backend/design/templates/$template">$template</a></td>
							</tr>
						</ste:foreach>
					</tbody>
				</table>
				<div>
					<input type="submit" name="delete" value="<ste:get_translation for='delete' />" />
					<select name="really_delete">
						<option value="no" selected="selected"><ste:get_translation for="no" /></option>
						<option value="yes"><ste:get_translation for="yes" /></option>
					</select>
				</div>
			</form>
		</div>
		<div class="column_main">
			<form action="$rel_path_to_root/backend/design/templates" method="POST" accept-charset="UTF-8">
				<p>
					<strong><ste:get_translation for="template_name" />:</strong><br />
					<input type="text" name="template_name" value="<ste:escape>$template_name</ste:escape>" />
				</p>
				<p>
					<strong><ste:get_translation for="template_code" />:</strong><br />
					<textarea name="template_code" class="fullwidth codeedit" cols="80" rows="20"><ste:escape>$template_code</ste:escape></textarea>
				</p>
				<p><input type="submit" name="save_template" /></p>
			</form>
		</div>
	</div>
	<div class="dualcolumns_stop"></div>
</ste:block>