48a993d067
The User Manager now uses dyntmpl. panel_groups.html now uses dyntmpl. HTMLID is now optional in panel.html Moved the inline JS in panel_forum_edit.html into panel_forum_edit.js Removed the legacy indents from panel_analytics_referrers.
31 lines
1.6 KiB
HTML
31 lines
1.6 KiB
HTML
<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">
|
|
<form action="/panel/users/edit/submit/{{.Something.ID}}?session={{.CurrentUser.Session}}" method="post">
|
|
<div class="formrow">
|
|
<div class="formitem formlabel"><a>{{lang "panel_user_name"}}</a></div>
|
|
<div class="formitem"><input name="user-name" type="text" value="{{.Something.Name}}" placeholder="{{lang "panel_user_name_placeholder"}}" /></div>
|
|
</div>
|
|
{{if .CurrentUser.Perms.EditUserPassword}}<div class="formrow">
|
|
<div class="formitem formlabel"><a>{{lang "panel_user_password"}}</a></div>
|
|
<div class="formitem"><input 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 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 name="user-group">
|
|
{{range .ItemList}}<option {{if eq .ID $.Something.Group}}selected {{end}}value="{{.ID}}">{{.Name}}</option>{{end}}
|
|
</select>
|
|
</div>
|
|
</div>{{end}}
|
|
<div class="formrow">
|
|
<div class="formitem"><button name="panel-button" class="formbutton">{{lang "panel_user_update_button"}}</button></div>
|
|
</div>
|
|
</form>
|
|
</div> |