summaryrefslogtreecommitdiff
path: root/res/local/template.d/pw_reset.html
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-05-27 09:16:09 +0300
committerAlon Levy <alon@pobox.com>2015-05-27 09:16:09 +0300
commitb4e625edcd2f81ae2a57d158d3b6920ca5f46818 (patch)
tree3ce90ebad86d9460c4ccfe299425238d36679389 /res/local/template.d/pw_reset.html
parent9a0c9324b712465048d8e1e07c1fa703877e65ba (diff)
remove all custom files, will be updated externally
Diffstat (limited to 'res/local/template.d/pw_reset.html')
-rw-r--r--res/local/template.d/pw_reset.html107
1 files changed, 107 insertions, 0 deletions
diff --git a/res/local/template.d/pw_reset.html b/res/local/template.d/pw_reset.html
new file mode 100644
index 00000000..908f5597
--- /dev/null
+++ b/res/local/template.d/pw_reset.html
@@ -0,0 +1,107 @@
+{% extends "base.html" %} {% block title %}Rhizi - Password Reset{% endblock %}
+{% block head %} {{ super() }}
+<script src="/static/lib/jquery.js" type="text/javascript"></script>
+<script src="/static/lib/require.js" type="text/javascript"></script>
+<script>
+var lib_path = '/static/lib/';
+var config = {
+ baseUrl: '/static/js/',
+ paths: {
+ jquery: lib_path + 'jquery',
+ underscore: lib_path + 'underscore',
+ pw_reset__common: '/static/js/pw_reset',
+ pw_reset__submit_new_pw: '/static/js/pw_reset',
+ pw_reset__submit_rst_req: '/static/js/pw_reset'
+ }
+ }
+require.config(config);
+{% if 'step_0__reset_request_submission' == pw_rst_step %}
+require(['pw_reset__submit_rst_req'], function(pw_reset) {});
+{% endif %}
+{% if 'step_1__collect_new_password' == pw_rst_step %}
+require(['pw_reset__submit_new_pw'], function(pw_reset) {});
+{% endif %}
+</script>
+
+<style type="text/css">
+html {
+ background: url(/static/img/login-background.jpg);
+ background-repeat: no-repeat;
+ background-position: center;
+ background-size: cover;
+}
+
+body {
+ background-color: transparent;
+}
+</style>
+{% endblock %} {% block content %}
+<div class="cmn-form">
+ <div class="cmn-form-section">
+ <div class="cmn-form-logo"></div>
+ <div class="cmn-form-title">Password Reset</div>
+ </div>
+ {% if 'step_0__reset_request_submission' == pw_rst_step %}
+ <div class="cmn-form-section">
+ <div class="cmn-form-row" id="cmn-form-row--instruction-line" >
+ <p>To have a password renewal link sent to you, please insert the email addressed associated with your Rhizi account.</p>
+ </div>
+ <div class="cmn-form-row">
+ <input
+ id="pw_reset_form__email_address"
+ type="email"
+ placeholder="Email"
+ class="cmn-form-input">
+ </div>
+ <div class="cmn-form-row"
+ id="msg_row">
+ </div>
+ </div>
+ <div class="cmn-form-section">
+ <div class="cmn-form__submit-btn"
+ id="pw_reset_form__submit_button"
+ onclick="pw_reset_form__submit();">Submit</div>
+ </div>
+ {% elif 'step_1__collect_new_password' == pw_rst_step %}
+ <div class="cmn-form-section">
+ <div class="cmn-form-row" id="cmn-form-row--instruction-line" >
+ <p>Please set a new account password:</p>
+ </div>
+ <div class="cmn-form-row">
+ <input
+ id="pw_reset_form__password_first"
+ type="password"
+ placeholder="Password"
+ class="cmn-form-input">
+ </div>
+ <div class="cmn-form-row">
+ <input
+ id="pw_reset_form__password_second"
+ type="password"
+ placeholder="Re-type password"
+ class="cmn-form-input">
+ </div>
+ <div
+ class="cmn-form-row"
+ id="msg_row">
+ </div>
+ <div id="pw_reset_form__submit_button_row">
+ <div class="cmn-form__submit-btn"
+ id="pw_reset_form__submit_button"
+ onclick="pw_reset_form__submit();">Submit</div>
+ </div>
+ </div>
+ {% elif 'general_error' == pw_rst_step %}
+ <div class="cmn-form-section">
+ <div class="cmn-form-row">
+ <p>An error has occurred, please try again later.</p>
+ </div>
+ </div>
+ {% endif %}
+ <div class="cmn-form-section">
+ <div class="cmn-form-row cmn-form__ajax-response">
+ <div id="pw_reset_form__ajax_response"></div>
+ </div>
+ </div>
+</div>
+{% endblock %}