summaryrefslogtreecommitdiffstats
path: root/templates/user/settings/profile.tmpl
blob: 663d8bdb0511b9fa0a1488e187ba763a4cfe2152 (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
{{template "ng/base/head" .}}
{{template "ng/base/header" .}}
<div id="setting-wrapper" class="main-wrapper">
    <div id="user-profile-setting" class="container clear">
        {{template "user/settings/nav" .}}
        <div class="grid-4-5 left">
            <div class="setting-content">
                {{template "ng/base/alert" .}}
                <div id="setting-content">
                    <div id="user-profile-setting-content" class="panel panel-radius">
                        <div class="panel-header">
                            <strong>{{.i18n.Tr "settings.public_profile"}}</strong>
                        </div>
                        <form class="form form-align panel-body" id="user-profile-form" action="/user/settings" method="post">
                            {{.CsrfTokenHtml}}
                        	<div class="text-center panel-desc">{{.i18n.Tr "settings.profile_desc"}}</div>
                            <div class="field">
                                <label>{{.i18n.Tr "settings.uid"}}</label>
                                <label class="text-left">{{.SignedUser.Id}}</label>
                            </div>
                            <div class="field">
                                <label class="req" for="username">{{.i18n.Tr "username"}}</label>
                                <input class="ipt ipt-large ipt-radius {{if .Err_UserName}}ipt-error{{end}}" id="username" name="uname" type="text" value="{{.SignedUser.Name}}" data-uname="{{.SignedUser.Name}}" required />
                            </div>
                            <div class="field">
                                <label for="full-name">{{.i18n.Tr "settings.full_name"}}</label>
                                <input class="ipt ipt-large ipt-radius {{if .Err_FullName}}ipt-error{{end}}" id="full-name" name="fullname" type="text" value="{{.SignedUser.FullName}}" />
                            </div>
                            <div class="field">
                                <label class="req" for="email">{{.i18n.Tr "email"}}</label>
                                <input class="ipt ipt-large ipt-radius {{if .Err_Email}}ipt-error{{end}}" id="email" name="email" type="email" value="{{.SignedUser.Email}}" required />
                            </div>
                            <div class="field">
                                <label for="website">{{.i18n.Tr "settings.website"}}</label>
                                <input class="ipt ipt-large ipt-radius {{if .Err_Website}}ipt-error{{end}}" id="website" name="website" type="url" value="{{.SignedUser.Website}}" />
                            </div>
                            <div class="field">
                                <label for="location">{{.i18n.Tr "settings.location"}}</label>
                                <input class="ipt ipt-large ipt-radius {{if .Err_Location}}ipt-error{{end}}" id="location" name="location" type="text" value="{{.SignedUser.Location}}" />
                            </div>
                            <div class="field">
                                <label for="gravatar-email">Gravatar {{.i18n.Tr "email"}}</label>
                                <input class="ipt ipt-large ipt-radius {{if .Err_Avatar}}ipt-error{{end}}" id="gravatar-email" name="avatar" type="text" value="{{.SignedUser.AvatarEmail}}" />
                            </div>
                            <div class="field">
                                <label></label>
                                <button class="btn btn-green btn-large btn-radius">{{.i18n.Tr "settings.update_profile"}}</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{{template "ng/base/footer" .}}