diff --git a/apps/cory/admin.json b/apps/cory/admin.json
index 48a72d52..cf9f2b47 100644
--- a/apps/cory/admin.json
+++ b/apps/cory/admin.json
@@ -1 +1 @@
-{"type":"tildefriends-app","files":{"app.js":"&srACRivbm0ZbvlMOAQ/9mhdcu++LLh6ckcRoRLvewjU=.sha256","index.html":"&D3JwdPXy/QsLXkmwNDrBFXdzxfqO1/JGxfqEArnS5v4=.sha256","lit.min.js":"&3FfrVflmGr0n4lvN0GriN1Qz1lEw31SbZxRSJrcXR28=.sha256","script.js":"&yTGrKjg1U/F9wt/60ySlg4N+qewVoaRUqqWQWkHi1Q0=.sha256"}}
\ No newline at end of file
+{"type":"tildefriends-app","files":{"app.js":"&uhGJsy5+qBgOgEgMqCTDasK+C+GWGptHKfPiAsD5eGA=.sha256","index.html":"&D3JwdPXy/QsLXkmwNDrBFXdzxfqO1/JGxfqEArnS5v4=.sha256","lit.min.js":"&3FfrVflmGr0n4lvN0GriN1Qz1lEw31SbZxRSJrcXR28=.sha256","script.js":"&AUPPnLdyXVocBHQwqWZ7rMdgj0h0/dxEERJz4+RoRQ0=.sha256"}}
\ No newline at end of file
diff --git a/apps/cory/admin/app.js b/apps/cory/admin/app.js
index 63ee9e8d..6cc76dea 100644
--- a/apps/cory/admin/app.js
+++ b/apps/cory/admin/app.js
@@ -12,7 +12,7 @@ async function main() {
let data = {
users: {},
granted: await core.allPermissionsGranted(),
- index: await core.globalSettingsGet('index'),
+ settings: await core.globalSettingsDescriptions(),
};
for (let user of await core.users()) {
data.users[user] = await core.permissionsForUser(user);
diff --git a/apps/cory/admin/script.js b/apps/cory/admin/script.js
index 3cbe23b8..eb06531e 100644
--- a/apps/cory/admin/script.js
+++ b/apps/cory/admin/script.js
@@ -22,11 +22,23 @@ function global_settings_set(key, value) {
window.addEventListener('load', function() {
const permission_template = (permission) =>
html` ${permission}
`;
- const input_template = (key, value) => html`
-
-
-
- `;
+ function input_template(key, description) {
+ if (description.type === 'boolean') {
+ return html`
+
+
+
+ ${description.description}
+ `;
+ } else {
+ return html`
+
+
+
+ ${description.description}
+ `;
+ }
+ }
const user_template = (user, permissions) => html`