1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-12-22 17:10:10 +00:00

polish settings menu

This commit is contained in:
Harvey Tindall 2020-09-05 17:49:23 +01:00
parent ba67fa7536
commit 862e85669e
Signed by: hrfee
GPG Key ID: BBC65952848FB1A2
2 changed files with 11 additions and 7 deletions

View File

@ -643,7 +643,7 @@ document.getElementById('openDefaultsWizard').onclick = function() {
} }
let button = document.getElementById('openDefaultsWizard'); let button = document.getElementById('openDefaultsWizard');
button.disabled = false; button.disabled = false;
button.innerHTML = 'New account defaults'; button.innerHTML = 'New User Defaults <i class="fa fa-user settingIcon"></i>';
let submitButton = document.getElementById('storeDefaults'); let submitButton = document.getElementById('storeDefaults');
submitButton.disabled = false; submitButton.disabled = false;
submitButton.textContent = 'Submit'; submitButton.textContent = 'Submit';
@ -747,7 +747,7 @@ if (ombiEnabled) {
} }
let button = document.getElementById('openOmbiDefaults'); let button = document.getElementById('openOmbiDefaults');
button.disabled = false; button.disabled = false;
button.innerHTML = 'Ombi user defaults'; button.innerHTML = 'Ombi User Defaults <i class="fa fa-chain-broken settingIcon"></i>';
let submitButton = document.getElementById('storeOmbiDefaults'); let submitButton = document.getElementById('storeOmbiDefaults');
submitButton.disabled = false; submitButton.disabled = false;
submitButton.textContent = 'Submit'; submitButton.textContent = 'Submit';

View File

@ -132,6 +132,10 @@
white-space: nowrap; white-space: nowrap;
width: auto; width: auto;
} }
.settingIcon {
margin-left: 0.2rem;
}
</style> </style>
<title>Admin</title> <title>Admin</title>
</head> </head>
@ -168,20 +172,20 @@
</button> </button>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<ul class="list-group list-group-flush"> <ul class="list-group list-group-flush" style="margin-bottom: 1rem;">
<p>Note: <sup class="text-danger">*</sup> Indicates required field, <sup class="text-danger">R</sup> Indicates changes require a restart.</p> <p>Note: <sup class="text-danger">*</sup> Indicates required field, <sup class="text-danger">R</sup> Indicates changes require a restart.</p>
<button type="button" class="list-group-item list-group-item-action" id="openAbout"> <button type="button" class="list-group-item list-group-item-action" id="openAbout">
About <i class="fa fa-info-circle"></i> About <i class="fa fa-info-circle settingIcon"></i>
</button> </button>
<button type="button" class="list-group-item list-group-item-action" id="openUsers"> <button type="button" class="list-group-item list-group-item-action" id="openUsers">
Users <i class="fa fa-user"></i> Email Addresses <i class="fa fa-envelope settingIcon"></i>
</button> </button>
<button type="button" class="list-group-item list-group-item-action" id="openDefaultsWizard"> <button type="button" class="list-group-item list-group-item-action" id="openDefaultsWizard">
New account defaults New User Defaults <i class="fa fa-user settingIcon"></i>
</button> </button>
{{ if .ombiEnabled }} {{ if .ombiEnabled }}
<button type="button" class="list-group-item list-group-item-action" id="openOmbiDefaults"> <button type="button" class="list-group-item list-group-item-action" id="openOmbiDefaults">
Ombi user defaults Ombi User Defaults <i class="fa fa-chain-broken settingIcon"></i>
</button> </button>
{{ end }} {{ end }}
</ul> </ul>