<?php

/* customer/custom_field_list.twig */
class __TwigTemplate_6392114732c506382f0bcfb765f30351282a8301e641a3e50f7538576fcc9e20 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\">
      
\t\t\t\t<div class=\"pull-right\"><a href=\"";
        // line 6
        echo (isset($context["add_custom"]) ? $context["add_custom"] : null);
        echo "\" data-toggle=\"tooltip\" title=\"";
        echo (isset($context["button_add_custom"]) ? $context["button_add_custom"] : null);
        echo "\" class=\"btn btn-primary\"><i class=\"fa fa-plus\"></i> ";
        echo (isset($context["button_add_custom"]) ? $context["button_add_custom"] : null);
        echo "</a><a href=\"";
        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>
\t\t\t
        <button type=\"button\" data-toggle=\"tooltip\" title=\"";
        // line 8
        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 10
        echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
        echo "</h1>
      <ul class=\"breadcrumb\">
        ";
        // line 12
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["breadcrumbs"]) ? $context["breadcrumbs"] : null));
        foreach ($context['_seq'] as $context["_key"] => $context["breadcrumb"]) {
            // line 13
            echo "        <li><a href=\"";
            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 15
        echo "      </ul>
    </div>
  </div>
  <div class=\"container-fluid\">
    ";
        // line 19
        if ((isset($context["error_warning"]) ? $context["error_warning"] : null)) {
            // line 20
            echo "    <div class=\"alert alert-danger alert-dismissible\"><i class=\"fa fa-exclamation-circle\"></i> ";
            echo (isset($context["error_warning"]) ? $context["error_warning"] : null);
            echo "
      <button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button>
    </div>
    ";
        }
        // line 24
        echo "    ";
        if ((isset($context["success"]) ? $context["success"] : null)) {
            // line 25
            echo "    <div class=\"alert alert-success alert-dismissible\"><i class=\"fa fa-check-circle\"></i> ";
            echo (isset($context["success"]) ? $context["success"] : null);
            echo "
      <button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button>
    </div>
    ";
        }
        // line 29
        echo "    <div class=\"panel panel-default\">
      <div class=\"panel-heading\">
        <h3 class=\"panel-title\"><i class=\"fa fa-list\"></i> ";
        // line 31
        echo (isset($context["text_list"]) ? $context["text_list"] : null);
        echo "</h3>
      </div>
      <div class=\"panel-body\">
        <form action=\"";
        // line 34
        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 40
        if (((isset($context["sort"]) ? $context["sort"] : null) == "cfd.name")) {
            // line 41
            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 43
            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 44
        echo "</td>
                  <td class=\"text-left\">";
        // line 45
        if (((isset($context["sort"]) ? $context["sort"] : null) == "cf.location")) {
            // line 46
            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 48
            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 49
        echo "</td>
                  <td class=\"text-left\">";
        // line 50
        if (((isset($context["sort"]) ? $context["sort"] : null) == "cf.type")) {
            // line 51
            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 53
            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 54
        echo "</td>
                  <td class=\"text-right\">";
        // line 55
        if (((isset($context["sort"]) ? $context["sort"] : null) == "cf.sort_order")) {
            // line 56
            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 58
            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 59
        echo "</td>
                  <td class=\"text-right\">";
        // line 60
        echo (isset($context["column_action"]) ? $context["column_action"] : null);
        echo "</td>
                </tr>
              </thead>
              <tbody>
                ";
        // line 64
        if ((isset($context["custom_fields"]) ? $context["custom_fields"] : null)) {
            // line 65
            echo "                ";
            $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"]) {
                // line 66
                echo "                <tr>
                  <td class=\"text-center\">";
                // line 67
                if (twig_in_filter($this->getAttribute($context["custom_field"], "custom_field_id", array()), (isset($context["selected"]) ? $context["selected"] : null))) {
                    // line 68
                    echo "                    <input type=\"checkbox\" name=\"selected[]\" value=\"";
                    echo $this->getAttribute($context["custom_field"], "custom_field_id", array());
                    echo "\" checked=\"checked\" />
                    ";
                } else {
                    // line 70
                    echo "                    <input type=\"checkbox\" name=\"selected[]\" value=\"";
                    echo $this->getAttribute($context["custom_field"], "custom_field_id", array());
                    echo "\" />
                    ";
                }
                // line 71
                echo "</td>
                  <td class=\"text-left\">";
                // line 72
                echo $this->getAttribute($context["custom_field"], "name", array());
                echo "</td>
                  <td class=\"text-left\">";
                // line 73
                echo $this->getAttribute($context["custom_field"], "location", array());
                echo "</td>
                  <td class=\"text-left\">";
                // line 74
                echo $this->getAttribute($context["custom_field"], "type", array());
                echo "</td>
                  <td class=\"text-right\">";
                // line 75
                echo $this->getAttribute($context["custom_field"], "sort_order", array());
                echo "</td>
                  
\t\t\t\t<td class=\"text-right\"><a href=\"";
                // line 77
                echo $this->getAttribute($context["custom_field"], "edit_custom", array());
                echo "\" data-toggle=\"tooltip\" title=\"";
                echo (isset($context["button_edit_custom"]) ? $context["button_edit_custom"] : null);
                echo "\" class=\"btn btn-primary\"><i class=\"fa fa-pencil\"></i> ";
                echo (isset($context["button_edit_custom"]) ? $context["button_edit_custom"] : null);
                echo "</a><a href=\"";
                echo $this->getAttribute($context["custom_field"], "edit", array());
                echo "\" data-toggle=\"tooltip\" title=\"";
                echo (isset($context["button_edit"]) ? $context["button_edit"] : null);
                echo "\" class=\"btn btn-primary\"><i class=\"fa fa-pencil\"></i></a></td>
\t\t\t
                </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 81
            echo "                ";
        } else {
            // line 82
            echo "                <tr>
                  <td class=\"text-center\" colspan=\"6\">";
            // line 83
            echo (isset($context["text_no_results"]) ? $context["text_no_results"] : null);
            echo "</td>
                </tr>
                ";
        }
        // line 86
        echo "              </tbody>
            </table>
          </div>
        </form>
        <div class=\"row\">
          <div class=\"col-sm-6 text-left\">";
        // line 91
        echo (isset($context["pagination"]) ? $context["pagination"] : null);
        echo "</div>
          <div class=\"col-sm-6 text-right\">";
        // line 92
        echo (isset($context["results"]) ? $context["results"] : null);
        echo "</div>
        </div>
      </div>
    </div>
  </div>
</div>
";
        // line 98
        echo (isset($context["footer"]) ? $context["footer"] : null);
    }

    public function getTemplateName()
    {
        return "customer/custom_field_list.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  307 => 98,  298 => 92,  294 => 91,  287 => 86,  281 => 83,  278 => 82,  275 => 81,  257 => 77,  252 => 75,  248 => 74,  244 => 73,  240 => 72,  237 => 71,  231 => 70,  225 => 68,  223 => 67,  220 => 66,  215 => 65,  213 => 64,  206 => 60,  203 => 59,  195 => 58,  185 => 56,  183 => 55,  180 => 54,  172 => 53,  162 => 51,  160 => 50,  157 => 49,  149 => 48,  139 => 46,  137 => 45,  134 => 44,  126 => 43,  116 => 41,  114 => 40,  105 => 34,  99 => 31,  95 => 29,  87 => 25,  84 => 24,  76 => 20,  74 => 19,  68 => 15,  57 => 13,  53 => 12,  48 => 10,  41 => 8,  28 => 6,  19 => 1,);
    }
}
/* {{ header }}{{ column_left }}*/
/* <div id="content">*/
/*   <div class="page-header">*/
/*     <div class="container-fluid">*/
/*       */
/* 				<div class="pull-right"><a href="{{ add_custom }}" data-toggle="tooltip" title="{{ button_add_custom }}" class="btn btn-primary"><i class="fa fa-plus"></i> {{ button_add_custom }}</a><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 alert-dismissible"><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 alert-dismissible"><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_custom }}" data-toggle="tooltip" title="{{ button_edit_custom }}" class="btn btn-primary"><i class="fa fa-pencil"></i> {{ button_edit_custom }}</a><a href="{{ custom_field.edit }}" data-toggle="tooltip" title="{{ button_edit }}" class="btn btn-primary"><i class="fa fa-pencil"></i></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 }}*/
