{% extends "base.html.twig" %} {% block ExtraCSSFiles %} {% endblock %} {% set pagename = 'Teachers' | trans %} {% set addBtnTitle = 'Add new Teacher?' | trans %} {% set addBtnLink = path('add_new_teacher') %} {% block MainContent %}
{{ 'Ref#'|trans }} | {{ 'Name'|trans }} | {{ 'Assign Class'|trans }} | {{ 'Assign Subjects'|trans }} | {{ 'Active'|trans }} | {{ 'Gender'|trans }} | {{ 'DOR'|trans }} | {{ '#'|trans }} |
---|---|---|---|---|---|---|---|
{{ u_l.id }}
{{ u_l.email }} |
{# first and last name#}
{{ u_l.getfullname }} |
{% if u_l.getAllocateTeacherToClassAndSubjects.toArray is not empty %}
{% set newArray = [] %}
{% for allocation in u_l.getAllocateTeacherToClassAndSubjects.toArray %}
{% if allocation.class is not empty and allocation.class.id not in newArray %}
{{ allocation.class.name }}
{% set newArray = newArray|merge([allocation.class.id]) %} {% endif %} {% endfor %} {% endif %} |
{# Enrollment #}
{% if u_l.getAllocateTeacherToClassAndSubjects.toArray is not empty %}
{% for allocation in u_l.getAllocateTeacherToClassAndSubjects.toArray %}
{% if allocation.getClassSubject is not empty %}
{{ allocation.getClassSubject.getSubjectname }}
{% endif %} {% endfor %} {% endif %} |
{# status of user, is active or in active #}
{% if u_l.getIsActive() %} {{ 'Active' | trans }} {% else %} {{ 'InActive' | trans }} {% endif %} | {# gender of user #}{% if u_l.gender == 1 %} {% elseif u_l.gender == 2 %} {% else %} - {% endif %} | {# date of registration #}{{ u_l.getRegisterTime()|date(getAppSetting('date_format')) }} - {{ u_l.getRegisterTime()|date(getAppSetting('time_format')) }} | {# actions list #}
Here we find the list of teachers, in the List we will see following information:
To Add new Teacher you need click over the {{ 'Add new Teacher?'|trans }} button
{% endblock %}