Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a simple legend explaining the meaning of the door code statuses #601

Merged
merged 2 commits into from
Dec 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions app/views/admin/door_codes/_status_legend.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<div class="container small bg-info">
<h4>What door code statuses mean</h4>
<dl>
<dt>not_in_lock</dt>
<dd>code exists in the database, but not in the physical door lock</dd>
<dt>in_lock</dt>
<dd>code exists in the lock</dd>
<dt>formerly_assigned_in_lock</dt>
<dd>
code used to be assigned to a member, but is no longer assigned;
this code exists in the lock (we probably want to remove it!)
</dd>
<dt>formerly_assigned_not_in_lock</dt>
<dd>
code used to be assigned to a member, and is not in the lock;
we keep it in the database to prevent code reuse
</dd>
<dt>denylisted</dt>
<dd>we don't allow this code to be used</dd>
</dl>
</div>
4 changes: 4 additions & 0 deletions app/views/admin/door_codes/edit.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<h1>Edit Door Code</h1>

<%= render partial: 'form', locals: { door_code: door_code} %>

<br/>

<%= render partial: 'status_legend' %>
2 changes: 2 additions & 0 deletions app/views/admin/door_codes/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
There are no door codes in the database yet!
<% end %>

<%= render partial: 'status_legend' %>

<table class="table table-striped">
<thead>
<tr>
Expand Down
4 changes: 4 additions & 0 deletions app/views/admin/door_codes/new.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<h1>Add New Door Code</h1>

<%= render partial: 'form', locals: { door_code: door_code} %>

<br/>

<%= render partial: 'status_legend' %>