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 +