github.com/wanliu/go-oauth2-server@v0.0.0-20180817021415-f928fa1580df/web/includes/account.html (about) 1 {{ define "title"}}帐号设置 - Jiejie {{ end }} 2 3 {{ define "content" }} 4 <div class="container"> 5 <div class="row profile"> 6 <div class="col-md-3"> 7 <div class="profile-sidebar"> 8 <!-- SIDEBAR USERPIC --> 9 <div class="profile-userpic"> 10 <img src="{{ .currentUser.Avatar }}" class="img-responsive" alt=""> 11 </div> 12 <!-- END SIDEBAR USERPIC --> 13 <!-- SIDEBAR USER TITLE --> 14 <div class="profile-usertitle"> 15 <div class="profile-usertitle-name"> 16 {{ .currentUser.Username }} 17 </div> 18 {{if .currentUser.Role}} 19 <div class="profile-usertitle-job"> 20 {{ .currentUser.Role.Name }} 21 </div> 22 {{end}} 23 </div> 24 <!-- END SIDEBAR USER TITLE --> 25 <!-- SIDEBAR BUTTONS --> 26 <div class="profile-userbuttons"> 27 <button type="button" class="btn btn-success btn-sm">Follow</button> 28 <button type="button" class="btn btn-danger btn-sm">Message</button> 29 </div> 30 <!-- END SIDEBAR BUTTONS --> 31 <!-- SIDEBAR MENU --> 32 <div class="profile-usermenu"> 33 <ul class="nav"> 34 <li class="active"> 35 <a href="/web"> 36 <i class="glyphicon glyphicon-user"></i> 37 帐号 </a> 38 </li> 39 <li> 40 <a href="/web/clients"> 41 <i class="glyphicon glyphicon-cloud"></i> 42 应用 </a> 43 </li> 44 <li> 45 <a href="#"> 46 <i class="glyphicon glyphicon-flag"></i> 47 帮助 </a> 48 </li> 49 </ul> 50 </div> 51 <!-- END MENU --> 52 </div> 53 </div> 54 <div class="col-md-9"> 55 <div class="profile-content"> 56 <form enctype="multipart/form-data" method="POST" action="/web/"> 57 <div class="form-group {{ .form.ErrorStatus "NickName" }}"> 58 <label class="control-label" for="user_nickname">昵称</label> 59 <input type="text" class="form-control" id="user_nickname" aria-describedby="nicknameHelp" name="nickname" value="{{ .currentUser.NickName.String }}" placeholder="网络昵称"> 60 {{ .form.ErrorMsg "NickName" | raw}} 61 </div> 62 <div class="row"> 63 <div class="form-group {{ .form.ErrorStatus "FirstName" }} col-md-6"> 64 <label class="control-label" for="user_firstName">姓</label> 65 <input type="text" class="form-control" id="user_firstName" aria-describedby="firstnameHelp" name="first_name" value="{{ .currentUser.FirstName.String }}" placeholder="" > 66 {{ .form.ErrorMsg "FirstName" | raw}} 67 </div> 68 <div class="form-group {{ .form.ErrorStatus "LastName" }} col-md-6"> 69 <label class="control-label" for="user_lastName">名</label> 70 <input type="text" class="form-control" id="user_lastName" aria-describedby="lastnameHelp" name="last_name" value="{{ .currentUser.LastName.String }}" placeholder="" > 71 {{ .form.ErrorMsg "LastName" | raw}} 72 </div> 73 </div> 74 75 <div class="form-group {{ .form.ErrorStatus "AvatarURL" }}"> 76 <input type="file" class="form-control-file avatar" id="user_avatarURL" name="avatar_url"> 77 <label for="user_avatarURL"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="17" viewBox="0 0 20 17"><path d="M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z"></path></svg> <span>上传头像图片…</span></label> 78 {{ .form.ErrorMsg "AvatarURL" | raw}} 79 </div> 80 <div class="form-group {{ .form.ErrorStatus "Mobile" }}"> 81 <label class="control-label" for="user_mobile">手机</label> 82 <input type="mobile" class="form-control" id="user_mobile" aria-describedby="mobileHelp" name="mobile" value="{{ .currentUser.Mobile.String }}" placeholder="接收短信验证的手机号码"> 83 <small id="mobileHelp" class="form-text text-muted">我们不会向任何人泄露你的号码。</small> 84 {{ .form.ErrorMsg "Mobile" | raw}} 85 </div> 86 <div class="form-group"> 87 <label class="control-label" for="user_email">电子邮件</label> 88 <input type="email" class="form-control" id="user_email" aria-describedby="emailHelp" name="username" placeholder="输入有一个效的邮箱地址" value="{{ .currentUser.Username }}" disabled> 89 <small id="emailHelp" class="form-text text-muted">我们不会向任何人泄露你的电子邮件。</small> 90 </div> 91 <div class="form-group {{ .form.ErrorStatus "Password" }} "> 92 <label class="control-label" for="user_password">密码</label> 93 <input type="password" class="form-control" id="user_password" name="password" placeholder="输入密码"> 94 {{ .form.ErrorMsg "Password" | raw}} 95 </div> 96 <button type="submit" class="btn btn-success">保存</button> 97 </form> 98 </div> 99 </div> 100 </div> 101 </div> <!-- /container --> 102 {{ end }}