This commit is contained in:
Christopher Cookman 2025-09-01 00:15:23 -06:00
parent ab6a862aee
commit e223366183

View file

@ -1,6 +1,6 @@
<%
// Assume aclEntry is passed to this view with all fields
// doorsList is an array of door names, e.g. ['Door1', 'Door2', ...]
// doorsList is an object of door names to grant access, e.g. { "Door1": 1, "Door2": 0, ... }
%>
<form id="acl-edit-form" method="post" action="/acl/<%= aclEntry.CardNumber %>?_method=PATCH">
<div>
@ -25,7 +25,7 @@
</div>
<fieldset>
<legend>Doors</legend>
<% doorsList.forEach(function(door) { %>
<% Object.keys(doorsList).forEach(function(door) { %>
<div>
<label>
<input type="checkbox" name="doors[<%= door %>]" value="1"