fix create button alignment
parent
aac1653131
commit
94a3cbedf4
|
|
@ -37,13 +37,13 @@
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<div class="level is-fixed-bottom is-mobile has-background-white has-shadow is-hidden-print">
|
<div class="level is-fixed-bottom is-mobile has-background-white has-shadow is-hidden-print">
|
||||||
<% if (!isCreate) { %>
|
|
||||||
<div class="level-left">
|
<div class="level-left">
|
||||||
|
<% if (!isCreate) { %>
|
||||||
<span class="level-item has-text-weight-bold">
|
<span class="level-item has-text-weight-bold">
|
||||||
<%= lot.lotName %>
|
<%= lot.lotName %>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
|
||||||
<% } %>
|
<% } %>
|
||||||
|
</div>
|
||||||
<div class="level-right">
|
<div class="level-right">
|
||||||
<% if (!isCreate) { %>
|
<% if (!isCreate) { %>
|
||||||
<div class="level-item">
|
<div class="level-item">
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,90 @@
|
||||||
</h1>
|
</h1>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
|
<div class="level is-fixed-bottom is-mobile has-background-white has-shadow is-hidden-print">
|
||||||
|
<div class="level-left">
|
||||||
|
<% if (!isCreate) { %>
|
||||||
|
<span class="level-item has-text-weight-bold">
|
||||||
|
<%= configFunctions.getProperty("aliases.occupancy") %> #<%= lotOccupancy.lotOccupancyId %>:
|
||||||
|
<%= lotOccupancy.lotName || ("(No " + configFunctions.getProperty("aliases.lot") + ")") %>
|
||||||
|
</span>
|
||||||
|
<% } %>
|
||||||
|
</div>
|
||||||
|
<div class="level-right">
|
||||||
|
<% if (!isCreate && occupancyTypePrints.length > 0) { %>
|
||||||
|
<% if (occupancyTypePrints.length === 1) { %>
|
||||||
|
<div class="level-item">
|
||||||
|
<a href="<%= urlPrefix %>/print/<%= occupancyTypePrints[0] %>/?lotOccupancyId=<%= lotOccupancy.lotOccupancyId %>" target="_blank">
|
||||||
|
<span class="icon"><i class="fas fa-print" aria-hidden="true"></i></span>
|
||||||
|
<span>Print</span>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<% } else { %>
|
||||||
|
<div class="level-item">
|
||||||
|
<div class="dropdown is-right is-up">
|
||||||
|
<div class="dropdown-trigger">
|
||||||
|
<button class="button" type="button">
|
||||||
|
<span class="icon"><i class="fas fa-print" aria-hidden="true"></i></span>
|
||||||
|
<span>Print</span>
|
||||||
|
<span class="icon"><i class="fas fa-angle-up" aria-hidden="true"></i></span>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="dropdown-menu">
|
||||||
|
<div class="dropdown-content">
|
||||||
|
<% for (const printName of occupancyTypePrints) { %>
|
||||||
|
<% const printConfig = printFunctions.getPrintConfig(printName); %>
|
||||||
|
<% if (printConfig) { %>
|
||||||
|
<a class="dropdown-item" href="<%= urlPrefix %>/print/<%= printName %>/?lotOccupancyId=<%= lotOccupancy.lotOccupancyId %>" target="_blank">
|
||||||
|
<span class="icon"><i class="fas fa-print" aria-hidden="true"></i></span>
|
||||||
|
<span><%= printConfig.title %></span>
|
||||||
|
</a>
|
||||||
|
<% } %>
|
||||||
|
<% } %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<% } %>
|
||||||
|
<% } %>
|
||||||
|
<% if (!isCreate) { %>
|
||||||
|
<div class="level-item">
|
||||||
|
<div class="dropdown is-right is-up">
|
||||||
|
<div class="dropdown-trigger">
|
||||||
|
<button class="button" type="button">
|
||||||
|
<span>More Options</span>
|
||||||
|
<span class="icon">
|
||||||
|
<i class="fas fa-angle-up" aria-hidden="true"></i>
|
||||||
|
</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="dropdown-menu">
|
||||||
|
<div class="dropdown-content">
|
||||||
|
<a class="dropdown-item" id="button--copyLotOccupancy" href="#">
|
||||||
|
<span class="icon"><i class="far fa-copy" aria-hidden="true"></i></span>
|
||||||
|
<span>Copy <%= configFunctions.getProperty("aliases.occupancy") %> Record as New</span>
|
||||||
|
</a>
|
||||||
|
<a class="dropdown-item" id="button--deleteLotOccupancy" href="#">
|
||||||
|
<span class="icon"><i class="fas fa-trash has-text-danger" aria-hidden="true"></i></span>
|
||||||
|
<span>Delete <%= configFunctions.getProperty("aliases.occupancy") %> Record</span>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<% } %>
|
||||||
|
<div class="level-item">
|
||||||
|
<button class="button is-success" type="submit" form="form--lotOccupancy">
|
||||||
|
<span class="icon is-small"><i class="fas fa-save" aria-hidden="true"></i></span>
|
||||||
|
<span>
|
||||||
|
<%= (isCreate ? "Create" : "Update") %>
|
||||||
|
<%= configFunctions.getProperty("aliases.occupancy") %>
|
||||||
|
Record
|
||||||
|
</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<form id="form--lotOccupancy">
|
<form id="form--lotOccupancy">
|
||||||
<input id="lotOccupancy--lotOccupancyId" name="lotOccupancyId" type="hidden" value="<%= lotOccupancy.lotOccupancyId %>" />
|
<input id="lotOccupancy--lotOccupancyId" name="lotOccupancyId" type="hidden" value="<%= lotOccupancy.lotOccupancyId %>" />
|
||||||
|
|
||||||
|
|
@ -319,90 +403,6 @@
|
||||||
</div>
|
</div>
|
||||||
<% } %>
|
<% } %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="level is-fixed-bottom is-mobile has-background-white has-shadow is-hidden-print">
|
|
||||||
<% if (!isCreate) { %>
|
|
||||||
<div class="level-left">
|
|
||||||
<span class="level-item has-text-weight-bold">
|
|
||||||
<%= configFunctions.getProperty("aliases.occupancy") %> #<%= lotOccupancy.lotOccupancyId %>:
|
|
||||||
<%= lotOccupancy.lotName || ("(No " + configFunctions.getProperty("aliases.lot") + ")") %>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<% } %>
|
|
||||||
<div class="level-right">
|
|
||||||
<% if (!isCreate && occupancyTypePrints.length > 0) { %>
|
|
||||||
<% if (occupancyTypePrints.length === 1) { %>
|
|
||||||
<div class="level-item">
|
|
||||||
<a href="<%= urlPrefix %>/print/<%= occupancyTypePrints[0] %>/?lotOccupancyId=<%= lotOccupancy.lotOccupancyId %>" target="_blank">
|
|
||||||
<span class="icon"><i class="fas fa-print" aria-hidden="true"></i></span>
|
|
||||||
<span>Print</span>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<% } else { %>
|
|
||||||
<div class="level-item">
|
|
||||||
<div class="dropdown is-right is-up">
|
|
||||||
<div class="dropdown-trigger">
|
|
||||||
<button class="button" type="button">
|
|
||||||
<span class="icon"><i class="fas fa-print" aria-hidden="true"></i></span>
|
|
||||||
<span>Print</span>
|
|
||||||
<span class="icon"><i class="fas fa-angle-up" aria-hidden="true"></i></span>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<div class="dropdown-menu">
|
|
||||||
<div class="dropdown-content">
|
|
||||||
<% for (const printName of occupancyTypePrints) { %>
|
|
||||||
<% const printConfig = printFunctions.getPrintConfig(printName); %>
|
|
||||||
<% if (printConfig) { %>
|
|
||||||
<a class="dropdown-item" href="<%= urlPrefix %>/print/<%= printName %>/?lotOccupancyId=<%= lotOccupancy.lotOccupancyId %>" target="_blank">
|
|
||||||
<span class="icon"><i class="fas fa-print" aria-hidden="true"></i></span>
|
|
||||||
<span><%= printConfig.title %></span>
|
|
||||||
</a>
|
|
||||||
<% } %>
|
|
||||||
<% } %>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<% } %>
|
|
||||||
<% } %>
|
|
||||||
<% if (!isCreate) { %>
|
|
||||||
<div class="level-item">
|
|
||||||
<div class="dropdown is-right is-up">
|
|
||||||
<div class="dropdown-trigger">
|
|
||||||
<button class="button" type="button">
|
|
||||||
<span>More Options</span>
|
|
||||||
<span class="icon">
|
|
||||||
<i class="fas fa-angle-up" aria-hidden="true"></i>
|
|
||||||
</span>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="dropdown-menu">
|
|
||||||
<div class="dropdown-content">
|
|
||||||
<a class="dropdown-item" id="button--copyLotOccupancy" href="#">
|
|
||||||
<span class="icon"><i class="far fa-copy" aria-hidden="true"></i></span>
|
|
||||||
<span>Copy <%= configFunctions.getProperty("aliases.occupancy") %> Record as New</span>
|
|
||||||
</a>
|
|
||||||
<a class="dropdown-item" id="button--deleteLotOccupancy" href="#">
|
|
||||||
<span class="icon"><i class="fas fa-trash has-text-danger" aria-hidden="true"></i></span>
|
|
||||||
<span>Delete <%= configFunctions.getProperty("aliases.occupancy") %> Record</span>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<% } %>
|
|
||||||
<div class="level-item">
|
|
||||||
<button class="button is-success" type="submit">
|
|
||||||
<span class="icon is-small"><i class="fas fa-save" aria-hidden="true"></i></span>
|
|
||||||
<span>
|
|
||||||
<%= (isCreate ? "Create" : "Update") %>
|
|
||||||
<%= configFunctions.getProperty("aliases.occupancy") %>
|
|
||||||
Record
|
|
||||||
</span>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<% if (!isCreate) { %>
|
<% if (!isCreate) { %>
|
||||||
|
|
|
||||||
|
|
@ -37,13 +37,13 @@
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<div class="level is-fixed-bottom is-mobile has-background-white has-shadow is-hidden-print">
|
<div class="level is-fixed-bottom is-mobile has-background-white has-shadow is-hidden-print">
|
||||||
<% if (!isCreate) { %>
|
|
||||||
<div class="level-left">
|
<div class="level-left">
|
||||||
|
<% if (!isCreate) { %>
|
||||||
<span class="level-item has-text-weight-bold">
|
<span class="level-item has-text-weight-bold">
|
||||||
<%= map.mapName || "(No Name)" %>
|
<%= map.mapName || "(No Name)" %>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
|
||||||
<% } %>
|
<% } %>
|
||||||
|
</div>
|
||||||
<div class="level-right">
|
<div class="level-right">
|
||||||
<% if (!isCreate) { %>
|
<% if (!isCreate) { %>
|
||||||
<div class="level-item">
|
<div class="level-item">
|
||||||
|
|
|
||||||
|
|
@ -41,14 +41,14 @@
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
<div class="level is-fixed-bottom is-mobile has-background-white has-shadow is-hidden-print">
|
<div class="level is-fixed-bottom is-mobile has-background-white has-shadow is-hidden-print">
|
||||||
<% if (!isCreate) { %>
|
|
||||||
<div class="level-left">
|
<div class="level-left">
|
||||||
|
<% if (!isCreate) { %>
|
||||||
<span class="level-item has-text-weight-bold">
|
<span class="level-item has-text-weight-bold">
|
||||||
Work Order
|
Work Order
|
||||||
#<%= workOrder.workOrderNumber || "(No Number)" %>
|
#<%= workOrder.workOrderNumber || "(No Number)" %>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
|
||||||
<% } %>
|
<% } %>
|
||||||
|
</div>
|
||||||
<div class="level-right">
|
<div class="level-right">
|
||||||
<% if (!isCreate && configFunctions.getProperty("settings.workOrders.prints").length > 0) { %>
|
<% if (!isCreate && configFunctions.getProperty("settings.workOrders.prints").length > 0) { %>
|
||||||
<% if (configFunctions.getProperty("settings.workOrders.prints").length === 1) { %>
|
<% if (configFunctions.getProperty("settings.workOrders.prints").length === 1) { %>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue