{% extends "OfficeBrainThemeBundle:AdminTheme:base.html.twig" %} {% block breadcrumb %}
  • {{ 'category.category_listing'|trans }}
  • {% endblock breadcrumb %} {% block main_page_title %}

    {{ 'category.category_listing'|trans }}

    {% endblock main_page_title %} {% block header_css %} {{ parent() }} {% endblock header_css %} {% block main_content %}
      {% if categoryData %} {% macro recursiveCategory(categoryData,ignoreData,ob_project_product_management_access_rule,blocked_id) %}
    • {{categoryData.cat_name}}
      {% for key,countryData in country %} {% set checked = "checked" %} {% for key,ignore in ignoreData %} {% if ignore.cat_map_id == categoryData.local_id and ignore.country_id == countryData.id %} {% set checked = "unchecked" %} {% endif %} {% endfor %} {% set ajaxUnCheckedURL = path('officebrain_bundle_add_in_category_ignore') %} {% set ajaxCheckedURL = path('officebrain_bundle_remove_from_category_ignore') %} {% set country_disabled="" %} {% if ob_project_product_management_access_rule.option.category.option.country_status.status != 1 %} {% set country_disabled="disabled" %} {% endif %}
      {% endfor %}
      {% if ob_project_product_management_access_rule.option.category.option.edit.status == 1 %} {% endif %} {% if ob_project_product_management_access_rule.option.category.option.delete.status == 1 %} {% if categoryData.child is not defined %} {% if categoryData.status is defined %} {% set _status = (categoryData.status=='Active') ? 'Active' : 'Inactive' %} {% if blocked_id==categoryData.pms_id %} {% else %} {% endif %} {% endif %} {% endif %} {% endif %}
      {% set imageSrc ='' %} {% if categoryData.image != '' and categoryData.image is defined %} {% set imageSrc = client_upload_base_url~'category/'~categoryData.image %} {% else %} {% set imageSrc = client_images_dir_url~'no-image.png' %} {% endif %}
      {% if categoryData.child is defined %}
        {% for children in categoryData.child %} {{ _self.recursiveCategory(children,ignoreData,ob_project_product_management_access_rule,blocked_id) }} {% endfor %}
      {% endif %} {% if categoryData.parent_id==0 %}
       
      {% endif %}
    • {% endmacro %} {% if categoryData %} {% for category in categoryData %} {{ _self.recursiveCategory(category,ignoreData,ob_project_product_management_access_rule,blocked_id) }} {% endfor %} {% endif %} {% else %} {{ 'category.no_record_found'|trans }} {% endif %}
    {% block javascripts %} {% endblock javascripts %} {% endblock main_content %}