From f477579b2731bc62db4366ebe46bb8d010de5e4f Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Mon, 1 Sep 2025 00:33:31 -0600 Subject: [PATCH] Test --- views/acl-add.ejs | 68 +++++++++++++++++++++++++ views/acl-edit.ejs | 123 +++++++++++++++++++-------------------------- 2 files changed, 121 insertions(+), 70 deletions(-) create mode 100644 views/acl-add.ejs diff --git a/views/acl-add.ejs b/views/acl-add.ejs new file mode 100644 index 0000000..a962989 --- /dev/null +++ b/views/acl-add.ejs @@ -0,0 +1,68 @@ +
+

Add ACL Entry

+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ Doors + <% if (typeof doorsList !== 'undefined') { %> + <% Object.keys(doorsList).forEach(function(door) { %> +
+ +
+ <% }) %> + <% } else { %> +
No doors configured.
+ <% } %> +
+ +
+ + diff --git a/views/acl-edit.ejs b/views/acl-edit.ejs index e52067e..c0dc63e 100644 --- a/views/acl-edit.ejs +++ b/views/acl-edit.ejs @@ -1,70 +1,53 @@ -<% -// Assume aclEntry is passed to this view with all fields -// doorsList is an object of door names to grant access, e.g. { "Door1": 1, "Door2": 0, ... } -%> -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- Doors - <% Object.keys(doorsList).forEach(function(door) { %> -
- -
- <% }) %> -
- -
- - \ No newline at end of file +