164 lines
6.0 KiB
Plaintext
164 lines
6.0 KiB
Plaintext
<%- include('_header'); -%>
|
|
|
|
<div class="columns is-mobile">
|
|
<div class="column is-2-desktop is-narrow-touch is-hidden-print">
|
|
<%- include('_menu-admin'); -%>
|
|
</div>
|
|
<div class="column">
|
|
<nav class="breadcrumb">
|
|
<ul>
|
|
<li><a href="<%= urlPrefix %>/dashboard">Home</a></li>
|
|
<li>
|
|
<a href="#">
|
|
<span class="icon is-small"><i class="fas fa-cog" aria-hidden="true"></i></span>
|
|
<span>Administrator Tools</span>
|
|
</a>
|
|
</li>
|
|
<li class="is-active">
|
|
<a href="#" aria-current="page">
|
|
Config Table Management
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
|
|
<h1 class="title is-1">
|
|
Config Table Management
|
|
</h1>
|
|
|
|
<div class="message is-warning">
|
|
<div class="message-body">
|
|
<strong>Never change the meaning of the values in these tables.</strong><br />
|
|
When in doubt, create a new value instead of changing an existing one.
|
|
</div>
|
|
</div>
|
|
|
|
<div class="tabs is-boxed">
|
|
<ul role="presentation">
|
|
<li class="is-active">
|
|
<a href="#tab--workOrderTypes">
|
|
<span class="icon is-small"><i class="fas fa-table" aria-hidden="true"></i></span>
|
|
<span>Work Order Types</span>
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="#tab--workOrderMilestoneTypes">
|
|
<span class="icon is-small"><i class="fas fa-table" aria-hidden="true"></i></span>
|
|
<span>Work Order Milestone Types</span>
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="#tab--burialSiteStatuses">
|
|
<span class="icon is-small"><i class="fas fa-table" aria-hidden="true"></i></span>
|
|
<span>Burial Site Statuses</span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="tabs-container">
|
|
<div id="tab--workOrderTypes">
|
|
<h2 class="title is-4">Work Order Types</h2>
|
|
<table class="table is-striped is-hoverable has-sticky-header">
|
|
<thead>
|
|
<tr>
|
|
<th>Work Order Type</th>
|
|
<th class="has-text-centered has-width-1">Options</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td colspan="2">
|
|
<form id="form--addWorkOrderType">
|
|
<div class="field has-addons">
|
|
<div class="control is-expanded">
|
|
<input class="input" name="workOrderType" type="text" maxlength="100" placeholder="New Work Order Type" required />
|
|
</div>
|
|
<div class="control">
|
|
<button class="button is-success has-tooltip-bottom" data-tooltip="Add Work Order Type" type="submit" aria-label="Add Work Order Type">
|
|
<span class="icon"><i class="fas fa-plus" aria-hidden="true"></i></span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
<tbody id="container--workOrderTypes"></tbody>
|
|
</table>
|
|
</div>
|
|
<div class="is-hidden" id="tab--workOrderMilestoneTypes">
|
|
<h2 class="title is-4">Work Order Milestone Types</h2>
|
|
<table class="table is-striped is-hoverable has-sticky-header">
|
|
<thead>
|
|
<tr>
|
|
<th>Work Order Milestone Type</th>
|
|
<th class="has-text-centered has-width-1">Options</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td colspan="2">
|
|
<form id="form--addWorkOrderMilestoneType">
|
|
<div class="field has-addons">
|
|
<div class="control is-expanded">
|
|
<input class="input" name="workOrderMilestoneType" type="text" maxlength="100" placeholder="New Milestone Type" required />
|
|
</div>
|
|
<div class="control">
|
|
<button class="button is-success has-tooltip-bottom" data-tooltip="Add Work Order Milestone Type" type="submit" aria-label="Add Work Order Milestone Type">
|
|
<span class="icon"><i class="fas fa-plus" aria-hidden="true"></i></span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
<tbody id="container--workOrderMilestoneTypes"></tbody>
|
|
</table>
|
|
</div>
|
|
<div class="is-hidden" id="tab--burialSiteStatuses">
|
|
<h2 class="title is-4">Burial Site Statuses</h2>
|
|
<table class="table is-striped is-hoverable has-sticky-header">
|
|
<thead>
|
|
<tr>
|
|
<th>Burial Site Status</th>
|
|
<th class="has-text-centered has-width-1">Options</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td colspan="2">
|
|
<form id="form--addBurialSiteStatus">
|
|
<div class="field has-addons">
|
|
<div class="control is-expanded">
|
|
<input class="input" name="burialSiteStatus" type="text" maxlength="100" placeholder="New Burial Site Status" required />
|
|
</div>
|
|
<div class="control">
|
|
<button class="button is-success has-tooltip-bottom" data-tooltip="Add Status" type="submit" aria-label="Add Status">
|
|
<span class="icon"><i class="fas fa-plus" aria-hidden="true"></i></span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
<tbody id="container--burialSiteStatuses"></tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<%- include('_footerA'); -%>
|
|
|
|
<script>
|
|
exports.workOrderTypes = <%- JSON.stringify(workOrderTypes) %>;
|
|
exports.workOrderMilestoneTypes = <%- JSON.stringify(workOrderMilestoneTypes) %>;
|
|
exports.burialSiteStatuses = <%- JSON.stringify(burialSiteStatuses) %>;
|
|
</script>
|
|
|
|
<script src="<%= urlPrefix %>/javascripts/tables.admin.js"></script>
|
|
|
|
<%- include('_footerB'); -%>
|