{#
#} {{ form_errors(form) }} {{ form_start(form, {'attr': {'novalidate': 'novalidate', 'class': 'form d-flex flex-column flex-lg-row'}}) }}

General

{{ form_label(form.name, 'Category Name', {'label_attr': {'class': 'required form-label'}}) }} {# #} {{ form_widget(form.name, {'attr': {'class': 'form-control mb-2', 'placeholder': 'Category name'}})}}
{{ form_errors(form.name) }}
A category name is required and recommended to be unique.
{{ form_label(form.description, 'Description', {'label_attr': {'class': 'required form-label'}}) }}
{{ form_widget(form.description, {'attr': {'style': 'display:none;'}}) }}
{# {{ form_widget(form.description, {'attr': {'class': 'form-control mb-2'}} )}} #}
{{ form_errors(form.description) }}
Set a description to the category for better visibility.
{{ form_label(form.category, 'Select a parent category', {'label_attr': {'class': 'required form-label'}}) }} {{ form_widget(form.category, {'attr': {'class': 'form-select mb-2', 'data-control': 'select2', 'placeholder': 'Select a category'}})}}
{{ form_errors(form.category) }}
Select a category as parent cattegory.
{{ form_label(form.isActive, 'Status', {'label_attr': {'class': 'required form-label'}}) }} {{ form_widget(form.isActive, {'attr': {'class': 'form-select mb-2 block w-full px-3 text-xs font-normal text-content3 bg-white bg-clip-padding bg-no-repeat border border-border-light rounded-5 transition ease-in-out m-0 min-w-[150px] py-[9px] dark:border-border-dark dark:bg-sidebar-dark2', 'placeholder': 'Select an option'}} )}}
{{ form_errors(form.isActive) }}
Set the category status.
{{ form_label(form.scheduled_date, 'Select publishing date and time', {'label_attr': {'class': 'form-label'}}) }} {{ form_widget(form.scheduled_date, {'attr': {'id': 'kt_ecommerce_add_category_status_datepicker', 'class': 'form-control', 'placeholder': 'Pick date & time'}})}}
{{ form_errors(form.category) }}

Meta Options

{{ form_label(form.meta_title, 'Meta Tag Title', {'label_attr': {'class': 'form-label'}}) }} {# #}{{ form_widget(form.meta_title, {'attr': {'class': 'form-control mb-2', 'placeholder': 'Meta tag Title'}} )}}
{{ form_errors(form.meta_title) }}
Set a meta tag title. Recommended to be simple and precise keywords.
{{ form_label(form.meta_description, 'Meta Tag Description', {'label_attr': {'class': 'form-label'}}) }} {#
#}{{ form_widget(form.meta_description, {'attr': {'class': 'form-control mb-2'}} )}}
{{ form_errors(form.meta_description) }}
Set a meta tag description to the category for increased SEO ranking.
Cancel {% if category.uuid is defined %} {# Delete #} {% endif %}
{{ form_end(form) }} {% if category.uuid is defined %} {% endif %}