summaryrefslogtreecommitdiff
path: root/res/local/template.d/pw_reset.html
blob: 908f55977ac3d29a64be9a9d159f963288c3cfcc (plain)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
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 %}