JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
db_upgrade rework, admin_header, cleanup
[wfpl-cms.git] / admin_header.html
diff --git a/admin_header.html b/admin_header.html
new file mode 100644 (file)
index 0000000..fc452ae
--- /dev/null
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="utf-8" />
+       <title><!--~$title show {~-->~$host~ Admin: Header Image<!--~}~--></title>
+</head>
+
+<body>
+<!--~$body show {~-->
+
+       <!--~form {~-->
+               <h2>~$host~ Admin: Set header image for home page</h2>
+
+               <form action="admin_header" method="post" enctype="multipart/form-data"><input type="hidden" name="MAX_FILE_SIZE" value="~$upload_max_filesize~">
+
+                       <div class="caption">Width (in pixels)</div>
+                       <div class="field_notes">Your image will be automatically resized to be this wide. ~width_max~ is the full width of the available space.</div>
+                       <div class="field"><input type="text" name="width" value="~width attr~" placeholder="~width_max~"></div>
+
+                       <div class="caption">Image</div>
+                       <div class="field_notes">Please upload an image that is at least the width you specified above.</div>
+                       <div class="field"><input type="file" name="image"></div>
+
+                       <div class="caption">Caption (optional)</div>
+                       <div class="field_notes">If specified, this will overlay the bottom/left corner of the header image.</div>
+                       <div class="field"><input type="text" name="caption" value="~caption attr~"></div>
+
+                       <div class="caption field"><input type="submit" name="save" value="Save"></div>
+
+               </form>
+       <!--~}~-->
+
+<!--~}~-->
+</body>
+</html>