github.com/Azareal/Gosora@v0.0.0-20210729070923-553e66b59003/templates/account_own_edit.html (about)

     1  <form id="avatar_form"action="/user/edit/avatar/submit/?s={{.CurrentUser.Session}}"method="post"enctype="multipart/form-data"></form>
     2  <div class="coldyn_block">
     3  	<div id="dash_left" class="coldyn_item">
     4  		<div class="rowitem">
     5  			<span id="dash_username">
     6  				<form id="dash_username_form"action="/user/edit/username/submit/?s={{.CurrentUser.Session}}"method="post"></form>
     7  				<form id="revoke_avatar_form"action="/user/edit/avatar/revoke/submit/?s={{.CurrentUser.Session}}"method="post"></form>
     8  				<input form="dash_username_form"name="new-name"value="{{.CurrentUser.Name}}">
     9  				<button form="dash_username_form"class="formbutton">{{lang "account_username_save"}}</button>
    10  			</span>
    11  			<img src="{{.CurrentUser.Avatar}}"height="128px">
    12  			<span id="dash_avatar_buttons">
    13  				{{if .CurrentUser.Perms.UploadAvatars}}
    14  				<input form="avatar_form" id="select_avatar" name="account-avatar" type="file" required class="auto_hide">
    15  				<label for="select_avatar" class="formbutton">{{lang "account_avatar_select"}}</label>
    16  				<button form="avatar_form" name="account-button" class="formbutton">{{lang "account_avatar_update_button"}}</button>
    17  				{{else if .CurrentUser.RawAvatar}}<button form="revoke_avatar_form" id="revoke_avatars" name="revoke-button" class="formbutton">{{lang "account_avatar_revoke_button"}}</button>{{end}}
    18  			</span>
    19  		</div>
    20  	</div>
    21  	<div id="dash_right" class="coldyn_item">
    22  		<div class="rowitem">{{if not .MFASetup}}<a href="/user/edit/mfa/setup/">{{lang "account_dash_2fa_setup"}}</a>{{else}}<a href="/user/edit/mfa/">{{lang "account_dash_2fa_manage"}}</a>{{end}} <span class="dash_security">{{lang "account_dash_security_notice"}}</span></div>
    23  		{{template "account_own_edit_level.html" .}}
    24  	</div>
    25  </div>