d120774 by Anon Ray at 2014-03-08 |
1 |
|
|
2 |
{% extends "layout.html" %} |
|
3 |
{% block body %} |
|
4 |
|
|
5 |
<h4> Update your profile details </h4> |
|
6 |
|
|
7 |
<p class="text-muted"> Please fill in the details below and click update button </p> |
|
8 |
|
|
9 |
<form role="form" method="POST" action="{{ url_for('user.profile') }}"> |
|
10 |
<div class="form-group"> |
|
11 |
<label for="username">Username</label> |
|
12 |
<input type="text" class="form-control" name="username" id="username" |
|
13 |
placeholder="Username you are going to use" value="{{ user.username}}"> |
|
14 |
</div> |
|
15 |
<div class="form-group"> |
|
16 |
<label class="control-label">Email</label> |
|
17 |
<div class=""> |
|
18 |
<p class="form-control-static">{{ user.email }}</p> |
|
19 |
</div> |
|
20 |
</div> |
|
21 |
<div class="form-group"> |
|
22 |
<label class="control-label">Account created </label> |
|
23 |
<div class=""> |
|
24 |
<p class="form-control-static" id="user-created"> |
|
25 |
{{ user.created }} |
|
26 |
</p> |
|
27 |
</div> |
|
28 |
</div> |
|
29 |
<button type="submit" class="btn btn-primary">Update</button> |
|
30 |
</form> |
|
31 |
|
|
32 |
{% endblock %} |
|
33 |
|
|
34 |
{% block scripts %} |
|
35 |
|
|
36 |
<script> |
|
37 |
var created = new Date("{{ user.created }}"); |
|
38 |
window.onload = function() { |
|
39 |
$('#user-created').html(created.toString()); |
|
40 |
}; |
|
41 |
</script> |
|
42 |
|
|
43 |
{% endblock %} |