{% include 'admin/includes/part.header.html' %}
Staff
Add a staff
{{form.csrf_token}}
{{form.first_name(class_="form-control", id="first_name", placeholder="First Name", aria_label="first_name", aria_describedby="first_name-addon")}} {% for error in form.first_name.errors %} {{ error }} {% endfor %}
{{form.last_name(class_="form-control", id="last_name", placeholder="Last Name", aria_label="last_name", aria_describedby="last_name-addon")}} {% for error in form.last_name.errors %} {{ error }} {% endfor %}
{{form.email(class_="form-control", id="email", placeholder="Email", aria_label="email", aria_describedby="email-addon")}} {% for error in form.email.errors %} {{ error }} {% endfor %}
{{form.phone_number(class_="form-control", id="phone_number", placeholder="Phone Number", aria_label="phone_number", aria_describedby="phone_number-addon")}} {% for error in form.phone_number.errors %} {{ error }} {% endfor %}
{{form.department_id(class_="form-control", id="department_id", placeholder="Department", aria_label="department_id", aria_describedby="department_id-addon")}} {% for error in form.department_id.errors %} {{ error }} {% endfor %}
{{form.hire_date(class_="form-control", id="hire_date", placeholder="Hire Date", cols='10')}} {% for error in form.hire_date.errors %} {{ error }} {% endfor %}
{{form.has_account(class_="form-check-input", id="agree")}} {{form.has_account.label(class_="form-check-label", for="agree")}}
{% for error in form.has_account.errors %} {{ error }} {% endfor %}
{% for staff in staff %} {% endfor %}
Staff Name Department Email Phone Hire Date Status Action

{{staff.first_name }} {{staff.last_name}}

{{staff.department.name }}

{{staff.email}}

{{staff.phone_number}}

{{staff.hire_date.strftime('%d/%m/%Y')}}

{% if staff.active %} Active {% else %} Inactive {% endif %}

{% if staff.user.admin %} {% else %}
{% endif %}
{% include 'admin/includes/part.footer.html' %}