Add (admin-friendly!) view to manage some App Settings

which settings are available to this view will depend on the project's settings
module, similar to how the email settings work
This commit is contained in:
Lance Edgar 2018-07-18 13:09:32 -05:00
parent 012a06d8a6
commit 4e09b757c3
5 changed files with 252 additions and 3 deletions

View file

@ -0,0 +1,29 @@
/************************************************************
*
* tailbone.appsettings.js
*
* Logic for App Settings page.
*
************************************************************/
function show_group(group) {
if (group == "(All)") {
$('.panel').show();
} else {
$('.panel').hide();
$('.panel[data-groupname="' + group + '"]').show();
}
}
$(function() {
$('#settings-group').on('selectmenuchange', function(event, ui) {
show_group(ui.item.value);
});
show_group($('#settings-group').val());
});