aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/templates/src/systemtemplates/image_list.html
blob: 83f579ec018989f0f6b46bfed51ce9e0ac399e4e (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:default_error />
	<ste:default_success />
	
	<div class="dualcolumns">
		<div class="column_left">
			<form action="$rel_path_to_root/backend/content/images" method="POST" accept-charset="UTF-8" enctype="multipart/form-data">
				<h2><ste:get_translation for="image_upload" /></h2>
				<p><input type="file" name="upload_img" class="fullwidth" /></p>
				<p>
					<strong><ste:get_translation for="img_upload_name" /></strong><br />
					<input type="text" name="upload_name" class="fullwidth" /><br />
					<ste:get_translation for="img_upload_name_leave_empty" />
				</p>
				<p><input type="submit" name="upload" /></p>
			</form>
		</div>
		<div class="column_main">
			<form action="$rel_path_to_root/backend/content/images" method="POST">
				<table class="fullwidth listtab">
					<thead><tr>
						<th>&nbsp;</th>
						<th><ste:get_translation for="image_preview" /></th>
						<th><ste:get_translation for="image_name" /></th>
						<th><ste:get_translation for="image_getmarkup" /></th>
					</tr></thead>
					<tbody>
						<ste:set var="images_n"><ste:arraylen array="images" /></ste:set>
						<ste:if>~{$images_n|gt|0}
							<ste:then>
								<ste:foreach array="images" value="image">
									<tr>
										<td><input type="checkbox" name="image_multiselect[]" value="$image[id]" /></td>
										<td><img src="$rel_path_to_root/images/previews/${image[id]}.png" alt="" /></td>
										<td><a href="$rel_path_to_root/images/$image[file]"><ste:escape>$image[name]</ste:escape></a></td>
										<td>
											<a href="$rel_path_to_root/backend/content/images/$image[id]/markdown">Markdown</a> - <a href="$rel_path_to_root/backend/content/images/$image[id]/html">HTML</a>
										</td>
									</tr>
								</ste:foreach>
							</ste:then>
							<ste:else>
								<tr><td colspan="5" style="text-align: center;"><em><ste:get_translation for="no_images" /></em></td></tr>
							</ste:else>
						</ste:if>
					</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>
	<div class="dualcolumns_stop"></div>
</ste:block>