2016-12-23 12:35:22 +00:00
|
|
|
{{template "header.html" . }}
|
2016-12-24 13:14:40 +00:00
|
|
|
{{template "panel-menu.html" . }}
|
2016-12-23 12:35:22 +00:00
|
|
|
<div class="colblock_right">
|
2017-01-07 06:31:04 +00:00
|
|
|
<div class="rowitem rowhead"><a>User Editor</a></div>
|
2016-12-23 12:35:22 +00:00
|
|
|
</div>
|
|
|
|
<div class="colblock_right">
|
|
|
|
<form action="/panel/users/edit/submit/{{.Something.ID}}?session={{.CurrentUser.Session}}" method="post">
|
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem"><a>Name</a></div>
|
|
|
|
<div class="formitem"><input name="user-name" type="text" value="{{.Something.Name}}" placeholder="Jane Doe" /></div>
|
|
|
|
</div>
|
|
|
|
{{if .CurrentUser.Perms.EditUserPassword}}<div class="formrow">
|
|
|
|
<div class="formitem"><a>Password</a></div>
|
|
|
|
<div class="formitem"><input name="user-password" type="password" placeholder="*****" /></div>
|
|
|
|
</div>{{end}}
|
|
|
|
{{if .CurrentUser.Perms.EditUserEmail}}<div class="formrow">
|
|
|
|
<div class="formitem"><a>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"><a>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">Update User</div></div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
{{template "footer.html" . }}
|