fix lot occupancies
parent
6877b3c630
commit
de2602549c
|
|
@ -29,19 +29,16 @@
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<h1 class="title is-1">
|
<h1 class="title is-1">
|
||||||
|
<% if (isCreate) { %>
|
||||||
|
Create a New <%= configFunctions.getProperty("aliases.lot") %>
|
||||||
|
<% } else { %>
|
||||||
<%= lot.lotName %>
|
<%= lot.lotName %>
|
||||||
|
<% } %>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<form id="form--lot">
|
<form id="form--lot">
|
||||||
<input id="lot--lotId" name="lotId" type="hidden" value="<%= lot.lotId %>" />
|
<input id="lot--lotId" name="lotId" type="hidden" value="<%= lot.lotId %>" />
|
||||||
|
|
||||||
<div class="fixed-container is-fixed-bottom-right mx-4 my-4 has-text-right is-hidden-print">
|
|
||||||
<button class="button is-circle is-primary has-tooltip-left" data-tooltip="Update <%= configFunctions.getProperty("aliases.lot") %>" type="submit">
|
|
||||||
<i class="fas fa-save" aria-hidden="true"></i>
|
|
||||||
<span class="sr-only">Update <%= configFunctions.getProperty("aliases.lot") %></span>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="panel">
|
<div class="panel">
|
||||||
<div class="panel-block is-block">
|
<div class="panel-block is-block">
|
||||||
<div class="columns">
|
<div class="columns">
|
||||||
|
|
@ -51,7 +48,6 @@
|
||||||
<%= configFunctions.getProperty("aliases.lot") %> Name
|
<%= configFunctions.getProperty("aliases.lot") %> Name
|
||||||
</label>
|
</label>
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<input class="input" id="lot--lotName" name="lotName" value="<%= lot.lotName %>" maxlength="100" required />
|
|
||||||
<input class="input" id="lot--lotName" name="lotName" value="<%= lot.lotName %>"
|
<input class="input" id="lot--lotName" name="lotName" value="<%= lot.lotName %>"
|
||||||
<% if (configFunctions.getProperty("settings.lot.lotNamePattern")) { %>
|
<% if (configFunctions.getProperty("settings.lot.lotNamePattern")) { %>
|
||||||
pattern="<%= configFunctions.getProperty("settings.lot.lotNamePattern").source %>"
|
pattern="<%= configFunctions.getProperty("settings.lot.lotNamePattern").source %>"
|
||||||
|
|
@ -177,7 +173,7 @@
|
||||||
<option value="<%= map.mapId %>"
|
<option value="<%= map.mapId %>"
|
||||||
<%= (lot.mapId === map.mapId ? " selected" : "") %>
|
<%= (lot.mapId === map.mapId ? " selected" : "") %>
|
||||||
<%= (!isCreate && lot.mapId !== map.mapId ? " disabled" : "") %>>
|
<%= (!isCreate && lot.mapId !== map.mapId ? " disabled" : "") %>>
|
||||||
<%= map.mapName %>
|
<%= map.mapName || "(No Name)" %>
|
||||||
</option>
|
</option>
|
||||||
<% } %>
|
<% } %>
|
||||||
<% if (lot.mapId && !mapIsFound) { %>
|
<% if (lot.mapId && !mapIsFound) { %>
|
||||||
|
|
@ -219,6 +215,16 @@
|
||||||
</h2>
|
</h2>
|
||||||
<div class="panel-block"></div>
|
<div class="panel-block"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="has-text-right mb-4 is-hidden-print">
|
||||||
|
<button class="button is-primary" type="submit">
|
||||||
|
<span class="icon is-small"><i class="fas fa-save" aria-hidden="true"></i></span>
|
||||||
|
<span>
|
||||||
|
<%= (isCreate ? "Create" : "Update") %>
|
||||||
|
<%= configFunctions.getProperty("aliases.lot") %>
|
||||||
|
</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<% if (isCreate) { %>
|
<% if (isCreate) { %>
|
||||||
|
|
@ -272,8 +278,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="panel-block is-block">
|
||||||
|
|
||||||
<% if (lot.lotOccupancies.length === 0) { %>
|
<% if (lot.lotOccupancies.length === 0) { %>
|
||||||
<div class="message is-info">
|
<div class="message is-info">
|
||||||
<p class="message-body">There are no <%= configFunctions.getProperty("aliases.occupancy").toLowerCase() %> records asscociated with this <%= configFunctions.getProperty("aliases.lot") %>.</p>
|
<p class="message-body">There are no <%= configFunctions.getProperty("aliases.occupancy").toLowerCase() %> records asscociated with this <%= configFunctions.getProperty("aliases.lot") %>.</p>
|
||||||
|
|
@ -328,6 +333,8 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
<%- include('_footerA'); -%>
|
<%- include('_footerA'); -%>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue