cityssm/attendance-tracking

View on GitHub
public/html/userAdmin-addUser.html

Summary

Maintainability
Test Coverage
<div class="modal" role="dialog" aria-label="Add a New User">
  <div class="modal-background"></div>
  <div class="modal-card">
    <div class="modal-card-head">
      <h2 class="modal-card-title">Add a New User</h2>
      <button
        class="delete is-close-modal-button"
        aria-label="close"
        type="button"
      ></button>
    </div>
    <section class="modal-card-body">
      <form id="form--userAdd" autocomplete="off">
        <label class="label" for="userAdd--userName">New User Name</label>
        <div class="field has-addons">
          <span class="button is-static" id="userAdd--userDomain"></span>
          <div class="control is-expanded has-icons-right">
            <input
              class="input"
              id="userAdd--userName"
              name="userName"
              type="text"
              maxlength="20"
              autocomplete="off"
              list="datalist--unusedEmployeeUserNames"
              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--userAdd">
        <span class="icon"><i class="fas fa-plus" aria-hidden="true"></i></span>
        <span>Add User</span>
      </button>
      <button class="button is-close-modal-button" type="button">Cancel</button>
    </div>
  </div>
</div>