Browse Source
These are very rough templates but they serve as a way to get the logged-in user stuff functionality started.stable
Craig Oates
2 years ago
4 changed files with 50 additions and 0 deletions
@ -0,0 +1,19 @@
|
||||
{% extends "layouts/default.html" %} |
||||
{% block title%}Edit your accout settings.{%endblock%} |
||||
{% block content %} |
||||
<h2>Edit Account</h2> |
||||
|
||||
<div> |
||||
<p>Note: Username cannot be changed.</p> |
||||
<form action="/user/edit" method="post"> |
||||
<input type="hidden" name="AUTHENTICITY-TOKEN" value="{{token}}"> |
||||
<label>Display Name</label> |
||||
<input type="text" name="DISPLAY-NAME" value="{{user.display-name}}"> |
||||
<label>New Password</label> |
||||
<input type="password" name="NEW-PASSWORD"> |
||||
<label>New Password Check</label> |
||||
<input type="password" name="PASSWORD-CHECK"> |
||||
<input type="submit" value="Update Account"> |
||||
</form> |
||||
</div> |
||||
{% endblock %} |
@ -0,0 +1,16 @@
|
||||
{% extends "layouts/default.html" %} |
||||
{% block title%}Log-in and start doing stuff.{%endblock%} |
||||
{% block content %} |
||||
<h2>Login</h2> |
||||
|
||||
<div> |
||||
<form action="/login" method="post"> |
||||
<input type="hidden" name="AUTHENTICITY-TOKEN" value="{{token}}"> |
||||
<label>Username</label> |
||||
<input required type="text" name="USERNAME"> |
||||
<label>password</label> |
||||
<input required type="password" name="PASSWORD"> |
||||
<input type="submit" value="Log-in"> |
||||
</form> |
||||
</div> |
||||
{% endblock %} |
Loading…
Reference in new issue