make it possible to replace the current CSS file by a preset stylesheet
[diogenes.git] / templates / admin-edit.tpl
index f4a2305..89985b2 100644 (file)
@@ -1,3 +1,21 @@
+{if $msg_set_stylesheet}
+<form name="form_stylesheet" method="post" action="{$post}">
+<input type="hidden" name="action" value="set_stylesheet" />
+<input type="hidden" name="file" value="{$file}" />
+<input type="hidden" name="dir" value="{$dir}" />
+<table class="light">
+<tr>
+  <td>{$msg_set_stylesheet}</td>
+  <td>{html_options name='preset_style_sheet' selected=$preset_style_sheet options=$style_sheets}</td>
+  <td><input type="submit" value="{$msg_replace}"/></td>
+</tr>
+</table>
+</form>
+
+<br/>
+
+{/if}
+
 <form name="modif" method="post" action="{$post}">
 <input type="hidden" name="action" value="update" />
 <input type="hidden" name="file" value="{$file}" />