{% extends "base.html.twig" %} {% block BeforeAnyCSSFile %} {% for file in encore_entry_css_files('select2__init') %} {% endfor %} {% for file in encore_entry_css_files('dateRangepicker__init') %} {% endfor %} {% endblock %} {% set pagename = 'Guardians' | trans %} {% set addBtnTitle = 'Add new Guardian?' | trans %} {% set addBtnLink = path('add_guardian') %} {% block MainContent %} {# List of the students #}
{# list of student #}
{% for guardian in guardians %} {% set class = '' %} {% if guardian.getIsDeleted %} {% set class = 'bg-inactive' %} {% endif %} {% endfor %}
{{ 'Name'|trans }} {{ 'Students'|trans }} {{ 'Phone'|trans }} {{ 'Email'|trans }} {{ 'Relation Ship'|trans }} {{ 'Gender'|trans }} {{ '#'|trans }}
{{ guardian.getFullName }} {% for student in guardian.getStudentReference.toArray %} {{ student.getFullName }}
{% endfor %}
{{ guardian.getPhone }} {{ guardian.getEmail }} {{ guardian.getGuardianRelationInWords }} {% if guardian.gender == 1 %}{% elseif guardian.gender == 2 %}{% else %} - {% endif %}
{% endblock %} {# extra js codes here.#} {% block ExtraJsFIles %} {% for file in encore_entry_js_files('UserList') %} {% endfor %} {% for file in encore_entry_js_files('select2__init') %} {% endfor %}{% for file in encore_entry_js_files('dateRangepicker__init') %} {% endfor %} {% endblock %} {% block documentation %}
Guardians

Here will see the List of All Guardians & the Details of Students who are attached to the Guardian, The Detail information, that we see

How to Add Guardian

To Add New Guaridan, You've to Click on the Add Guardian button which behind the Documentation Button

{% endblock %}