cityssm/parking-ticket-system

View on GitHub
views/_sideMenu-plates.ejs

Summary

Maintainability
Test Coverage
<div class="column is-3 is-hidden-print has-background-white-bis" id="cityssm-theme--sidemenu-expanded">
  <aside class="menu">
    <p class="menu-label">
      Licence Plates
    </p>
    <ul class="menu-list">
      <li>
        <a class="<%= (headTitle === "Licence Plates" ? "is-active" : "") %>" href="<%= urlPrefix %>/plates">
          <span class="icon">
            <i class="fas fa-fw fa-car" aria-hidden="true"></i>
          </span>
          <span>Licence Plate Search</span>
        </a>
      </li>
    </ul>

    <% if (configFunctions.getConfigProperty("application.feature_mtoExportImport") && (user.canUpdate || user.isOperator)) { %>
      <p class="menu-label">
        MTO Integration
      </p>
      <ul class="menu-list">
        <li>
          <a class="<%= (headTitle === "MTO Licence Plate Export" ? "is-active" : "") %>" href="<%= urlPrefix %>/plates-ontario/mtoExport">
            <span class="icon">
              <i class="fas fa-fw fa-file-export" aria-hidden="true"></i>
            </span>
            <span>Export Licence Plates</span>
          </a>
        </li>
        <li>
          <a class="<%= (headTitle === "MTO Licence Plate Ownership Import" ? "is-active" : "") %>" href="<%= urlPrefix %>/plates-ontario/mtoImport">
            <span class="icon">
              <i class="fas fa-fw fa-file-import" aria-hidden="true"></i>
            </span>
            <span>Import Licence Plate Ownership</span>
          </a>
        </li>
      </ul>
    <% } %>
  </aside>
  <button class="button is-light is-fullwidth mt-4" id="cityssm-theme--sidemenu-collapse-button">
    <span class="icon is-small"><i class="fas fa-angle-double-left" aria-hidden="true"></i></span>
    <span>Hide Side Menu</span>
  </button>
</div>
<div class="column is-narrow is-hidden-print is-hidden" id="cityssm-theme--sidemenu-collapsed">
  <button class="button is-light has-tooltip-right" id="cityssm-theme--sidemenu-expand-button" data-tooltip="Expand Side Menu">
    <i class="fas fa-angle-double-right" aria-hidden="true"></i>
    <span class="sr-only">Expand Side Menu</span>
  </button>
</div>