2022-11-16 18:04:50 +00:00
|
|
|
<!--
|
2024-01-21 16:19:25 +00:00
|
|
|
Copyright (C) 2024 Nicola Murino
|
2022-11-16 18:04:50 +00:00
|
|
|
|
2024-01-21 16:19:25 +00:00
|
|
|
This WebUI uses the KeenThemes Mega Bundle, a proprietary theme:
|
2022-11-16 18:04:50 +00:00
|
|
|
|
2024-01-21 16:19:25 +00:00
|
|
|
https://keenthemes.com/products/templates-mega-bundle
|
2022-11-16 18:04:50 +00:00
|
|
|
|
2024-01-21 16:19:25 +00:00
|
|
|
KeenThemes HTML/CSS/JS components are allowed for use only within the
|
|
|
|
SFTPGo product and restricted to be used in a resealable HTML template
|
|
|
|
that can compete with KeenThemes products anyhow.
|
|
|
|
|
|
|
|
This WebUI is allowed for use only within the SFTPGo product and
|
|
|
|
therefore cannot be used in derivative works/products without an
|
|
|
|
explicit grant from the SFTPGo Team (support@sftpgo.com).
|
2022-11-16 18:04:50 +00:00
|
|
|
-->
|
|
|
|
{{template "base" .}}
|
|
|
|
|
2024-01-21 16:19:25 +00:00
|
|
|
{{- define "page_body"}}
|
|
|
|
<div class="card shadow-sm">
|
|
|
|
<div class="card-header bg-light">
|
|
|
|
<h3 data-i18n="{{.Title}}" class="card-title section-title"></h3>
|
2022-11-16 18:04:50 +00:00
|
|
|
</div>
|
|
|
|
<div class="card-body">
|
2024-01-21 16:19:25 +00:00
|
|
|
{{- template "errmsg" .Error}}
|
2022-11-16 18:04:50 +00:00
|
|
|
<form id="role_form" action="{{.CurrentURL}}" method="POST" autocomplete="off">
|
2024-01-21 16:19:25 +00:00
|
|
|
|
2022-11-16 18:04:50 +00:00
|
|
|
<div class="form-group row">
|
2024-01-21 16:19:25 +00:00
|
|
|
<label for="idRoleName" data-i18n="general.name" class="col-md-3 col-form-label">Name</label>
|
|
|
|
<div class="col-md-9">
|
2024-01-21 17:10:14 +00:00
|
|
|
<input id="idRoleName" type="text" placeholder="" name="name" value="{{.Role.Name}}" maxlength="255" autocomplete="off"
|
|
|
|
spellcheck="false" required {{if eq .Mode 2}}class="form-control-plaintext readonly-input" readonly{{else}}class="form-control"{{end}} />
|
2022-11-16 18:04:50 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-01-21 16:19:25 +00:00
|
|
|
|
|
|
|
<div class="form-group row mt-10">
|
|
|
|
<label for="idDescription" data-i18n="general.description" class="col-md-3 col-form-label">Description</label>
|
|
|
|
<div class="col-md-9">
|
|
|
|
<input id="idDescription" type="text" class="form-control" name="description" value="{{.Role.Description}}" maxlength="255">
|
2022-11-16 18:04:50 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2024-01-21 16:19:25 +00:00
|
|
|
<div class="d-flex justify-content-end mt-12">
|
|
|
|
<input type="hidden" name="_form_token" value="{{.CSRFToken}}">
|
|
|
|
<button type="submit" id="form_submit" class="btn btn-primary px-10" name="form_action" value="submit">
|
|
|
|
<span data-i18n="general.submit" class="indicator-label">
|
|
|
|
Submit
|
|
|
|
</span>
|
|
|
|
<span data-i18n="general.wait" class="indicator-progress">
|
|
|
|
Please wait...
|
|
|
|
<span class="spinner-border spinner-border-sm align-middle ms-2"></span>
|
|
|
|
</span>
|
|
|
|
</button>
|
2022-11-16 18:04:50 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-01-21 16:19:25 +00:00
|
|
|
{{- end}}
|
|
|
|
|
|
|
|
{{- define "extra_js"}}
|
|
|
|
<script type="text/javascript" {{- if .CSPNonce}} nonce="{{.CSPNonce}}"{{- end}}>
|
|
|
|
$(document).on("i18nshow", function(){
|
|
|
|
$('#role_form').submit(function (event) {
|
|
|
|
let submitButton = document.querySelector('#form_submit');
|
|
|
|
submitButton.setAttribute('data-kt-indicator', 'on');
|
|
|
|
submitButton.disabled = true;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{{- end}}
|