summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJan-Philipp Litza <janphilipp@litza.de>2012-04-26 19:18:17 +0200
committerJan-Philipp Litza <janphilipp@litza.de>2012-04-26 19:18:17 +0200
commit34582524ba39e895e072129b1c83e48d94864cff (patch)
tree15858aef085c7edda685ead3086b6350e6d1fcc7 /templates
parent0ce217e3ebe2a304d7bcb465622d7165ff90c235 (diff)
adapted admin section for FAQ to new database scheme
Diffstat (limited to 'templates')
-rw-r--r--templates/admin_faq.html56
-rw-r--r--templates/admin_faq_edit_form.html37
2 files changed, 5 insertions, 88 deletions
diff --git a/templates/admin_faq.html b/templates/admin_faq.html
index 5dacf522..0eee8d20 100644
--- a/templates/admin_faq.html
+++ b/templates/admin_faq.html
@@ -1,56 +1,6 @@
-<table>
- <thead>
- <tr>
- <th>
- Deutsch
- </th>
- <th>
- English
- </th>
- <th>
- &nbsp;
- </th>
- </tr>
- </thead>
- <tbody>
- %faqs%
- </tbody>
-</table>
+%faqs%
<hr/>Create new FAQ:
<form action="%link%&action=create" method="post">
- <table>
- <tr>
- <td>
- Frage
- </td>
- <td>
- <textarea name="frage"></textarea>
- </td>
- </tr>
- <tr>
- <td>
- Antwort
- </td>
- <td>
- <textarea name="antwort"></textarea>
- </td>
- </tr>
- <tr>
- <td>
- Question
- </td>
- <td>
- <textarea name="question"></textarea>
- </td>
- </tr>
- <tr>
- <td>
- Answer
- </td>
- <td>
- <textarea name="answer"></textarea>
- </td>
- </tr>
- </table>
+%new_form%
<input type="submit" name="submit" value="Create" />
-</form> \ No newline at end of file
+</form>
diff --git a/templates/admin_faq_edit_form.html b/templates/admin_faq_edit_form.html
index 1ef791aa..2159a82d 100644
--- a/templates/admin_faq_edit_form.html
+++ b/templates/admin_faq_edit_form.html
@@ -1,41 +1,8 @@
Edit FAQ:
<form action="%link%&action=save" method="post">
- <table>
- <tr>
- <td>
- Frage
- </td>
- <td>
- <textarea name="frage">%frage%</textarea>
- </td>
- </tr>
- <tr>
- <td>
- Antwort
- </td>
- <td>
- <textarea name="antwort">%antwort%</textarea>
- </td>
- </tr>
- <tr>
- <td>
- Question
- </td>
- <td>
- <textarea name="question">%question%</textarea>
- </td>
- </tr>
- <tr>
- <td>
- Answer
- </td>
- <td>
- <textarea name="answer">%answer%</textarea>
- </td>
- </tr>
- </table>
+%form%
<input type="hidden" name="id" value="%id%" /><input type="submit" name="submit" value="Save" />
</form><hr/>
<form action="%link%&action=delete" method="post">
Delete FAQ: <input type="hidden" name="id" value="%id%" /><input type="submit" name="submit" value="Delete" />
-</form> \ No newline at end of file
+</form>