cityssm/parking-ticket-system

View on GitHub
public/html/location-edit.html

Summary

Maintainability
Test Coverage
<div class="modal">
  <div class="modal-background"></div>
  <div class="modal-card">
    <header class="modal-card-head">
      <h3 class="modal-card-title">Update a Location</h3>
      <button class="delete is-close-modal-button" aria-label="close" type="button"></button>
    </header>
    <section class="modal-card-body">
      <form id="form--editLocation">
        <input id="editLocation--locationKey" name="locationKey" type="hidden" />

        <div class="field">
          <label class="label" for="editLocation--locationClassKey">Location Class</label>
          <div class="control is-expanded">
            <div class="select is-fullwidth">
              <select id="editLocation--locationClassKey" name="locationClassKey" required></select>
            </div>
          </div>
        </div>
        <div class="field">
          <label class="label" for="editLocation--locationName">Location Name</label>
          <div class="control">
            <input class="input" id="editLocation--locationName" name="locationName" maxlength="200" required />
          </div>
        </div>
      </form>
    </section>
    <footer class="modal-card-foot justify-flex-end">
      <button class="button is-close-modal-button" type="button">Cancel</button>
      <button class="button is-success" type="submit" form="form--editLocation">
        <span class="icon is-small"><i class="fas fa-save" aria-hidden="true"></i></span>
        <span>Update Location</span>
      </button>
      <button class="button is-danger is-delete-button" data-cy="remove" type="button">
        <span class="icon is-small"><i class="fas fa-trash" aria-hidden="true"></i></span>
        <span>Remove</span>
      </button>
    </footer>
  </div>
</div>