summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-06-03 20:24:36 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-06-03 20:24:36 +0200
commit5d9335fe183a0486c593975c45c2abe6875ab719 (patch)
treed816682945e3a6121b853202dcf5aac2d4d2837b /templates
parent200053d720dbec25b2c7f3a8a408b74a4fa66244 (diff)
admin_questions: More templates + sql fixes
Diffstat (limited to 'templates')
-rw-r--r--templates/admin_question_answered.html9
-rw-r--r--templates/admin_question_unanswered.html14
-rw-r--r--templates/admin_questions.html6
3 files changed, 26 insertions, 3 deletions
diff --git a/templates/admin_question_answered.html b/templates/admin_question_answered.html
new file mode 100644
index 00000000..e4f07932
--- /dev/null
+++ b/templates/admin_question_answered.html
@@ -0,0 +1,9 @@
+<tr>
+ <td> %question_nick% </td>
+ <td> %question% </td>
+ <td> %answer_nick% </td>
+ <td> %answer% </td>
+ <td>
+ <a href="%link%&action=delete&id=%question_id%">Delete</a>
+ </td>
+</tr>
diff --git a/templates/admin_question_unanswered.html b/templates/admin_question_unanswered.html
new file mode 100644
index 00000000..fc3db78a
--- /dev/null
+++ b/templates/admin_question_unanswered.html
@@ -0,0 +1,14 @@
+<tr>
+ <td> %question_nick% </td>
+ <td> %question% </td>
+ <td>
+ <form action="%link%&action=answer" method="post">
+ <textarea name="answer"></textarea>
+ <input type="hidden" name="id" value="%question_id%" />
+ <input type="submit" name="submit" value="Send" />
+ </form>
+ </td>
+ <td>
+ <a href="%link%&action=delete&id=%question_id%">Delete</a>
+ </td>
+</tr>
diff --git a/templates/admin_questions.html b/templates/admin_questions.html
index ad8d6572..171f10b5 100644
--- a/templates/admin_questions.html
+++ b/templates/admin_questions.html
@@ -25,6 +25,9 @@ Not yet answered questions:
<thead>
<tr>
<th>
+ From
+ </th>
+ <th>
Question
</th>
<th>
@@ -34,9 +37,6 @@ Not yet answered questions:
Answer
</th>
<th>
- From
- </th>
- <th>
&nbsp;
</th>
</tr>