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:
parent
012a06d8a6
commit
4e09b757c3
5 changed files with 252 additions and 3 deletions
29
tailbone/static/js/tailbone.appsettings.js
Normal file
29
tailbone/static/js/tailbone.appsettings.js
Normal 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());
|
||||
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue