{# DOCS: This page is used to edit sections of custom fields and custom fields. If user request to edit section of custom fields then custom field edit view will be hide. & If user request to edit custom field then sections of custom field will be hide. #} {% extends 'base.html.twig' %} {% block title %}{{ 'Add Custom Field'|trans }}{% endblock %} {% block BeforeAnyCSSFile %} {% for file in encore_entry_css_files('select2__init') %} {% endfor %} {% endblock %} {% set pagename = 'Custom Field Section?' | trans %} {% block MainContent %} {# if user want's to edit the sections and server send valid section data then server it#} {% if app.request.attributes.get('_route') == 'add_custom_field_section' %}

{{ fieldSectionForEdit.id is empty ? 'Add new section'|trans : 'Update section'|trans }}

{# section name #}
{# section details #}
{% if fieldSectionForEdit.id is not empty %} {{ 'Back to list'|trans }} {% endif %}
{% else %} {# Custom field list #}

{{ fieldDetails.id is empty ? 'Add new field'|trans : 'Update field'|trans }}

{% include "CustomFields/ajaxPatches/addNewField.html.twig" with {'customFieldForm':customFieldForm,'fieldDetails':fieldDetails,'fieldSections': fieldSections } %}
{% endif %} {% endblock %} {% block ExtraJsFIles %} {% for file in encore_entry_js_files('addCustomFields') %} {% endfor %} {% endblock %} {% block documentation %}

Custom fields are designed because, many schools has different criteria to ask information from students. so this application is asking basic information from the Students, Teachers & Employees
Here we are having of all the Custom fields, All custom fields are must be in the Section, try to add new section

While adding or editing a Custom Field, System is asking following information

{% endblock %}