<?php

/* extension/module/xtensions/xcustom_field_list.twig */
class __TwigTemplate_72ab0f9e6e2c74862864a133fe3dacec735499e2878fb116db72d795f7e5ab66 extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = array(
        );
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 1
        echo (isset($context["header"]) ? $context["header"] : null);
        echo (isset($context["column_left"]) ? $context["column_left"] : null);
        echo " 
<div id=\"content\">
  <div class=\"page-header\">
    <div class=\"container-fluid\">
      <div class=\"pull-right\"><a href=\"";
        // line 5
        echo (isset($context["add"]) ? $context["add"] : null);
        echo "\" data-toggle=\"tooltip\" title=\"";
        echo (isset($context["button_add"]) ? $context["button_add"] : null);
        echo "\" class=\"btn btn-primary\"><i class=\"fa fa-plus\"></i></a>
        <button type=\"button\" data-toggle=\"tooltip\" title=\"";
        // line 6
        echo (isset($context["button_delete"]) ? $context["button_delete"] : null);
        echo "\" class=\"btn btn-danger\" onclick=\"confirm('";
        echo (isset($context["text_confirm"]) ? $context["text_confirm"] : null);
        echo "') ? \$('#form-custom-field').submit() : false;\"><i class=\"fa fa-trash-o\"></i></button>
      </div>
      <h1>";
        // line 8
        echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
        echo "</h1>
      <ul class=\"breadcrumb\">
        ";
        // line 10
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["breadcrumbs"]) ? $context["breadcrumbs"] : null));
        foreach ($context['_seq'] as $context["_key"] => $context["breadcrumb"]) {
            echo " 
        <li><a href=\"";
            // line 11
            echo $this->getAttribute($context["breadcrumb"], "href", array());
            echo "\">";
            echo $this->getAttribute($context["breadcrumb"], "text", array());
            echo "</a></li>
        ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['breadcrumb'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 12
        echo " 
      </ul>
    </div>
  </div>
  <div class=\"container-fluid\">
    ";
        // line 17
        if ((isset($context["error_warning"]) ? $context["error_warning"] : null)) {
            echo " 
    <div class=\"alert alert-danger\"><i class=\"fa fa-exclamation-circle\"></i> ";
            // line 18
            echo (isset($context["error_warning"]) ? $context["error_warning"] : null);
            echo " 
      <button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button>
    </div>
    ";
        }
        // line 21
        echo " 
    ";
        // line 22
        if ((isset($context["success"]) ? $context["success"] : null)) {
            echo " 
    <div class=\"alert alert-success\"><i class=\"fa fa-check-circle\"></i> ";
            // line 23
            echo (isset($context["success"]) ? $context["success"] : null);
            echo " 
      <button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button>
    </div>
    ";
        }
        // line 26
        echo " 
    <div class=\"panel panel-default\">
      <div class=\"panel-heading\"><h3 class=\"panel-title\"><i class=\"fa fa-list\"></i> ";
        // line 28
        echo (isset($context["text_list"]) ? $context["text_list"] : null);
        echo "</h3></div>
      <div class=\"panel-body\">
        <form action=\"";
        // line 30
        echo (isset($context["delete"]) ? $context["delete"] : null);
        echo "\" method=\"post\" enctype=\"multipart/form-data\" id=\"form-custom-field\">
          <div class=\"table-responsive\">
            <table class=\"table table-bordered table-hover\">
              <thead>
                <tr>
                  <td style=\"width: 1px;\" class=\"text-center\"><input type=\"checkbox\" onclick=\"\$('input[name*=\\'selected\\']').prop('checked', this.checked);\" /></td>
                  <td class=\"text-left\">";
        // line 36
        if (((isset($context["sort"]) ? $context["sort"] : null) == "cfd.name")) {
            // line 37
            echo "                    <a href=\"";
            echo (isset($context["sort_name"]) ? $context["sort_name"] : null);
            echo "\" class=\"";
            echo twig_lower_filter($this->env, (isset($context["order"]) ? $context["order"] : null));
            echo "\">";
            echo (isset($context["column_name"]) ? $context["column_name"] : null);
            echo "</a>
                    ";
        } else {
            // line 39
            echo "                    <a href=\"";
            echo (isset($context["sort_name"]) ? $context["sort_name"] : null);
            echo "\">";
            echo (isset($context["column_name"]) ? $context["column_name"] : null);
            echo "</a>
                    ";
        }
        // line 40
        echo "</td>
                  <td class=\"text-left\">";
        // line 41
        if (((isset($context["sort"]) ? $context["sort"] : null) == "cf.location")) {
            // line 42
            echo "                    <a href=\"";
            echo (isset($context["sort_location"]) ? $context["sort_location"] : null);
            echo "\" class=\"";
            echo twig_lower_filter($this->env, (isset($context["order"]) ? $context["order"] : null));
            echo "\">";
            echo (isset($context["column_location"]) ? $context["column_location"] : null);
            echo "</a>
                    ";
        } else {
            // line 44
            echo "                    <a href=\"";
            echo (isset($context["sort_location"]) ? $context["sort_location"] : null);
            echo "\">";
            echo (isset($context["column_location"]) ? $context["column_location"] : null);
            echo "</a>
                    ";
        }
        // line 45
        echo "</td>
                  <td class=\"text-left\">";
        // line 46
        if (((isset($context["sort"]) ? $context["sort"] : null) == "cf.type")) {
            // line 47
            echo "                    <a href=\"";
            echo (isset($context["sort_type"]) ? $context["sort_type"] : null);
            echo "\" class=\"";
            echo twig_lower_filter($this->env, (isset($context["order"]) ? $context["order"] : null));
            echo "\">";
            echo (isset($context["column_type"]) ? $context["column_type"] : null);
            echo "</a>
                    ";
        } else {
            // line 49
            echo "                    <a href=\"";
            echo (isset($context["sort_type"]) ? $context["sort_type"] : null);
            echo "\">";
            echo (isset($context["column_type"]) ? $context["column_type"] : null);
            echo "</a>
                    ";
        }
        // line 50
        echo "</td>
                  <td class=\"text-right\">";
        // line 51
        if (((isset($context["sort"]) ? $context["sort"] : null) == "cf.sort_order")) {
            // line 52
            echo "                    <a href=\"";
            echo (isset($context["sort_sort_order"]) ? $context["sort_sort_order"] : null);
            echo "\" class=\"";
            echo twig_lower_filter($this->env, (isset($context["order"]) ? $context["order"] : null));
            echo "\">";
            echo (isset($context["column_sort_order"]) ? $context["column_sort_order"] : null);
            echo "</a>
                    ";
        } else {
            // line 54
            echo "                    <a href=\"";
            echo (isset($context["sort_sort_order"]) ? $context["sort_sort_order"] : null);
            echo "\">";
            echo (isset($context["column_sort_order"]) ? $context["column_sort_order"] : null);
            echo "</a>
                    ";
        }
        // line 55
        echo "</td>
                  <td class=\"text-right\">";
        // line 56
        echo (isset($context["column_action"]) ? $context["column_action"] : null);
        echo "</td>
                </tr>
              </thead>
              <tbody>
                ";
        // line 60
        if ((isset($context["custom_fields"]) ? $context["custom_fields"] : null)) {
            echo " 
                ";
            // line 61
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["custom_fields"]) ? $context["custom_fields"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["custom_field"]) {
                echo " 
                <tr>
                  <td class=\"text-center\">";
                // line 63
                if (twig_in_filter($this->getAttribute($context["custom_field"], "custom_field_id", array()), (isset($context["selected"]) ? $context["selected"] : null))) {
                    echo " 
                    <input type=\"checkbox\" name=\"selected[]\" value=\"";
                    // line 64
                    echo $this->getAttribute($context["custom_field"], "custom_field_id", array());
                    echo "\" checked=\"checked\" />
                    ";
                } else {
                    // line 65
                    echo " 
                    <input type=\"checkbox\" name=\"selected[]\" value=\"";
                    // line 66
                    echo $this->getAttribute($context["custom_field"], "custom_field_id", array());
                    echo "\" />
                    ";
                }
                // line 67
                echo "</td>
                  <td class=\"text-left\">";
                // line 68
                echo $this->getAttribute($context["custom_field"], "name", array());
                echo "</td>
                  <td class=\"text-left\">";
                // line 69
                echo $this->getAttribute($context["custom_field"], "location", array());
                echo "</td>
                  <td class=\"text-left\">";
                // line 70
                echo $this->getAttribute($context["custom_field"], "type", array());
                echo "</td>
                  <td class=\"text-right\">";
                // line 71
                echo $this->getAttribute($context["custom_field"], "sort_order", array());
                echo "</td>
                  <td class=\"text-right\"><a href=\"";
                // line 72
                echo $this->getAttribute($context["custom_field"], "edit", array());
                echo "\" class=\"btn btn-primary\"><i class=\"fa fa-pencil\"></i> ";
                echo (isset($context["button_edit"]) ? $context["button_edit"] : null);
                echo "</a></td>
                </tr>
                ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['custom_field'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 74
            echo " 
                ";
        } else {
            // line 75
            echo " 
                <tr>
                  <td class=\"text-center\" colspan=\"6\">";
            // line 77
            echo (isset($context["text_no_results"]) ? $context["text_no_results"] : null);
            echo "</td>
                </tr>
                ";
        }
        // line 79
        echo " 
              </tbody>
            </table>
          </div>
        </form>
\t\t
        <div class=\"row\">
          <div class=\"col-sm-6 text-left\">";
        // line 86
        echo (isset($context["pagination"]) ? $context["pagination"] : null);
        echo "</div>
          <div class=\"col-sm-6 text-right\">";
        // line 87
        echo (isset($context["results"]) ? $context["results"] : null);
        echo "</div>
        </div>
      </div>
    </div>
  </div>
</div>
";
        // line 93
        echo (isset($context["footer"]) ? $context["footer"] : null);
        echo " 
";
    }

    public function getTemplateName()
    {
        return "extension/module/xtensions/xcustom_field_list.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  304 => 93,  295 => 87,  291 => 86,  282 => 79,  276 => 77,  272 => 75,  268 => 74,  257 => 72,  253 => 71,  249 => 70,  245 => 69,  241 => 68,  238 => 67,  233 => 66,  230 => 65,  225 => 64,  221 => 63,  214 => 61,  210 => 60,  203 => 56,  200 => 55,  192 => 54,  182 => 52,  180 => 51,  177 => 50,  169 => 49,  159 => 47,  157 => 46,  154 => 45,  146 => 44,  136 => 42,  134 => 41,  131 => 40,  123 => 39,  113 => 37,  111 => 36,  102 => 30,  97 => 28,  93 => 26,  86 => 23,  82 => 22,  79 => 21,  72 => 18,  68 => 17,  61 => 12,  51 => 11,  45 => 10,  40 => 8,  33 => 6,  27 => 5,  19 => 1,);
    }
}
/* {{ header }}{{ column_left }} */
/* <div id="content">*/
/*   <div class="page-header">*/
/*     <div class="container-fluid">*/
/*       <div class="pull-right"><a href="{{ add }}" data-toggle="tooltip" title="{{ button_add }}" class="btn btn-primary"><i class="fa fa-plus"></i></a>*/
/*         <button type="button" data-toggle="tooltip" title="{{ button_delete }}" class="btn btn-danger" onclick="confirm('{{ text_confirm }}') ? $('#form-custom-field').submit() : false;"><i class="fa fa-trash-o"></i></button>*/
/*       </div>*/
/*       <h1>{{ heading_title }}</h1>*/
/*       <ul class="breadcrumb">*/
/*         {% for breadcrumb in breadcrumbs %} */
/*         <li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>*/
/*         {% endfor %} */
/*       </ul>*/
/*     </div>*/
/*   </div>*/
/*   <div class="container-fluid">*/
/*     {% if error_warning  %} */
/*     <div class="alert alert-danger"><i class="fa fa-exclamation-circle"></i> {{ error_warning }} */
/*       <button type="button" class="close" data-dismiss="alert">&times;</button>*/
/*     </div>*/
/*     {% endif %} */
/*     {% if success  %} */
/*     <div class="alert alert-success"><i class="fa fa-check-circle"></i> {{ success }} */
/*       <button type="button" class="close" data-dismiss="alert">&times;</button>*/
/*     </div>*/
/*     {% endif %} */
/*     <div class="panel panel-default">*/
/*       <div class="panel-heading"><h3 class="panel-title"><i class="fa fa-list"></i> {{ text_list }}</h3></div>*/
/*       <div class="panel-body">*/
/*         <form action="{{ delete }}" method="post" enctype="multipart/form-data" id="form-custom-field">*/
/*           <div class="table-responsive">*/
/*             <table class="table table-bordered table-hover">*/
/*               <thead>*/
/*                 <tr>*/
/*                   <td style="width: 1px;" class="text-center"><input type="checkbox" onclick="$('input[name*=\'selected\']').prop('checked', this.checked);" /></td>*/
/*                   <td class="text-left">{% if sort == 'cfd.name' %}*/
/*                     <a href="{{ sort_name }}" class="{{ order|lower }}">{{ column_name }}</a>*/
/*                     {% else %}*/
/*                     <a href="{{ sort_name }}">{{ column_name }}</a>*/
/*                     {% endif %}</td>*/
/*                   <td class="text-left">{% if sort == 'cf.location' %}*/
/*                     <a href="{{ sort_location }}" class="{{ order|lower }}">{{ column_location }}</a>*/
/*                     {% else %}*/
/*                     <a href="{{ sort_location }}">{{ column_location }}</a>*/
/*                     {% endif %}</td>*/
/*                   <td class="text-left">{% if sort == 'cf.type' %}*/
/*                     <a href="{{ sort_type }}" class="{{ order|lower }}">{{ column_type }}</a>*/
/*                     {% else %}*/
/*                     <a href="{{ sort_type }}">{{ column_type }}</a>*/
/*                     {% endif %}</td>*/
/*                   <td class="text-right">{% if sort == 'cf.sort_order' %}*/
/*                     <a href="{{ sort_sort_order }}" class="{{ order|lower }}">{{ column_sort_order }}</a>*/
/*                     {% else %}*/
/*                     <a href="{{ sort_sort_order }}">{{ column_sort_order }}</a>*/
/*                     {% endif %}</td>*/
/*                   <td class="text-right">{{ column_action }}</td>*/
/*                 </tr>*/
/*               </thead>*/
/*               <tbody>*/
/*                 {% if custom_fields  %} */
/*                 {% for custom_field in custom_fields %} */
/*                 <tr>*/
/*                   <td class="text-center">{% if custom_field.custom_field_id in selected  %} */
/*                     <input type="checkbox" name="selected[]" value="{{ custom_field.custom_field_id }}" checked="checked" />*/
/*                     {% else %} */
/*                     <input type="checkbox" name="selected[]" value="{{ custom_field.custom_field_id }}" />*/
/*                     {% endif %}</td>*/
/*                   <td class="text-left">{{ custom_field.name }}</td>*/
/*                   <td class="text-left">{{ custom_field.location }}</td>*/
/*                   <td class="text-left">{{ custom_field.type }}</td>*/
/*                   <td class="text-right">{{ custom_field.sort_order }}</td>*/
/*                   <td class="text-right"><a href="{{ custom_field.edit }}" class="btn btn-primary"><i class="fa fa-pencil"></i> {{ button_edit }}</a></td>*/
/*                 </tr>*/
/*                 {% endfor %} */
/*                 {% else %} */
/*                 <tr>*/
/*                   <td class="text-center" colspan="6">{{ text_no_results }}</td>*/
/*                 </tr>*/
/*                 {% endif %} */
/*               </tbody>*/
/*             </table>*/
/*           </div>*/
/*         </form>*/
/* 		*/
/*         <div class="row">*/
/*           <div class="col-sm-6 text-left">{{ pagination }}</div>*/
/*           <div class="col-sm-6 text-right">{{ results }}</div>*/
/*         </div>*/
/*       </div>*/
/*     </div>*/
/*   </div>*/
/* </div>*/
/* {{ footer }} */
/* */
