31 lines
1.1 KiB
HTML
31 lines
1.1 KiB
HTML
<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>
|
|
|
|
<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">
|
|
<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>
|
|
<script>
|
|
document.getElementById('btnCancel').onClick = function(e) {
|
|
window.location = "/admin/users";
|
|
}
|
|
document.getElementById('btnDeleteUser').onClick = function(e) {
|
|
console.log(e);
|
|
}
|
|
</script>
|