2019-06-10 22:00:57 +00:00
|
|
|
<div class="colstack_item colstack_head">
|
|
|
|
<div class="rowitem"><h1>{{lang "panel_user_head"}}</h1></div>
|
|
|
|
</div>
|
|
|
|
<div id="panel_user" class="colstack_item the_form">
|
2019-09-30 10:23:59 +00:00
|
|
|
<form id="user_form" action="/panel/users/edit/submit/{{.Something.ID}}?s={{.CurrentUser.Session}}" method="post"></form>
|
|
|
|
<form id="avatar_form" enctype="multipart/form-data" action="/panel/users/avatar/submit/{{.Something.ID}}?s={{.CurrentUser.Session}}" method="post"></form>
|
|
|
|
<form id="remove_avatar_form" action="/panel/users/avatar/remove/submit/{{.Something.ID}}?s={{.CurrentUser.Session}}" method="post"></form>
|
2019-06-10 22:00:57 +00:00
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_user_avatar"}}</a></div>
|
|
|
|
<div class="formitem avataritem">
|
|
|
|
{{if .Something.RawAvatar}}<img src="{{.Something.Avatar}}" height=56 width=56 />{{end}}
|
|
|
|
<div class="avatarbuttons">
|
|
|
|
<input form="avatar_form" id="select_avatar" name="avatar_file" type="file" required class="auto_hide" />
|
2019-06-11 04:36:03 +00:00
|
|
|
<label for="select_avatar" class="formbutton">{{lang "panel_user_avatar_select"}}</label>
|
|
|
|
<button form="avatar_form" name="avatar_action" value=0>{{lang "panel_user_avatar_upload"}}</button>
|
|
|
|
{{if .Something.RawAvatar}}<button form="remove_avatar_form" name="avatar_action" value=1>{{lang "panel_user_avatar_remove"}}</button>{{end}}
|
2019-06-10 22:00:57 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_user_name"}}</a></div>
|
|
|
|
<div class="formitem"><input form="user_form" name="user-name" type="text" value="{{.Something.Name}}" placeholder="{{lang "panel_user_name_placeholder"}}" /></div>
|
2016-12-23 12:35:22 +00:00
|
|
|
</div>
|
2019-06-10 22:00:57 +00:00
|
|
|
{{if .CurrentUser.Perms.EditUserPassword}}<div class="formrow">
|
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_user_password"}}</a></div>
|
|
|
|
<div class="formitem"><input form="user_form" name="user-password" type="password" placeholder="*****" autocomplete="off" /></div>
|
|
|
|
</div>{{end}}
|
|
|
|
{{if .CurrentUser.Perms.EditUserEmail}}<div class="formrow">
|
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_user_email"}}</a></div>
|
|
|
|
<div class="formitem"><input form="user_form" name="user-email" type="email" value="{{.Something.Email}}" placeholder="example@localhost" /></div>
|
|
|
|
</div>{{end}}
|
|
|
|
{{if .CurrentUser.Perms.EditUserGroup}}
|
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_user_group"}}</a></div>
|
|
|
|
<div class="formitem">
|
|
|
|
<select form="user_form" name="user-group">
|
|
|
|
{{range .ItemList}}<option {{if eq .ID $.Something.Group}}selected {{end}}value="{{.ID}}">{{.Name}}</option>{{end}}
|
|
|
|
</select>
|
2017-03-18 07:23:02 +00:00
|
|
|
</div>
|
2019-06-10 22:00:57 +00:00
|
|
|
</div>{{end}}
|
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem">
|
|
|
|
<button form="user_form" name="panel-button" class="formbutton">{{lang "panel_user_update_button"}}</button>
|
2016-12-23 12:35:22 +00:00
|
|
|
</div>
|
2019-06-10 22:00:57 +00:00
|
|
|
</div>
|
|
|
|
</div>
|