forked from cc-d/ieddit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpreferences.html
41 lines (38 loc) · 2.17 KB
/
preferences.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{% extends 'base.html' %}
{% block content %}
<form style='max-width: 25rem; margin: 1rem;' action='/user/update_preferences' method='POST'>
<div class="form-group">
<label for="exampleInputEmail1">Change Email address</label>
<input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp"
placeholder="{% if user.email %}{{ user.email }}{% else %}Enter email{% endif %}" name='new_email'>
</div>
<div class="form-group">
<label for="exampleInputPassword1">Change Password</label>
<input type="password" class="form-control" id="exampleInputPassword1" placeholder="enter new password" name='new_password'>
</div>
<div class="form-group">
<label for="exampleInputPassword2">Confirm New Password</label>
<input type="password" class="form-control" id="exampleInputPassword2" placeholder="confirm password" name='con_new_password'>
</div>
<div class="form-group preference-option">
{% if user.hide_sub_style == True %}
<input type="checkbox" class="form-check-input" id="exampleInputCheckbox1" name='hide_sub_style' checked><label for="exampleInputCheckbox1">Hide Custom Sub Styles</label>
{% else %}
<input type="checkbox" class="form-check-input" id="exampleInputCheckbox1" name='hide_sub_style'><label for="exampleInputCheckbox1">Hide Custom Sub Styles</label>
{% endif %}
<!---
{% if user.hide_sub_style == True %}
<input type="checkbox" class="form-check-input" id="exampleInputCheckbox2" name='show_nsfw_index' checked><label for="exampleInputCheckbox2">Hide Custom Sub Styles</label>
{% else %}
<input type="checkbox" class="form-check-input" id="exampleInputCheckbox2" name='show_nsfw_index'><label for="exampleInputCheckbox2">Hide Custom Sub Styles</label>
{% endif %}
-->
</div>
<div class="form-group border-top">
<label for="exampleInputPassword3">Enter Current Password</label>
<input type="password" class="form-control" id="exampleInputPassword3" placeholder="confirm password" name='cur_password'>
</div>
</div>
<button style='margin-left: 1.5rem;' type="submit" class="btn btn-primary">update</button>
</form>
{% endblock %}