Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
finish and document Limited mode
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
- Loading branch information
Showing
12 changed files
with
386 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{# -*- coding: utf-8 -*- #} | ||
{% extends 'base.tmpl' %} | ||
{% block content %} | ||
<div class="page-header"> | ||
<h1>Account <tt>{{ current_user.username }}</tt></h1> | ||
</div> | ||
|
||
{% if alert %} | ||
<div class="alert alert-{{ alert_status }}" role="alert">{{ alert }}</div> | ||
{% endif %} | ||
|
||
<div class="panel panel-primary"> | ||
<div class="panel-heading"> | ||
<h3 class="panel-title">Profile</h3> | ||
</div> | ||
<div class="panel-body form-horizontal"> | ||
|
||
<p>In order to change your details, please contact an | ||
administrator.</p> | ||
<div class="form-group"> | ||
<label for="name" class="col-sm-2 control-label">Real name</label> | ||
<div class="col-sm-10"><input class="form-control" id="realname" name="realname" value="{{ current_user.realname }}" placeholder="Real name" required disabled></div> | ||
</div> | ||
<div class="form-group"> | ||
<label for="name" class="col-sm-2 control-label">E-mail address</label> | ||
<div class="col-sm-10"><input class="form-control" id="email" name="email" type="email" value="{{ current_user.email }}" placeholder="E-mail address" required disabled></div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<form action="{{ url_for('acp_pwdhash') }}" method="POST" class="form-horizontal"> | ||
<div class="panel panel-primary"> | ||
<div class="panel-heading"> | ||
<h3 class="panel-title">Password change</h3> | ||
</div> | ||
<div class="panel-body"> | ||
<p>In order to change your password, please contact an | ||
administrator and provide them with a <strong>hash</strong> of your | ||
desired password. Generate a secure hash below.</p> | ||
<div class="form-group"> | ||
<label for="newpwd1" class="col-sm-2 control-label">New password</label> | ||
<div class="col-sm-10"><input type="password" class="form-control" id="newpwd1" name="newpwd1" placeholder="New password"></div> | ||
</div> | ||
<div class="form-group"> | ||
<label for="newpwd2" class="col-sm-2 control-label">Repeat password</label> | ||
<div class="col-sm-10"><input type="password" class="form-control" id="newpwd2" name="newpwd2" placeholder="Repeat new password"></div> | ||
</div> | ||
</div> | ||
</div> | ||
{{ form.csrf_token }} | ||
<div style="text-align: center;"> | ||
<button type="submit" class="btn btn-primary btn-lg save-btn"><i class="fa fa-key fa-fw"></i> Generate hash</button> | ||
</div> | ||
</form> | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{# -*- coding: utf-8 -*- #} | ||
{% extends 'base.tmpl' %} | ||
{% block content %} | ||
<div class="page-header"> | ||
<h1>Account <tt>{{ current_user.username }}</tt></h1> | ||
</div> | ||
|
||
<form action="{{ url_for('acp_pwdhash') }}" method="POST" class="form-horizontal"> | ||
<div class="panel panel-primary"> | ||
<div class="panel-heading"> | ||
<h3 class="panel-title">Password change</h3> | ||
</div> | ||
{% if status %} | ||
<div class="panel-body"> | ||
<p class="text-success">Please provide the following hash to your | ||
administrator:</p> | ||
<p><code>{{ pwdhash }}</code></p> | ||
</div> | ||
{% else %} | ||
<div class="panel-body"> | ||
<p class="text-danger">The passwords did not match. Please try again.</p> | ||
<div class="form-group"> | ||
<label for="newpwd1" class="col-sm-2 control-label">New password</label> | ||
<div class="col-sm-10"><input type="password" class="form-control" id="newpwd1" name="newpwd1" placeholder="New password"></div> | ||
</div> | ||
<div class="form-group"> | ||
<label for="newpwd2" class="col-sm-2 control-label">Repeat password</label> | ||
<div class="col-sm-10"><input type="password" class="form-control" id="newpwd2" name="newpwd2" placeholder="Repeat new password"></div> | ||
</div> | ||
</div> | ||
</div> | ||
{{ form.csrf_token }} | ||
<div style="text-align: center;"> | ||
<button type="submit" class="btn btn-primary btn-lg save-btn"><i class="fa fa-key fa-fw"></i> Generate hash</button> | ||
</div> | ||
{% endif %} | ||
</form> | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
## -*- coding: utf-8 -*- | ||
<%inherit file="base.tmpl"/> | ||
<%block name="content"> | ||
<div class="page-header"> | ||
<h1>Account <tt>${current_user.username}</tt></h1> | ||
</div> | ||
|
||
% if alert: | ||
<div class="alert alert-${alert_status}" role="alert">${alert}</div> | ||
% endif | ||
|
||
<div class="panel panel-primary"> | ||
<div class="panel-heading"> | ||
<h3 class="panel-title">Profile</h3> | ||
</div> | ||
<div class="panel-body form-horizontal"> | ||
|
||
<p>In order to change your details, please contact an | ||
administrator.</p> | ||
<div class="form-group"> | ||
<label for="name" class="col-sm-2 control-label">Real name</label> | ||
<div class="col-sm-10"><input class="form-control" id="realname" name="realname" value="${current_user.realname}" placeholder="Real name" required disabled></div> | ||
</div> | ||
<div class="form-group"> | ||
<label for="name" class="col-sm-2 control-label">E-mail address</label> | ||
<div class="col-sm-10"><input class="form-control" id="email" name="email" type="email" value="${current_user.email}" placeholder="E-mail address" required disabled></div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<form action="${url_for('acp_pwdhash')}" method="POST" class="form-horizontal"> | ||
<div class="panel panel-primary"> | ||
<div class="panel-heading"> | ||
<h3 class="panel-title">Password change</h3> | ||
</div> | ||
<div class="panel-body"> | ||
<p>In order to change your password, please contact an | ||
administrator and provide them with a <strong>hash</strong> of your | ||
desired password. Generate a secure hash below.</p> | ||
<div class="form-group"> | ||
<label for="newpwd1" class="col-sm-2 control-label">New password</label> | ||
<div class="col-sm-10"><input type="password" class="form-control" id="newpwd1" name="newpwd1" placeholder="New password"></div> | ||
</div> | ||
<div class="form-group"> | ||
<label for="newpwd2" class="col-sm-2 control-label">Repeat password</label> | ||
<div class="col-sm-10"><input type="password" class="form-control" id="newpwd2" name="newpwd2" placeholder="Repeat new password"></div> | ||
</div> | ||
</div> | ||
</div> | ||
${form.csrf_token} | ||
<div style="text-align: center;"> | ||
<button type="submit" class="btn btn-primary btn-lg save-btn"><i class="fa fa-key fa-fw"></i> Generate hash</button> | ||
</div> | ||
</form> | ||
|
||
</%block> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
## -*- coding: utf-8 -*- | ||
<%inherit file="base.tmpl"/> | ||
<%block name="content"> | ||
<div class="page-header"> | ||
<h1>Account <tt>${current_user.username}</tt></h1> | ||
</div> | ||
|
||
<form action="${url_for('acp_pwdhash')}" method="POST" class="form-horizontal"> | ||
<div class="panel panel-primary"> | ||
<div class="panel-heading"> | ||
<h3 class="panel-title">Password change</h3> | ||
</div> | ||
% if status: | ||
<div class="panel-body"> | ||
<p class="text-success">Please provide the following hash to your | ||
administrator:</p> | ||
<p><code>${pwdhash}</code></p> | ||
</div> | ||
% else: | ||
<div class="panel-body"> | ||
<p class="text-danger">The passwords did not match. Please try again.</p> | ||
<div class="form-group"> | ||
<label for="newpwd1" class="col-sm-2 control-label">New password</label> | ||
<div class="col-sm-10"><input type="password" class="form-control" id="newpwd1" name="newpwd1" placeholder="New password"></div> | ||
</div> | ||
<div class="form-group"> | ||
<label for="newpwd2" class="col-sm-2 control-label">Repeat password</label> | ||
<div class="col-sm-10"><input type="password" class="form-control" id="newpwd2" name="newpwd2" placeholder="Repeat new password"></div> | ||
</div> | ||
</div> | ||
</div> | ||
${form.csrf_token} | ||
<div style="text-align: center;"> | ||
<button type="submit" class="btn btn-primary btn-lg save-btn"><i class="fa fa-key fa-fw"></i> Generate hash</button> | ||
</div> | ||
% endif | ||
</form> | ||
|
||
</%block> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.