cityssm/attendance-tracking

View on GitHub
public/html/tableAdmin-addAbsenceType.html

Summary

Maintainability
Test Coverage
<div class="modal" role="dialog" aria-label="Add a New Absence Type">
  <div class="modal-background"></div>
  <div class="modal-card">
    <div class="modal-card-head">
      <h3 class="modal-card-title">Add a New Absence Type</h3>
      <button
        class="delete is-close-modal-button"
        aria-label="close"
        type="button"
      ></button>
    </div>
    <section class="modal-card-body">
      <form id="form--absenceTypeAdd">
        <div class="field">
          <label class="label" for="absenceTypeAdd--absenceType"
            >New Absence Type</label
          >
          <div class="control has-icons-right">
            <input
              class="input"
              id="absenceTypeAdd--absenceType"
              name="absenceType"
              type="text"
              maxlength="100"
              required
            />
            <span class="icon is-small is-right">
              <i class="fas fa-asterisk" aria-hidden="true"></i>
            </span>
          </div>
        </div>
      </form>
    </section>
    <div class="modal-card-foot justify-right">
      <button
        class="button is-success"
        type="submit"
        form="form--absenceTypeAdd"
      >
        <span class="icon"><i class="fas fa-plus" aria-hidden="true"></i></span>
        <span>Add Absence Type</span>
      </button>
      <button class="button is-close-modal-button" type="button">Cancel</button>
    </div>
  </div>
</div>