{# USAGE: This templates is for a three purposes, P1: user can see own profile. P2: admin is viewing others profile. P3: admin is adding new user #} {% extends "base.html.twig" %} {% block BeforeAnyCSSFile %} {% for file in encore_entry_css_files('select2__init') %} {% endfor %} {% endblock %} {% if is_granted('ROLE_SETTING_MANAGER') %} {% if category == 's' %} {% set pagename = 'Student Management' | trans %} {% set addBtnTitle = 'Add New Student?' | trans %} {% set addBtnLink = path('add_new_user') %} {% elseif category == 'a' %} {% set pagename = 'Employees Management' | trans %} {% set addBtnTitle = 'Add New Employee?' | trans %} {% set addBtnLink = path('add_new_admin_or_employee') %} {% elseif category == 't' %} {% set pagename = 'Teacher Management' | trans %} {% set addBtnTitle = 'Add New Teacher?' | trans %} {% set addBtnLink = path('add_new_teacher') %} {% else %} {% set pagename = 'User Management' | trans %} {% endif %} {% endif %} {% block MainContent %} {% set otherProfile = app.request.attributes.get('_route') == 'my_profile' ? false : true %} {% set addNewUser = false %} {% if app.request.attributes.get('_route') == 'add_new_user' or app.request.attributes.get('_route') == 'add_new_teacher' or app.request.attributes.get('_route') == 'add_new_admin_or_employee' %} {% set addNewUser = true %} {% endif %} {% set allowedUpdateOrAddRoles = ['ROLE_STUDENT_MANAGER'] %} {% set allowUpdateOrAdd = false %} {% if is_granted(allowedUpdateOrAddRoles) or not otherProfile %} {% set allowUpdateOrAdd = true %} {% endif %}
This Page suppose to add Student Information in Details, You can update or add Student Full Details from this page. This page divided into 8 Steps or Tab:
Warning: Input box behind the Asterik (*) supposed to be filled