Merge pull request #95 from f0x52/master

issue #94, mod edit form
This commit is contained in:
Appleman1234 2017-04-18 05:49:46 +09:00 committed by GitHub
commit da2726f040

View File

@ -7,7 +7,7 @@
{% trans %}Name{% endtrans %} {% trans %}Name{% endtrans %}
</th> </th>
<td> <td>
<input type="text" name="name" size="25" maxlength="35" autocomplete="off" value="{{ post.name }}"> <input type="text" name="name" size="25" maxlength="35" autocomplete="off" value="{{ post.name|e }}">
</td> </td>
</tr> </tr>
<tr> <tr>
@ -15,7 +15,7 @@
{% trans %}Email{% endtrans %} {% trans %}Email{% endtrans %}
</th> </th>
<td> <td>
<input type="text" name="email" size="25" maxlength="40" autocomplete="off" value="{{ post.email }}"> <input type="text" name="email" size="25" maxlength="40" autocomplete="off" value="{{ post.email|e }}">
</td> </td>
</tr> </tr>
<tr> <tr>
@ -23,7 +23,7 @@
{% trans %}Subject{% endtrans %} {% trans %}Subject{% endtrans %}
</th> </th>
<td> <td>
<input style="float:left;" type="text" name="subject" size="25" maxlength="100" autocomplete="off" value="{{ post.subject }}"> <input style="float:left;" type="text" name="subject" size="25" maxlength="100" autocomplete="off" value="{{ post.subject|e }}">
<input accesskey="s" style="margin-left:2px;" type="submit" name="post" value="{% trans %}Update{% endtrans %}"> <input accesskey="s" style="margin-left:2px;" type="submit" name="post" value="{% trans %}Update{% endtrans %}">
</td> </td>
</tr> </tr>
@ -32,7 +32,7 @@
{% trans %}Comment{% endtrans %} {% trans %}Comment{% endtrans %}
</th> </th>
<td> <td>
<textarea name="body" id="body" rows="8" cols="35">{% if raw %}{{ post.body }}{% else %}{{ post.body_nomarkup }}{% endif %}</textarea> <textarea name="body" id="body" rows="8" cols="35">{% if raw %}{{ post.body|e }}{% else %}{{ post.body_nomarkup|e }}{% endif %}</textarea>
</td> </td>
</tr> </tr>
</table> </table>