Added password change form
This commit is contained in:
parent
a9006bf1bc
commit
5536e764e7
8 changed files with 111 additions and 10 deletions
17
app/templates/change_password.html
Normal file
17
app/templates/change_password.html
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block body %}
|
||||
<h2>Change Password</h2>
|
||||
|
||||
<form method="POST">
|
||||
<dl>
|
||||
<dt>Old password:</dt>
|
||||
<dd><input type="password" name="old_password"></dd>
|
||||
<dt>New password:</dt>
|
||||
<dd><input type="password" name="new_password"></dd>
|
||||
<dt>New password, again:</dt>
|
||||
<dd><input type="password" name="confirm_password"></dd>
|
||||
<dd><input type="submit" value="Save"></dd>
|
||||
</dl>
|
||||
</form>
|
||||
{% endblock %}
|
||||
22
app/templates/confirm_delete.html
Normal file
22
app/templates/confirm_delete.html
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block body %}
|
||||
<h2>Confirm Deletion</h2>
|
||||
|
||||
<p>Are you sure you want to permanently delete this post?
|
||||
Neither you nor others will be able to see it;
|
||||
you cannot recover a post after it's deleted.</p>
|
||||
|
||||
<p>If you only want to hide it from the public,
|
||||
you can <a href="/edit/{{ message.id }}">set its privacy</a> to "Only me".</p>
|
||||
|
||||
<p>Here's the content of the message for reference:</p>
|
||||
|
||||
<ul>
|
||||
<li>{% include "includes/message.html" %}</li>
|
||||
</ul>
|
||||
|
||||
<form method="POST">
|
||||
<input type="submit" value="Delete">
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
|
@ -20,7 +20,7 @@
|
|||
<ul class="message-options">
|
||||
{% if message.user == current_user %}
|
||||
<li><a href="/edit/{{ message.id }}">Edit or change privacy</a></li>
|
||||
<!--li><a href="/confirm_delete/{{ message.id }}">Delete</a></li-->
|
||||
<li><a href="/delete/{{ message.id }}">Delete permanently</a></li>
|
||||
{% else %}
|
||||
<!--li><a href="/report/{{ message.id }}">Report</a></li-->
|
||||
{% endif %}
|
||||
|
|
|
|||
0
app/templates/user_list.html
Executable file → Normal file
0
app/templates/user_list.html
Executable file → Normal file
Loading…
Add table
Add a link
Reference in a new issue