From ec66a5c7d17cb1e67ee066f2e9bdaf5bbc9ab614 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Wed, 28 Mar 2012 16:59:54 +0200 Subject: [PATCH] preparation for file editing --- data/templates/edit-file.htm | 19 +++++++++++++++++++ data/templates/edit.htm | 23 +++++++++++++++++++++++ data/templates/index.htm | 18 +----------------- src/Phorkie/File.php | 2 +- www/.htaccess | 4 +++- www/edit.php | 17 +++++++++++++++++ www/index.php | 12 ++++-------- 7 files changed, 68 insertions(+), 27 deletions(-) create mode 100644 data/templates/edit-file.htm create mode 100644 data/templates/edit.htm create mode 100644 www/edit.php diff --git a/data/templates/edit-file.htm b/data/templates/edit-file.htm new file mode 100644 index 0000000..66647f0 --- /dev/null +++ b/data/templates/edit-file.htm @@ -0,0 +1,19 @@ +
+
+
+ + +
+
+ + + +
+
+ +
+ diff --git a/data/templates/edit.htm b/data/templates/edit.htm new file mode 100644 index 0000000..56e08ef --- /dev/null +++ b/data/templates/edit.htm @@ -0,0 +1,23 @@ +{% extends "base.htm" %} +{% block title %}Edit paste{% endblock %} + +{% block content %} +
+
+ + +
+ + {% for fileid, file in repo.getFiles %} + {% include 'edit-file.htm' with {'file': file, 'fileid': fileid} %} + {% endfor %} + +
+ +
+ +
+{% endblock %} diff --git a/data/templates/index.htm b/data/templates/index.htm index c239d56..05989df 100644 --- a/data/templates/index.htm +++ b/data/templates/index.htm @@ -8,23 +8,7 @@ -
-
-
- - -
-
- - -
-
- -
+ {% include 'edit-file.htm' with {'file': file[1], 'fileid': 1} %}