2016-12-23 12:35:22 +00:00
|
|
|
{{template "header.html" . }}
|
2016-12-24 13:14:40 +00:00
|
|
|
{{template "panel-menu.html" . }}
|
2017-08-20 09:39:02 +00:00
|
|
|
<main class="colstack_right">
|
2017-03-18 07:23:02 +00:00
|
|
|
<div class="colstack_item colstack_head">
|
2017-08-27 09:33:45 +00:00
|
|
|
<div class="rowitem"><h1>User Editor</h1></div>
|
2016-12-23 12:35:22 +00:00
|
|
|
</div>
|
2017-05-29 14:52:37 +00:00
|
|
|
<div id="panel_user" class="colstack_item">
|
2017-03-18 07:23:02 +00:00
|
|
|
<form action="/panel/users/edit/submit/{{.Something.ID}}?session={{.CurrentUser.Session}}" method="post">
|
|
|
|
<div class="formrow">
|
2017-05-29 14:52:37 +00:00
|
|
|
<div class="formitem formlabel"><a>Name</a></div>
|
2017-03-18 07:23:02 +00:00
|
|
|
<div class="formitem"><input name="user-name" type="text" value="{{.Something.Name}}" placeholder="Jane Doe" /></div>
|
|
|
|
</div>
|
|
|
|
{{if .CurrentUser.Perms.EditUserPassword}}<div class="formrow">
|
2017-05-29 14:52:37 +00:00
|
|
|
<div class="formitem formlabel"><a>Password</a></div>
|
2017-03-18 07:23:02 +00:00
|
|
|
<div class="formitem"><input name="user-password" type="password" placeholder="*****" /></div>
|
|
|
|
</div>{{end}}
|
|
|
|
{{if .CurrentUser.Perms.EditUserEmail}}<div class="formrow">
|
2017-05-29 14:52:37 +00:00
|
|
|
<div class="formitem formlabel"><a>Email</a></div>
|
2017-03-18 07:23:02 +00:00
|
|
|
<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">
|
2017-05-29 14:52:37 +00:00
|
|
|
<div class="formitem formlabel"><a>Group</a></div>
|
2017-03-18 07:23:02 +00:00
|
|
|
<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</button></div>
|
2016-12-23 12:35:22 +00:00
|
|
|
</div>
|
2017-03-18 07:23:02 +00:00
|
|
|
</form>
|
2016-12-23 12:35:22 +00:00
|
|
|
</div>
|
2017-08-20 09:39:02 +00:00
|
|
|
</main>
|
2017-05-29 14:52:37 +00:00
|
|
|
{{template "footer.html" . }}
|