summaryrefslogtreecommitdiffstats
path: root/templates/user/auth/reset_passwd.tmpl
blob: 3c9da96b67909a226fd2b9df6ed43c3098b8b9eb (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
{{template "ng/base/head" .}}
{{template "ng/base/header" .}}
<div id="sign-wrapper">
    <form class="form-align form panel sign-panel sign-form container panel-radius" id="sign-up-form" action="/user/reset_password?code={{.Code}}" method="post">
        {{.CsrfTokenHtml}}
        <div class="panel-header">
            <h2>{{.i18n.Tr "auth.reset_password"}}</h2>
        </div>
        <div class="panel-content">
            {{template "ng/base/alert" .}}
            {{if .IsResetForm}}
            <div class="field">
                <label class="req" for="password">{{.i18n.Tr "password"}}</label>
                <input class="ipt ipt-large ipt-radius {{if .Err_Password}}ipt-error{{end}}" id="password" name="password" type="password" value="{{.password}}" required/>
            </div>
            <hr/>
            <label></label>
            <button class="btn btn-blue btn-large btn-radius">{{.i18n.Tr "auth.reset_password_helper"}}</button>
            {{else}}
            <p>{{.i18n.Tr "auth.invalid_code"}}</p>
            {{end}}
        </div>
    </form>
</div>
{{template "ng/base/footer" .}}