cityssm/parking-ticket-system

View on GitHub
public/html/bylaw-updateOffences.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 Related Offences</h3>
      <button class="delete is-close-modal-button" aria-label="close" type="button"></button>
    </header>
    <section class="modal-card-body">
      <form id="form--updateOffences">
        <div class="field">
          <label class="label" for="updateOffences--bylawNumber">By-Law Number</label>
          <div class="control">
            <input class="input is-readonly" id="updateOffences--bylawNumber" name="bylawNumber" type="text" readonly />
          </div>
        </div>
        <div class="field">
          <label class="label" for="updateOffences--bylawDescription">By-Law Description</label>
          <div class="control">
            <input class="input is-readonly" id="updateOffences--bylawDescription" readonly />
          </div>
        </div>

        <div class="message is-warning">
          <p class="message-body">
            Note that all active offence records will be updated with the values set below.
            All outstanding tickets will maintain the values set on the tickets themselves.
          </p>
        </div>

        <div class="field">
          <label class="label" for="updateOffences--offenceAmount">Offence Amount</label>
          <div class="control has-icons-left">
            <input class="input has-text-right" id="updateOffences--offenceAmount" name="offenceAmount" type="number" min="0" max="9999.99" step="0.01" required onwheel="return false;" />
            <span class="icon is-left">
              <i class="fas fa-dollar-sign" aria-hidden="true"></i>
            </span>
          </div>
        </div>

        <div class="columns">
          <div class="column">
            <div class="field">
              <label class="label" for="updateOffences--discountDays">Discount Days</label>
              <div class="control">
                <input class="input has-text-right" id="updateOffences--discountDays" name="discountDays" type="number" min="0" max="60" step="1" required onwheel="return false;" />
              </div>
            </div>
          </div>
          <div class="column">
            <div class="field">
              <label class="label" for="updateOffences--discountOffenceAmount">Discount Offence Amount</label>
              <div class="control has-icons-left">
                <input class="input has-text-right" id="updateOffences--discountOffenceAmount" name="discountOffenceAmount" type="number" min="0" max="9999.99" step="0.01" required onwheel="return false;" />
                <span class="icon is-left">
                  <i class="fas fa-dollar-sign" aria-hidden="true"></i>
                </span>
              </div>
            </div>
          </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--updateOffences">
        <span class="icon is-small"><i class="fas fa-save" aria-hidden="true"></i></span>
        <span>Update Offences</span>
      </button>
    </footer>
  </div>
</div>