blob: c7a526749a75304f5da375f25db0f8628ab6c803 (
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
61
62
63
64
65
|
<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>
<form action="$rel_path_to_root/backend/admin/repos" method="POST" accept-charset="UTF-8">
<h2><ste:get_translation for="add_repo" /></h2>
<p><strong><ste:get_translation for="repo_baseurl" />:</strong> <input type="text" name="repo_baseurl" /></p>
<p><input type="submit" name="add_repo" /></p>
</form>
<form action="$rel_path_to_root/backend/admin/repos" method="POST" accept-charset="UTF-8">
<h2><ste:get_translation for="repo_list" /></h2>
<table class="listtab fullwidth">
<thead>
<tr>
<th> </th>
<th><ste:get_translation for="repo_name" /></th>
<th><ste:get_translation for="repo_description" /></th>
<th><ste:get_translation for="repo_baseurl" /></th>
</tr>
</thead>
<tbody>
<ste:set var="repos_n"><ste:arraylen array="repos" /></ste:set>
<ste:if>
~{$repos_n|gt|0}
<ste:then>
<ste:foreach array="repos" value="repo">
<tr>
<td><input type="checkbox" name="repos_multiselect[]" value="$repo[id]" /></td>
<td><ste:escape>$repo[name]</ste:escape></td>
<td><ste:escape>$repo[description]</ste:escape></td>
<td><ste:escape>$repo[baseurl]</ste:escape></td>
</tr>
</ste:foreach>
</ste:then>
<ste:else>
<tr>
<td colspan="4" style="font-style: italic; text-align: center;"><ste:get_translation for="no_repos" /></td>
</tr>
</ste:else>
</ste:if>
</tbody>
</table>
<div>
<input type="submit" name="delete_repos" 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>
|
<input type="submit" name="force_repo_refresh" value="<ste:get_translation for='force_repo_refresh' />" />
</div>
</form>
</ste:block>
|