Added the capability to edit messages
This commit is contained in:
parent
5e7c6097d4
commit
755e7b70be
9 changed files with 85 additions and 5 deletions
17
templates/edit.html
Normal file
17
templates/edit.html
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{% extends "base.html" %}
|
||||
{% block body %}
|
||||
<h2>Edit</h2>
|
||||
<form action="{{ url_for('edit', id=message.id) }}" method="POST" enctype="multipart/form-data">
|
||||
<dl>
|
||||
<dt>Message:</dt>
|
||||
<dd><textarea name="text" required="" class="create_text">{{ message.text }}</textarea></dd>
|
||||
<dd><select name="privacy">
|
||||
<option value="0"{% if message.privacy == '0' %} selected{% endif %}>Public - everyone in your profile or public timeline</option>
|
||||
<option value="1"{% if message.privacy == '1' %} selected{% endif %}>Unlisted - everyone in your profile, hide from public timeline</option>
|
||||
<option value="2"{% if message.privacy == '2' %} selected{% endif %}>Friends - only people you follow each other</option>
|
||||
<option value="3"{% if message.privacy == '3' %} selected{% endif %}>Only you</option>
|
||||
</select></dd>
|
||||
<dd><input type="submit" value="Save" /></dd>
|
||||
</dl>
|
||||
</form>
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue