diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2013-01-24 04:16:09 +1100 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2013-01-24 04:16:09 +1100 |
| commit | bceb314ce6f53247a307cf2d452238fd96d24d07 (patch) | |
| tree | bba77d9d75f411ca2941c4adbd0ebb618b2ef838 /templates | |
| parent | c7c5a65a1f0c68cdbdafb464f6488c8f358115a4 (diff) | |
Major fixes and clean-up for edit form
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/mod/edit_post_form.html | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/templates/mod/edit_post_form.html b/templates/mod/edit_post_form.html index 6748435e..22fa40cb 100644 --- a/templates/mod/edit_post_form.html +++ b/templates/mod/edit_post_form.html @@ -1,11 +1,13 @@ -<form name="post" enctype="multipart/form-data" action="{{ action }}" method="post"> +<form action="" method="post"> + <input type="hidden" name="token" value="{{ token }}"> + <table> <tr> <th> {% trans %}Name{% endtrans %} </th> <td> - <input type="text" name="name" size="25" maxlength="35" autocomplete="off" value="{{ name }}"> + <input type="text" name="name" size="25" maxlength="35" autocomplete="off" value="{{ post.name }}"> </td> </tr> <tr> @@ -13,7 +15,7 @@ {% trans %}Email{% endtrans %} </th> <td> - <input type="text" name="email" size="25" maxlength="40" autocomplete="off" value="{{ email }}"> + <input type="text" name="email" size="25" maxlength="40" autocomplete="off" value="{{ post.email }}"> </td> </tr> <tr> @@ -21,7 +23,8 @@ {% trans %}Subject{% endtrans %} </th> <td> - <input style="float:left;" type="text" name="subject" size="25" maxlength="100" autocomplete="off" value="{{ subject }}"> + <input style="float:left;" type="text" name="subject" size="25" maxlength="100" autocomplete="off" value="{{ post.subject }}"> + <input accesskey="s" style="margin-left:2px;" type="submit" name="post" value="{% trans %}Update{% endtrans %}"> </td> </tr> <tr> @@ -29,12 +32,8 @@ {% trans %}Comment{% endtrans %} </th> <td> - <textarea name="body" id="body" rows="5" cols="35">{{ body }}</textarea> + <textarea name="body" id="body" rows="5" cols="35">{{ post.body_nomarkup }}</textarea> </td> </tr> - <tr> - <th><input type="hidden" name="mode" value="{{ mode }}"></th> - <td><input name="sub" type="submit" value="{% trans 'Submit' %}"></td> - </tr> </table> </form> |
