gosscms/templates/admin-edituser.html
2017-08-28 15:04:19 -05:00

26 lines
984 B
HTML

<div class="center">
<form class="gosscms-form gosscms-form-aligned" action="/admin/users/{{ .TemplateData }}/save" method="POST">
<fieldset>
<div class="gosscms-control-group">
<span>{{ .TemplateData }}</span>
</div>
<div class="gosscms-control-group">
<label class="control-label" for="password">Password</label>
<input id="password" name="password" type="password" placeholder="Password">
</div>
<div class="gosscms-control-group">
<a href="/admin/users" class="pull-left space gosscms-button gosscms-button-plain">Cancel</a>
<button type="submit" class="pull-right space gosscms-button gosscms-button-primary">Update</button>
<button type="button" id="btnDeleteUser" class="pull-right space gosscms-button gosscms-button-error">Delete</button>
</div>
</fieldset>
</form>
</div>
<script>
document.getElementById('btnDeleteUser').onClick = function(e) {
console.log(e);
}
</script>