Skip to content

Commit

Permalink
add messages when features disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
dangowans committed Jan 11, 2024
1 parent ac8207a commit 277ea90
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions views/admin.tables.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@
</button>
</div>
</div>
<% if (!configFunctions.getConfigProperty('features.attendance.absences')) { %>
<div class="message is-warning">
<p class="message-body">
Absence Tracking is currently disabled.
</p>
</div>
<% } %>
<div id="container--absenceTypes"></div>
<p class="has-text-centered is-size-7 mt-4">
<a href="<%= urlPrefix %>/reports/absenceTypes-active" download>
Expand All @@ -82,6 +89,13 @@
</button>
</div>
</div>
<% if (!configFunctions.getConfigProperty('features.attendance.callOuts')) { %>
<div class="message is-warning">
<p class="message-body">
Call Out Tracking is currently disabled.
</p>
</div>
<% } %>
<div id="container--callOutResponseTypes"></div>
<p class="has-text-centered is-size-7 mt-4">
<a href="<%= urlPrefix %>/reports/callOutResponseTypes-active" download>
Expand All @@ -104,6 +118,13 @@
</button>
</div>
</div>
<% if (!configFunctions.getConfigProperty('features.attendance.afterHours')) { %>
<div class="message is-warning">
<p class="message-body">
After Hours Tracking is currently disabled.
</p>
</div>
<% } %>
<div id="container--afterHoursReasons"></div>
<p class="has-text-centered is-size-7 mt-4">
<a href="<%= urlPrefix %>/reports/afterHoursReasons-active" download>
Expand Down

0 comments on commit 277ea90

Please sign in to comment.