WebUI: add a base template for info messages

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino
2024-01-28 10:22:16 +01:00
parent a275ef17a8
commit caa1d70aab
11 changed files with 43 additions and 42 deletions

View File

@@ -69,7 +69,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
<h3 data-i18n="general.role" class="card-title section-title-inner">Role</h3>
</div>
<div class="card-body">
<p data-i18n="admin.role_help" class="fs-5 fw-semibold mb-4"></p>
{{template "infomsg" "admin.role_help"}}
<div class="form-group row mt-10">
<label for="idRole" data-i18n="general.role" class="col-md-3 col-form-label">Role</label>
<div class="col-md-9">
@@ -92,7 +92,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
</div>
<div class="card-body">
<div id="groups">
<p class="fs-5 fw-semibold mb-4" data-i18n="admin.users_groups_help"></p>
{{template "infomsg" "admin.users_groups_help"}}
<div class="form-group">
<div data-repeater-list="groups">
{{range $idx, $val := .Admin.Groups}}
@@ -181,7 +181,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
<h3 data-i18n="admin.user_page_pref" class="card-title section-title-inner">User page preferences</h3>
</div>
<div class="card-body">
<p data-i18n="admin.user_page_pref_help" class="fs-5 fw-semibold mb-4"></p>
{{template "infomsg" "admin.user_page_pref_help"}}
<div class="form-group row mt-10">
<label for="idUserPageHiddenSections" data-i18n="admin.hide_sections" class="col-md-3 col-form-label">Hide sections</label>