{% extends '::baseAjax.html.twig' %} {% block ajax_body %}
{% set i=1 %} {% if page > 2 %} {% set i = ((page-1)*records_per_page)+1 %} {% elseif page > 1 %} {% set i = ((page)+records_per_page)-1 %} {% endif %} {% if pagination.items is defined and pagination.items|length > 0 %} {% for items in pagination.items %} {% endfor %} {% else %} {% endif %}
{{ 'admin.s_no'|trans }} {{ 'admin.form.rule_master.rule_name.label'|trans }} {#{{ knp_pagination_sortable(data.pagination, 'admin.form.rule_master.rule_name.label'|trans, 'ruleName')|raw }}{% if data.sort_type is defined and data.sort_type == 'asc' and data.sort_by=='ruleName' %} {% else %} {% endif %}#} {{ 'admin.form.rule_master.rule_type.label'|trans }} {#{{ knp_pagination_sortable(data.pagination, 'admin.form.rule_master.rule_type.label'|trans, 'ruleType')|raw }}{% if data.sort_type is defined and data.sort_type == 'asc' and data.sort_by=='ruleType' %} {% else %} {% endif %}#} {{ 'admin.status.status'|trans }} {{ 'admin.action'|trans }}
{{ loop.index }} {{items.ruleName}} {{items.ruleType}} {% if(items.status==0) %} {% elseif(items.status==1) %} {% endif %} {% if (ob_project_promo_discount_access_rule.rule_master.option.rule_master_view.status == 1) %} {% endif %} {% if (ob_project_promo_discount_access_rule.rule_master.option.rule_master_edit.status == 1) %} {# #} {% endif %} {% if (ob_project_promo_discount_access_rule.rule_master.option.rule_master_delete.status == 1) %} {% endif %} {% if ob_project_promo_discount_access_rule.rule_mapping.status == 1 %} {% endif %}
{{'admin.no_record'|trans }}
{% endblock ajax_body %}