gosscms/templates/admin-edituser.html

31 lines
1.1 KiB
HTML
Raw Normal View History

2017-08-29 19:33:09 +00:00
<section class="admin">
<div class="main container">
<form class="gosscms-form gosscms-form-aligned" action="/admin/users/{{ .TemplateData }}/save" method="POST">
<fieldset>
<div class="gosscms-control-group">
<span>{{ .TemplateData }}</span>
</div>
2017-08-28 20:04:19 +00:00
2017-08-29 19:33:09 +00:00
<div class="gosscms-control-group">
<label class="control-label" for="password">Password</label>
<input id="password" name="password" type="password" placeholder="Password">
</div>
2017-08-28 20:04:19 +00:00
2017-08-29 19:33:09 +00:00
<div class="gosscms-control-group">
<button id="btnCancel"href="/admin/users" class="pull-left space button">Cancel</a>
<button type="submit" class="pull-right space">Update</button>
<button type="button" id="btnDeleteUser" class="pull-right space">Delete</button>
</div>
</fieldset>
</form>
</div>
</section>
2017-08-28 20:04:19 +00:00
<script>
2017-08-29 19:33:09 +00:00
document.getElementById('btnCancel').onClick = function(e) {
window.location = "/admin/users";
}
2017-08-28 20:04:19 +00:00
document.getElementById('btnDeleteUser').onClick = function(e) {
console.log(e);
}
</script>