]> git.p6c8.net - devedit.git/blobdiff - templates/editfile.htm
Began to implement the possibility to control the output using template files
[devedit.git] / templates / editfile.htm
diff --git a/templates/editfile.htm b/templates/editfile.htm
new file mode 100644 (file)
index 0000000..3790055
--- /dev/null
@@ -0,0 +1,44 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+"http://www.w3.org/TR/html4/loose.dtd">
+
+<html>
+<head>
+<title>Edit file {FILE}</title>
+<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
+</head>
+<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
+
+<h1>Edit file {FILE}</h1>
+
+<p>(equals <a href="{URL}" target="_blank">{URL}</a>)</p>
+
+<p><b style="color:#FF0000">Caution!</b> This file is locked for other users while you are editing it. To unlock it, click <i>Save and exit</i> or <i>Exit WITHOUT saving</i>. Please <b>don't</b> click the <i>Reload</i> button in your browser! This will confuse the editor.</p>
+
+<form action="{SCRIPT}" method="get">
+<input type="hidden" name="command" value="canceledit">
+<input type="hidden" name="file" value="{FILE}">
+<p><input type="submit" value="Exit WITHOUT saving"></p>
+</form>
+
+<form action="{SCRIPT}" method="post">
+<input type="hidden" name="command" value="endedit">
+<input type="hidden" name="file" value="{FILE}">
+
+<table width="100%" border="1">
+<tr>
+<td width="50%" align="center">
+<input type="hidden" name="file" value="{FILE}">
+<input type="checkbox" name="saveas" value="1"> Save as new file: {DIR} <input type=text name="newfile" value=""></td>
+<td width="50%" align="center"><input type="checkbox" name="encode_iso" value="1"> Encode ISO-8859-1 special chars</td>
+</tr>
+<tr>
+<td align="center"><input type="reset" value="Reset form"></td>
+<td align="center"><input type="submit" value="Save and exit"></td>
+</tr>
+</table>
+
+<textarea name="filecontent" rows="25" cols="120">{CONTENT}</textarea>
+</form>
+
+</body>
+</html>
\ No newline at end of file

patrick-canterino.de