{% extends 'admin/admin_base_new.html.twig' %} {% import "admin/Macros/Buttons/_button.html.twig" as button %} {% if entity is not defined %}{% set entity = {} %}{% endif %} {% set isVariant = entity is empty ? false : entity.isVariant %} {% set categories = getCategoryList({'mainCategory': '1', 'isDel': '0'}) %} {% set page_title = "Kategoriler" %} {% set maxFilesLength = 5 %} {% block title %}{{ page_title }}{% endblock %} {% block stylesheets %} {% endblock %} {% block breadcrumb %} {{ include('admin/Common/_breadcrumb.html.twig', { title: page_title, indexPath: path('admin_category_index'), paths: [ {title: page_title, path: path('admin_category_index')} ] }) }} {% endblock %} {% block body %}
Yeni Oluştur {% if categories|length > 0 %}
{% include "admin/Main/Product/Category/_list.html.twig" %}
{% endif %}

{% if category|default %} {{ category.name }} {% else %} Yeni Kategori {% endif %}

{% include "admin/Main/Product/Category/_form.html.twig" %}
{% endblock %} {% block javascripts %} {% endblock %}