<?php

/* extension/module/xtensions/xcustom_field_form.twig */
class __TwigTemplate_3049c561662fa03ed3d7b5f8adf3636f3d191f5b5d2808ed283606252e608a73 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\">
        <button type=\"submit\" form=\"form-custom-field\" data-toggle=\"tooltip\" title=\"";
        // line 6
        echo (isset($context["button_save"]) ? $context["button_save"] : null);
        echo "\" class=\"btn btn-primary\"><i class=\"fa fa-save\"></i></button>
        <a href=\"";
        // line 7
        echo (isset($context["cancel"]) ? $context["cancel"] : null);
        echo "\" data-toggle=\"tooltip\" title=\"";
        echo (isset($context["button_cancel"]) ? $context["button_cancel"] : null);
        echo "\" class=\"btn btn-default\"><i class=\"fa fa-reply\"></i></a></div>
        
      <h1>";
        // line 9
        echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
        echo "</h1>
      <ul class=\"breadcrumb\">
        ";
        // line 11
        $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 12
            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 13
        echo " 
      </ul>
    </div>
  </div>
  <div class=\"container-fluid\">
    ";
        // line 18
        if (array_key_exists("error_warning", $context)) {
            echo " 
    <div class=\"alert alert-danger\"><i class=\"fa fa-exclamation-circle\"></i> ";
            // line 19
            echo (isset($context["error_warning"]) ? $context["error_warning"] : null);
            echo " 
      <button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button>
    </div>
    ";
        }
        // line 22
        echo " 
    <div class=\"panel panel-default\">
      <div class=\"panel-heading\">
        <h3 class=\"panel-title\"><i class=\"fa fa-pencil\"></i> ";
        // line 25
        echo (isset($context["text_form"]) ? $context["text_form"] : null);
        echo "</h3>
        
      </div>
      <div class=\"panel-body\">
        <form action=\"";
        // line 29
        echo (isset($context["action"]) ? $context["action"] : null);
        echo "\" method=\"post\" enctype=\"multipart/form-data\" id=\"form-custom-field\" class=\"form-horizontal\">
        <input type=\"hidden\" name=\"xsort_order\" value=\"";
        // line 30
        echo (isset($context["xsort_order"]) ? $context["xsort_order"] : null);
        echo "\" />
          <div class=\"form-group required\">
            <label class=\"col-sm-3 control-label\">";
        // line 32
        echo (isset($context["entry_name"]) ? $context["entry_name"] : null);
        echo "</label>
            <div class=\"col-sm-9\">
              ";
        // line 34
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["languages"]) ? $context["languages"] : null));
        foreach ($context['_seq'] as $context["_key"] => $context["language"]) {
            echo " 
              <div class=\"input-group\"><span class=\"input-group-addon\"><img src=\"language/";
            // line 35
            echo $this->getAttribute($context["language"], "code", array());
            echo "/";
            echo $this->getAttribute($context["language"], "code", array());
            echo ".png\" title=\"";
            echo $this->getAttribute($context["language"], "name", array());
            echo "\" /></span>
                <input type=\"text\" name=\"custom_field_description[";
            // line 36
            echo $this->getAttribute($context["language"], "language_id", array());
            echo "][name]\" value=\"";
            echo (($this->getAttribute((isset($context["custom_field_description"]) ? $context["custom_field_description"] : null), $this->getAttribute($context["language"], "language_id", array()), array(), "array", true, true)) ? ($this->getAttribute($this->getAttribute((isset($context["custom_field_description"]) ? $context["custom_field_description"] : null), $this->getAttribute($context["language"], "language_id", array()), array(), "array"), "name", array())) : (""));
            echo "\" placeholder=\"";
            echo (isset($context["entry_name"]) ? $context["entry_name"] : null);
            echo "\" class=\"form-control\" />
              </div>
              ";
            // line 38
            if ($this->getAttribute((isset($context["error_name"]) ? $context["error_name"] : null), $this->getAttribute($context["language"], "language_id", array()), array(), "array", true, true)) {
                echo " 
              <div class=\"text-danger\">";
                // line 39
                echo $this->getAttribute((isset($context["error_name"]) ? $context["error_name"] : null), $this->getAttribute($context["language"], "language_id", array()), array(), "array");
                echo "</div>
              ";
            }
            // line 40
            echo " 
              ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['language'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 41
        echo " 
            </div>
          </div>
          <div class=\"form-group required\">
            <label class=\"col-sm-3 control-label\" for=\"input-identifier\"><span data-toggle=\"tooltip\" title=\"";
        // line 45
        echo (isset($context["entry_identifier_help"]) ? $context["entry_identifier_help"] : null);
        echo "\">";
        echo (isset($context["entry_identifier"]) ? $context["entry_identifier"] : null);
        echo "</span></label>
            <div class=\"col-sm-9\">
              <input type=\"text\" name=\"identifier\" value=\"";
        // line 47
        echo (isset($context["identifier"]) ? $context["identifier"] : null);
        echo "\" placeholder=\"";
        echo (isset($context["entry_identifier"]) ? $context["entry_identifier"] : null);
        echo "\" id=\"input-identifier\" class=\"form-control\" />
              ";
        // line 48
        if (array_key_exists("error_identifier", $context)) {
            echo " 
              <div class=\"text-danger\">";
            // line 49
            echo (isset($context["error_identifier"]) ? $context["error_identifier"] : null);
            echo "</div>
              ";
        }
        // line 50
        echo " 
            </div>
          </div>
          <div class=\"form-group\">
            <label class=\"col-sm-3 control-label\">";
        // line 54
        echo (isset($context["entry_sort_order"]) ? $context["entry_sort_order"] : null);
        echo "</label>
            <div class=\"col-sm-9\">
              <a href=\"";
        // line 56
        echo (isset($context["best_checkout"]) ? $context["best_checkout"] : null);
        echo "\" target=\"_newtab\" class=\"btn btn-info\">Change from Best checkout module</a>
            </div>
          </div>
          <div class=\"form-group\">
            <label class=\"col-sm-3 control-label\" for=\"input-mask\"><span data-toggle=\"tooltip\" title=\"";
        // line 60
        echo (isset($context["entry_mask_help"]) ? $context["entry_mask_help"] : null);
        echo "\">";
        echo (isset($context["entry_mask"]) ? $context["entry_mask"] : null);
        echo "</span></label>
            <div class=\"col-sm-9\">
              <input type=\"text\" name=\"mask\" value=\"";
        // line 62
        echo (isset($context["mask"]) ? $context["mask"] : null);
        echo "\" placeholder=\"";
        echo (isset($context["entry_mask"]) ? $context["entry_mask"] : null);
        echo "\" id=\"input-mask\" class=\"form-control\" />
            </div>
          </div>
          <div class=\"form-group\">
            <label class=\"col-sm-3 control-label\">";
        // line 66
        echo (isset($context["entry_customer_group"]) ? $context["entry_customer_group"] : null);
        echo "</label>
            <div class=\"col-sm-9\">
              ";
        // line 68
        $context["customer_group_row"] = 0;
        echo " 
              ";
        // line 69
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["customer_groups"]) ? $context["customer_groups"] : null));
        foreach ($context['_seq'] as $context["_key"] => $context["customer_group"]) {
            echo " 
              <div class=\"checkbox\">
                <label>
                  ";
            // line 72
            if (twig_in_filter($this->getAttribute($context["customer_group"], "customer_group_id", array()), (isset($context["custom_field_customer_group"]) ? $context["custom_field_customer_group"] : null))) {
                echo " 
                  <input type=\"checkbox\" name=\"custom_field_customer_group[";
                // line 73
                echo (isset($context["customer_group_row"]) ? $context["customer_group_row"] : null);
                echo "][customer_group_id]\" value=\"";
                echo $this->getAttribute($context["customer_group"], "customer_group_id", array());
                echo "\" checked=\"checked\" />
                  ";
                // line 74
                echo $this->getAttribute($context["customer_group"], "name", array());
                echo " 
                  ";
            } else {
                // line 75
                echo " 
                  <input type=\"checkbox\" name=\"custom_field_customer_group[";
                // line 76
                echo (isset($context["customer_group_row"]) ? $context["customer_group_row"] : null);
                echo "][customer_group_id]\" value=\"";
                echo $this->getAttribute($context["customer_group"], "customer_group_id", array());
                echo "\" />
                  ";
                // line 77
                echo $this->getAttribute($context["customer_group"], "name", array());
                echo " 
                  ";
            }
            // line 78
            echo " 
                </label>
              </div>
              ";
            // line 81
            $context["customer_group_row"] = ((isset($context["customer_group_row"]) ? $context["customer_group_row"] : null) + 1);
            echo " 
              ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['customer_group'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 82
        echo " 
            </div>
          </div>          
          <div class=\"form-group\">
            <label class=\"col-sm-3 control-label\">";
        // line 86
        echo (isset($context["entry_required"]) ? $context["entry_required"] : null);
        echo "</label>
            <div class=\"col-sm-9\">
              ";
        // line 88
        $context["customer_group_row"] = 0;
        echo " 
              ";
        // line 89
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["customer_groups"]) ? $context["customer_groups"] : null));
        foreach ($context['_seq'] as $context["_key"] => $context["customer_group"]) {
            echo " 
              <div class=\"checkbox\">
                <label>
                  ";
            // line 92
            if (twig_in_filter($this->getAttribute($context["customer_group"], "customer_group_id", array()), (isset($context["custom_field_required"]) ? $context["custom_field_required"] : null))) {
                echo " 
                  <input type=\"checkbox\" name=\"custom_field_customer_group[";
                // line 93
                echo (isset($context["customer_group_row"]) ? $context["customer_group_row"] : null);
                echo "][required]\" value=\"";
                echo $this->getAttribute($context["customer_group"], "customer_group_id", array());
                echo "\" checked=\"checked\" />
                  ";
                // line 94
                echo $this->getAttribute($context["customer_group"], "name", array());
                echo " 
                  ";
            } else {
                // line 95
                echo " 
                  <input type=\"checkbox\" name=\"custom_field_customer_group[";
                // line 96
                echo (isset($context["customer_group_row"]) ? $context["customer_group_row"] : null);
                echo "][required]\" value=\"";
                echo $this->getAttribute($context["customer_group"], "customer_group_id", array());
                echo "\" />
                  ";
                // line 97
                echo $this->getAttribute($context["customer_group"], "name", array());
                echo " 
                  ";
            }
            // line 98
            echo " 
                </label>
              </div>
              ";
            // line 101
            $context["customer_group_row"] = ((isset($context["customer_group_row"]) ? $context["customer_group_row"] : null) + 1);
            echo " 
              ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['customer_group'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 102
        echo " 
            </div>
          </div>
          <div class=\"form-group\" id=\"display-validation\">
            <label class=\"col-sm-3 control-label\" for=\"input-validation\"><span data-toggle=\"tooltip\" title=\"";
        // line 106
        echo (isset($context["help_regex"]) ? $context["help_regex"] : null);
        echo "\">";
        echo (isset($context["entry_validation"]) ? $context["entry_validation"] : null);
        echo "</span></label>
            <div class=\"col-sm-9\">
              <input type=\"text\" name=\"validation\" id=\"input-validation\" value=\"";
        // line 108
        echo (isset($context["validation"]) ? $context["validation"] : null);
        echo "\" placeholder=\"";
        echo (isset($context["text_regex"]) ? $context["text_regex"] : null);
        echo "\"  class=\"form-control\"/>
            </div>
          </div>
          <div class=\"form-group\">
            <label class=\"col-sm-3 control-label\" for=\"input-regional-validation\"><span data-toggle=\"tooltip\" title=\"";
        // line 112
        echo (isset($context["entry_regional_validation_help"]) ? $context["entry_regional_validation_help"] : null);
        echo "\">";
        echo (isset($context["entry_regional_validation"]) ? $context["entry_regional_validation"] : null);
        echo "</span></label>
            <div class=\"col-sm-9\">
              <select name=\"regional_validation\" id=\"input-regional-validation\" class=\"form-control\">
              ";
        // line 115
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["regional_validations"]) ? $context["regional_validations"] : null));
        foreach ($context['_seq'] as $context["key"] => $context["text"]) {
            // line 116
            echo "              <option value=\"";
            echo $context["key"];
            echo "\" ";
            echo ((((isset($context["regional_validation"]) ? $context["regional_validation"] : null) == $context["key"])) ? ("selected=\"selected\"") : (""));
            echo ">";
            echo $context["text"];
            echo "</option>
              ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['key'], $context['text'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 118
        echo "              </select>              
            </div>
          </div>
          <div class=\"form-group required\">
            <label class=\"col-sm-3 control-label\">";
        // line 122
        echo (isset($context["entry_error"]) ? $context["entry_error"] : null);
        echo "</label>
            <div class=\"col-sm-9\">
              ";
        // line 124
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["languages"]) ? $context["languages"] : null));
        foreach ($context['_seq'] as $context["_key"] => $context["language"]) {
            echo " 
              <div class=\"input-group\"><span class=\"input-group-addon\"><img src=\"language/";
            // line 125
            echo $this->getAttribute($context["language"], "code", array());
            echo "/";
            echo $this->getAttribute($context["language"], "code", array());
            echo ".png\" title=\"";
            echo $this->getAttribute($context["language"], "name", array());
            echo "\" /></span>
                <input type=\"text\" name=\"custom_field_description[";
            // line 126
            echo $this->getAttribute($context["language"], "language_id", array());
            echo "][error]\" value=\"";
            echo (($this->getAttribute((isset($context["custom_field_description"]) ? $context["custom_field_description"] : null), $this->getAttribute($context["language"], "language_id", array()), array(), "array", true, true)) ? ($this->getAttribute($this->getAttribute((isset($context["custom_field_description"]) ? $context["custom_field_description"] : null), $this->getAttribute($context["language"], "language_id", array()), array(), "array"), "error", array())) : (""));
            echo "\" placeholder=\"";
            echo (isset($context["entry_error"]) ? $context["entry_error"] : null);
            echo "\" class=\"form-control\" />
              </div>
              ";
            // line 128
            if ($this->getAttribute((isset($context["error_error"]) ? $context["error_error"] : null), $this->getAttribute($context["language"], "language_id", array()), array(), "array", true, true)) {
                echo " 
              <div class=\"text-danger\">";
                // line 129
                echo $this->getAttribute((isset($context["error_error"]) ? $context["error_error"] : null), $this->getAttribute($context["language"], "language_id", array()), array(), "array");
                echo "</div>
              ";
            }
            // line 130
            echo " 
              ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['language'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 131
        echo " 
            </div>
          </div>
          <div class=\"form-group\">
            <label class=\"col-sm-3 control-label\">";
        // line 135
        echo (isset($context["entry_tips"]) ? $context["entry_tips"] : null);
        echo "</label>
            <div class=\"col-sm-9\">
              ";
        // line 137
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["languages"]) ? $context["languages"] : null));
        foreach ($context['_seq'] as $context["_key"] => $context["language"]) {
            echo " 
              <div class=\"input-group\"><span class=\"input-group-addon\"><img src=\"language/";
            // line 138
            echo $this->getAttribute($context["language"], "code", array());
            echo "/";
            echo $this->getAttribute($context["language"], "code", array());
            echo ".png\" title=\"";
            echo $this->getAttribute($context["language"], "name", array());
            echo "\" /></span>
                <input type=\"text\" name=\"custom_field_description[";
            // line 139
            echo $this->getAttribute($context["language"], "language_id", array());
            echo "][tips]\" value=\"";
            echo (($this->getAttribute((isset($context["custom_field_description"]) ? $context["custom_field_description"] : null), $this->getAttribute($context["language"], "language_id", array()), array(), "array", true, true)) ? ($this->getAttribute($this->getAttribute((isset($context["custom_field_description"]) ? $context["custom_field_description"] : null), $this->getAttribute($context["language"], "language_id", array()), array(), "array"), "tips", array())) : (""));
            echo "\" placeholder=\"";
            echo (isset($context["entry_tips"]) ? $context["entry_tips"] : null);
            echo "\" class=\"form-control\" />
              </div>
              ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['language'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 141
        echo " 
            </div>
          </div>
          <div class=\"table-responsive\">
          <table id=\"attribute\" class=\"table table-striped table-bordered table-hover\">
          <thead>
          \t<tr class=\"info\">
              <td class=\"text-center first\" colspan=\"6\">";
        // line 148
        echo (isset($context["entry_attributes"]) ? $context["entry_attributes"] : null);
        echo "</td>
              <td class=\"text-center\" colspan=\"2\">";
        // line 149
        echo (isset($context["entry_visibility"]) ? $context["entry_visibility"] : null);
        echo "</td>
            </tr>
            <tr class=\"success\">
              <td class=\"text-left\">";
        // line 152
        echo (isset($context["entry_status"]) ? $context["entry_status"] : null);
        echo "</td>
              
              <td class=\"text-left\">";
        // line 154
        echo (isset($context["entry_type"]) ? $context["entry_type"] : null);
        echo "</td>
              <td class=\"text-left value\">";
        // line 155
        echo (isset($context["entry_value"]) ? $context["entry_value"] : null);
        echo "</td>
              <td class=\"text-left\">";
        // line 156
        echo (isset($context["entry_location"]) ? $context["entry_location"] : null);
        echo "</td>
              <td class=\"text-left\">";
        // line 157
        echo (isset($context["entry_minimum"]) ? $context["entry_minimum"] : null);
        echo "<span data-toggle=\"tooltip\" title=\"";
        echo (isset($context["char_help1"]) ? $context["char_help1"] : null);
        echo "\"></span></td>
              <td class=\"text-left\">";
        // line 158
        echo (isset($context["entry_maximum"]) ? $context["entry_maximum"] : null);
        echo "<span data-toggle=\"tooltip\" title=\"";
        echo (isset($context["char_help2"]) ? $context["char_help2"] : null);
        echo "\"></span></td>
              <td class=\"text-left\">";
        // line 159
        echo (isset($context["entry_isnumeric"]) ? $context["entry_isnumeric"] : null);
        echo "</td>
              <td class=\"text-left\">";
        // line 160
        echo (isset($context["entry_email"]) ? $context["entry_email"] : null);
        echo "</td>
              <td class=\"text-left\">";
        // line 161
        echo (isset($context["entry_invoice"]) ? $context["entry_invoice"] : null);
        echo "</td>
            </tr>
            </thead>
            <tbody>
            <tr>
              <td class=\"text-center\"><input type=\"checkbox\" name=\"status\" value=\"1\" ";
        // line 166
        echo (((isset($context["status"]) ? $context["status"] : null)) ? ("checked=\"checked\"") : (""));
        echo "></td>
              <td class=\"text-center\"><select name=\"type\" class=\"form-control\">
                <optgroup label=\"";
        // line 168
        echo (isset($context["text_choose"]) ? $context["text_choose"] : null);
        echo "\">
                ";
        // line 169
        if (((isset($context["type"]) ? $context["type"] : null) == "select")) {
            echo " 
                <option value=\"select\" selected>";
            // line 170
            echo (isset($context["text_select"]) ? $context["text_select"] : null);
            echo "</option>
                ";
        } else {
            // line 171
            echo " 
                <option value=\"select\">";
            // line 172
            echo (isset($context["text_select"]) ? $context["text_select"] : null);
            echo "</option>
                ";
        }
        // line 173
        echo " 
                ";
        // line 174
        if (((isset($context["type"]) ? $context["type"] : null) == "radio")) {
            echo " 
                <option value=\"radio\" selected>";
            // line 175
            echo (isset($context["text_radio"]) ? $context["text_radio"] : null);
            echo "</option>
                ";
        } else {
            // line 176
            echo " 
                <option value=\"radio\">";
            // line 177
            echo (isset($context["text_radio"]) ? $context["text_radio"] : null);
            echo "</option>
                ";
        }
        // line 178
        echo " 
                ";
        // line 179
        if (((isset($context["type"]) ? $context["type"] : null) == "checkbox")) {
            echo " 
                <option value=\"checkbox\" selected>";
            // line 180
            echo (isset($context["text_checkbox"]) ? $context["text_checkbox"] : null);
            echo "</option>
                ";
        } else {
            // line 181
            echo " 
                <option value=\"checkbox\">";
            // line 182
            echo (isset($context["text_checkbox"]) ? $context["text_checkbox"] : null);
            echo "</option>
                ";
        }
        // line 183
        echo " 
                </optgroup>
                <optgroup label=\"";
        // line 185
        echo (isset($context["text_input"]) ? $context["text_input"] : null);
        echo "\">
                ";
        // line 186
        if (((isset($context["type"]) ? $context["type"] : null) == "text")) {
            echo " 
                <option value=\"text\" selected>";
            // line 187
            echo (isset($context["text_text"]) ? $context["text_text"] : null);
            echo "</option>
                ";
        } else {
            // line 188
            echo " 
                <option value=\"text\">";
            // line 189
            echo (isset($context["text_text"]) ? $context["text_text"] : null);
            echo "</option>
                ";
        }
        // line 190
        echo " 
                ";
        // line 191
        if (((isset($context["type"]) ? $context["type"] : null) == "textarea")) {
            echo " 
                <option value=\"textarea\" selected>";
            // line 192
            echo (isset($context["text_textarea"]) ? $context["text_textarea"] : null);
            echo "</option>
                ";
        } else {
            // line 193
            echo " 
                <option value=\"textarea\">";
            // line 194
            echo (isset($context["text_textarea"]) ? $context["text_textarea"] : null);
            echo "</option>
                ";
        }
        // line 195
        echo " 
                </optgroup>
                <optgroup label=\"";
        // line 197
        echo (isset($context["text_file"]) ? $context["text_file"] : null);
        echo "\">
                ";
        // line 198
        if (((isset($context["type"]) ? $context["type"] : null) == "file")) {
            echo " 
                <option value=\"file\" selected>";
            // line 199
            echo (isset($context["text_file"]) ? $context["text_file"] : null);
            echo "</option>
                ";
        } else {
            // line 200
            echo " 
                <option value=\"file\">";
            // line 201
            echo (isset($context["text_file"]) ? $context["text_file"] : null);
            echo "</option>
                ";
        }
        // line 202
        echo "                
                </optgroup>
                <optgroup label=\"";
        // line 204
        echo (isset($context["text_date"]) ? $context["text_date"] : null);
        echo "\">
                ";
        // line 205
        if (((isset($context["type"]) ? $context["type"] : null) == "date")) {
            echo " 
                <option value=\"date\" selected>";
            // line 206
            echo (isset($context["text_date"]) ? $context["text_date"] : null);
            echo "</option>
                ";
        } else {
            // line 207
            echo " 
                <option value=\"date\">";
            // line 208
            echo (isset($context["text_date"]) ? $context["text_date"] : null);
            echo "</option>
                ";
        }
        // line 209
        echo " 
                ";
        // line 210
        if (((isset($context["type"]) ? $context["type"] : null) == "time")) {
            echo " 
                <option value=\"time\" selected>";
            // line 211
            echo (isset($context["text_time"]) ? $context["text_time"] : null);
            echo "</option>
                ";
        } else {
            // line 212
            echo " 
                <option value=\"time\">";
            // line 213
            echo (isset($context["text_time"]) ? $context["text_time"] : null);
            echo "</option>
                ";
        }
        // line 214
        echo " 
                ";
        // line 215
        if (((isset($context["type"]) ? $context["type"] : null) == "datetime")) {
            echo " 
                <option value=\"datetime\" selected>";
            // line 216
            echo (isset($context["text_datetime"]) ? $context["text_datetime"] : null);
            echo "</option>
                ";
        } else {
            // line 217
            echo " 
                <option value=\"datetime\">";
            // line 218
            echo (isset($context["text_datetime"]) ? $context["text_datetime"] : null);
            echo "</option>
                ";
        }
        // line 219
        echo " 
                </optgroup>
              </select></td>
              <td class=\"center value\">
              <div id=\"display-value\">\t            
\t            <div>
\t              <input type=\"text\" name=\"value\" value=\"";
        // line 225
        echo (isset($context["value"]) ? $context["value"] : null);
        echo "\" placeholder=\"";
        echo (isset($context["entry_value"]) ? $context["entry_value"] : null);
        echo "\" id=\"input-value\" class=\"form-control\" />
\t            </div>
          \t  </div>
          \t  </td>              
              <td class=\"text-center\"><select name=\"location\" class=\"form-control\">                
                ";
        // line 230
        if (((isset($context["location"]) ? $context["location"] : null) == "account")) {
            echo " 
                <option value=\"account\" selected>";
            // line 231
            echo (isset($context["text_account"]) ? $context["text_account"] : null);
            echo "</option>
                ";
        } else {
            // line 232
            echo " 
                <option value=\"account\">";
            // line 233
            echo (isset($context["text_account"]) ? $context["text_account"] : null);
            echo "</option>
                ";
        }
        // line 234
        echo " 
                ";
        // line 235
        if (((isset($context["location"]) ? $context["location"] : null) == "address")) {
            echo " 
                <option value=\"address\" selected>";
            // line 236
            echo (isset($context["text_address"]) ? $context["text_address"] : null);
            echo "</option>
                ";
        } else {
            // line 237
            echo " 
                <option value=\"address\">";
            // line 238
            echo (isset($context["text_address"]) ? $context["text_address"] : null);
            echo "</option>
                ";
        }
        // line 239
        echo "                              
              </select></td>
              <td class=\"text-center\"><input type=\"text\" name=\"minimum\" value=\"";
        // line 241
        echo (isset($context["minimum"]) ? $context["minimum"] : null);
        echo "\" size=\"4\" /></td>
              <td class=\"text-center\"><input type=\"text\" name=\"maximum\" value=\"";
        // line 242
        echo (isset($context["maximum"]) ? $context["maximum"] : null);
        echo "\" size=\"4\" /></td>
              <td class=\"text-center\"><input type=\"checkbox\" name=\"isnumeric\" value=\"1\" ";
        // line 243
        echo (((isset($context["isnumeric"]) ? $context["isnumeric"] : null)) ? ("checked=\"checked\"") : (""));
        echo "></td>              
              <td class=\"text-center\"><input type=\"checkbox\" name=\"email_display\" value=\"1\" ";
        // line 244
        echo (((isset($context["email_display"]) ? $context["email_display"] : null)) ? ("checked=\"checked\"") : (""));
        echo "></td>
              <td class=\"text-center\"><input type=\"checkbox\" name=\"invoice\" value=\"1\" ";
        // line 245
        echo (((isset($context["invoice"]) ? $context["invoice"] : null)) ? ("checked=\"checked\"") : (""));
        echo "></td>
            </tr>
            </tbody>
            </table>
            </div>
          <table id=\"custom-field-value\" class=\"table table-striped table-bordered table-hover\">
            <thead>
              <tr>
                <td class=\"text-left required\">";
        // line 253
        echo (isset($context["entry_custom_value"]) ? $context["entry_custom_value"] : null);
        echo "</td>
                <td class=\"text-right\">";
        // line 254
        echo (isset($context["entry_sort_order"]) ? $context["entry_sort_order"] : null);
        echo "</td>
                <td></td>
              </tr>
            </thead>
            <tbody>
              ";
        // line 259
        $context["custom_field_value_row"] = 0;
        echo " 
              ";
        // line 260
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["custom_field_values"]) ? $context["custom_field_values"] : null));
        foreach ($context['_seq'] as $context["_key"] => $context["custom_field_value"]) {
            echo " 
              <tr id=\"custom-field-value-row";
            // line 261
            echo (isset($context["custom_field_value_row"]) ? $context["custom_field_value_row"] : null);
            echo "\">
                <td class=\"text-left\" style=\"width: 70%;\"><input type=\"hidden\" name=\"custom_field_value[";
            // line 262
            echo (isset($context["custom_field_value_row"]) ? $context["custom_field_value_row"] : null);
            echo "][custom_field_value_id]\" value=\"";
            echo $this->getAttribute($context["custom_field_value"], "custom_field_value_id", array());
            echo "\" />
                  ";
            // line 263
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["languages"]) ? $context["languages"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["language"]) {
                echo " 
                  <div class=\"input-group\"> <span class=\"input-group-addon\"><img src=\"language/";
                // line 264
                echo $this->getAttribute($context["language"], "code", array());
                echo "/";
                echo $this->getAttribute($context["language"], "code", array());
                echo ".png\" title=\"";
                echo $this->getAttribute($context["language"], "name", array());
                echo "\" /></span>
                    <input type=\"text\" name=\"custom_field_value[";
                // line 265
                echo (isset($context["custom_field_value_row"]) ? $context["custom_field_value_row"] : null);
                echo "][custom_field_value_description][";
                echo $this->getAttribute($context["language"], "language_id", array());
                echo "][name]\" value=\"";
                echo (($this->getAttribute($this->getAttribute($context["custom_field_value"], "custom_field_value_description", array(), "any", false, true), $this->getAttribute($context["language"], "language_id", array()), array(), "array", true, true)) ? ($this->getAttribute($this->getAttribute($this->getAttribute($context["custom_field_value"], "custom_field_value_description", array()), $this->getAttribute($context["language"], "language_id", array()), array(), "array"), "name", array())) : (""));
                echo "\" placeholder=\"";
                echo (isset($context["entry_custom_value"]) ? $context["entry_custom_value"] : null);
                echo "\" class=\"form-control\" />
                  </div>
                  ";
                // line 267
                if ($this->getAttribute($this->getAttribute((isset($context["error_custom_field_value"]) ? $context["error_custom_field_value"] : null), (isset($context["custom_field_value_row"]) ? $context["custom_field_value_row"] : null), array(), "array", false, true), $this->getAttribute($context["language"], "language_id", array()), array(), "array", true, true)) {
                    echo " 
                  <div class=\"text-danger\">";
                    // line 268
                    echo $this->getAttribute($this->getAttribute((isset($context["error_custom_field_value"]) ? $context["error_custom_field_value"] : null), (isset($context["custom_field_value_row"]) ? $context["custom_field_value_row"] : null), array(), "array"), $this->getAttribute($context["language"], "language_id", array()), array(), "array");
                    echo "</div>
                  ";
                }
                // line 269
                echo " 
                  ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['language'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 270
            echo "</td>
                <td class=\"text-right\"><input type=\"text\" name=\"custom_field_value[";
            // line 271
            echo (isset($context["custom_field_value_row"]) ? $context["custom_field_value_row"] : null);
            echo "][sort_order]\" value=\"";
            echo $this->getAttribute($context["custom_field_value"], "sort_order", array());
            echo "\" placeholder=\"";
            echo (isset($context["entry_sort_order"]) ? $context["entry_sort_order"] : null);
            echo "\" class=\"form-control\" /></td>
                <td class=\"text-left\"><button onclick=\"\$('#custom-field-value-row";
            // line 272
            echo (isset($context["custom_field_value_row"]) ? $context["custom_field_value_row"] : null);
            echo "').remove();\" data-toggle=\"tooltip\" title=\"";
            echo (isset($context["button_remove"]) ? $context["button_remove"] : null);
            echo "\" class=\"btn btn-danger\"><i class=\"fa fa-minus-circle\"></i></button></td>
              </tr>
              ";
            // line 274
            $context["custom_field_value_row"] = ((isset($context["custom_field_value_row"]) ? $context["custom_field_value_row"] : null) + 1);
            echo " 
              ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['custom_field_value'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 275
        echo " 
            </tbody>
            <tfoot>
              <tr>
                <td colspan=\"2\"></td>
                <td class=\"text-left\"><button type=\"button\" onclick=\"addCustomFieldValue();\" data-toggle=\"tooltip\" title=\"";
        // line 280
        echo (isset($context["button_custom_field_value_add"]) ? $context["button_custom_field_value_add"] : null);
        echo "\" class=\"btn btn-primary\"><i class=\"fa fa-plus-circle\"></i></button></td>
              </tr>
            </tfoot>
          </table>
          <table class=\"table table-bordered\">
        <thead>
            <tr class=\"danger\">
              <td class=\"left\">";
        // line 287
        echo (isset($context["important_note"]) ? $context["important_note"] : null);
        echo "</td>
            </tr>
          </thead>
        
        <tr>
              <td class=\"left\">";
        // line 292
        echo (isset($context["address_message"]) ? $context["address_message"] : null);
        echo "<a href=\"";
        echo (isset($context["best_checkout"]) ? $context["best_checkout"] : null);
        echo "\" target=\"_newtab\">Link</a></td>
            </tr>
        <tr>
              <td class=\"left\">";
        // line 295
        echo (((((isset($context["fields_retreival1"]) ? $context["fields_retreival1"] : null) . "<br/>") . (isset($context["fields_retreival2"]) ? $context["fields_retreival2"] : null)) . "<br/>") . (isset($context["fields_retreival3"]) ? $context["fields_retreival3"] : null));
        echo "</td>
            </tr> 
        </table>
        </form>
\t\t
      </div>
    </div>
  </div>
  <script type=\"text/javascript\"><!--
\$('select[name=\\'type\\']').on('change', function() {
\tif (this.value == 'select' || this.value == 'radio' || this.value == 'checkbox') {
\t\t\$('#custom-field-value').show();
\t\t\$('#display-value').hide();
\t\t\$('.value').hide();
\t\t\$('.first').attr('colspan','6');
\t\t\$('.second').attr('colspan','2');
\t} else {
\t\t\$('#custom-field-value').hide();
\t\t\$('#display-value').show();
\t\t\$('.value').show();
\t\t\$('.first').attr('colspan','7');
\t\t\$('.second').attr('colspan','2');
\t}
\t
\tif (this.value == 'date') {
\t\t\$('#display-value > div').html('<div class=\"input-group date\"><input type=\"text\" name=\"value\" value=\"' + \$('#input-value').val() + '\" placeholder=\"";
        // line 320
        echo (isset($context["entry_value"]) ? $context["entry_value"] : null);
        echo "\" data-date-format=\"YYYY-MM-DD\" id=\"input-value\" class=\"form-control\" /><span class=\"input-group-btn\"><button type=\"button\" class=\"btn btn-default\"><i class=\"fa fa-calendar\"></i></button></span></div>');
\t} else if (this.value == 'time') {
\t\t\$('#display-value > div').html('<div class=\"input-group time\"><input type=\"text\" name=\"value\" value=\"' + \$('#input-value').val() + '\" placeholder=\"";
        // line 322
        echo (isset($context["entry_value"]) ? $context["entry_value"] : null);
        echo "\" data-date-format=\"HH:mm\" id=\"input-value\" class=\"form-control\" /><span class=\"input-group-btn\"><button type=\"button\" class=\"btn btn-default\"><i class=\"fa fa-calendar\"></i></button></span></div>');
\t} else if (this.value == 'datetime') {
\t\t\$('#display-value > div').html('<div class=\"input-group datetime\"><input type=\"text\" name=\"value\" value=\"' + \$('#input-value').val() + '\" placeholder=\"";
        // line 324
        echo (isset($context["entry_value"]) ? $context["entry_value"] : null);
        echo "\" data-date-format=\"YYYY-MM-DD HH:mm\" id=\"input-value\" class=\"form-control\" /><span class=\"input-group-btn\"><button type=\"button\" class=\"btn btn-default\"><i class=\"fa fa-calendar\"></i></button></span></div>');
\t} else if (this.value == 'textarea') {
\t\t\$('#display-value > div').html('<textarea name=\"value\" placeholder=\"";
        // line 326
        echo (isset($context["entry_value"]) ? $context["entry_value"] : null);
        echo "\" id=\"input-value\" class=\"form-control\">' + \$('#input-value').val() + '</textarea>');
\t} else {
\t\t\$('#display-value > div').html('<input type=\"text\" name=\"value\" value=\"' + \$('#input-value').val() + '\" placeholder=\"";
        // line 328
        echo (isset($context["entry_value"]) ? $context["entry_value"] : null);
        echo "\" id=\"input-value\" class=\"form-control\" />');
\t}
\t
\t\$('.date').datetimepicker({
\t\tlanguage: '";
        // line 332
        echo (isset($context["datepicker"]) ? $context["datepicker"] : null);
        echo "',
\t\tpickTime: false
\t});

\t\$('.time').datetimepicker({
\t\tlanguage: '";
        // line 337
        echo (isset($context["datepicker"]) ? $context["datepicker"] : null);
        echo "',
\t\tpickDate: false
\t});

\t\$('.datetime').datetimepicker({
\t\tlanguage: '";
        // line 342
        echo (isset($context["datepicker"]) ? $context["datepicker"] : null);
        echo "',
\t\tpickDate: true,
\t\tpickTime: true
\t});
});

\$('select[name=\\'type\\']').trigger('change');

var custom_field_value_row = ";
        // line 350
        echo (isset($context["custom_field_value_row"]) ? $context["custom_field_value_row"] : null);
        echo ";

function addCustomFieldValue() {
\thtml  = '<tr id=\"custom-field-value-row' + custom_field_value_row + '\">';\t
html += '  <td class=\"text-left\" style=\"width: 70%;\"><input type=\"hidden\" name=\"custom_field_value[' + custom_field_value_row + '][custom_field_value_id]\" value=\"\" />';
\t";
        // line 355
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["languages"]) ? $context["languages"] : null));
        foreach ($context['_seq'] as $context["_key"] => $context["language"]) {
            echo " 
\thtml += '    <div class=\"input-group\">';
\thtml += '      <span class=\"input-group-addon\"><img src=\"language/";
            // line 357
            echo $this->getAttribute($context["language"], "code", array());
            echo "/";
            echo $this->getAttribute($context["language"], "code", array());
            echo ".png\" title=\"";
            echo $this->getAttribute($context["language"], "name", array());
            echo "\" /></span><input type=\"text\" name=\"custom_field_value[' + custom_field_value_row + '][custom_field_value_description][";
            echo $this->getAttribute($context["language"], "language_id", array());
            echo "][name]\" value=\"\" placeholder=\"";
            echo (isset($context["entry_custom_value"]) ? $context["entry_custom_value"] : null);
            echo "\" class=\"form-control\" />';
    html += '    </div>';
\t";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['language'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 359
        echo " 
\thtml += '  </td>';
\thtml += '  <td class=\"text-right\"><input type=\"text\" name=\"custom_field_value[' + custom_field_value_row + '][sort_order]\" value=\"\" placeholder=\"";
        // line 361
        echo (isset($context["entry_sort_order"]) ? $context["entry_sort_order"] : null);
        echo "\" class=\"form-control\" /></td>';
\thtml += '  <td class=\"text-left\"><button type=\"button\" onclick=\"\$(\\'#custom-field-value-row' + custom_field_value_row + '\\').remove();\" data-toggle=\"tooltip\" title=\"";
        // line 362
        echo (isset($context["button_remove"]) ? $context["button_remove"] : null);
        echo "\" class=\"btn btn-danger\"><i class=\"fa fa-minus-circle\"></i></button></td>';
\thtml += '</tr>';\t
\t
\t\$('#custom-field-value tbody').append(html);
\t
\tcustom_field_value_row++;
}
//--></script></div>
";
        // line 370
        echo (isset($context["footer"]) ? $context["footer"] : null);
        echo " 
";
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  1080 => 370,  1069 => 362,  1065 => 361,  1061 => 359,  1044 => 357,  1037 => 355,  1029 => 350,  1018 => 342,  1010 => 337,  1002 => 332,  995 => 328,  990 => 326,  985 => 324,  980 => 322,  975 => 320,  947 => 295,  939 => 292,  931 => 287,  921 => 280,  914 => 275,  906 => 274,  899 => 272,  891 => 271,  888 => 270,  881 => 269,  876 => 268,  872 => 267,  861 => 265,  853 => 264,  847 => 263,  841 => 262,  837 => 261,  831 => 260,  827 => 259,  819 => 254,  815 => 253,  804 => 245,  800 => 244,  796 => 243,  792 => 242,  788 => 241,  784 => 239,  779 => 238,  776 => 237,  771 => 236,  767 => 235,  764 => 234,  759 => 233,  756 => 232,  751 => 231,  747 => 230,  737 => 225,  729 => 219,  724 => 218,  721 => 217,  716 => 216,  712 => 215,  709 => 214,  704 => 213,  701 => 212,  696 => 211,  692 => 210,  689 => 209,  684 => 208,  681 => 207,  676 => 206,  672 => 205,  668 => 204,  664 => 202,  659 => 201,  656 => 200,  651 => 199,  647 => 198,  643 => 197,  639 => 195,  634 => 194,  631 => 193,  626 => 192,  622 => 191,  619 => 190,  614 => 189,  611 => 188,  606 => 187,  602 => 186,  598 => 185,  594 => 183,  589 => 182,  586 => 181,  581 => 180,  577 => 179,  574 => 178,  569 => 177,  566 => 176,  561 => 175,  557 => 174,  554 => 173,  549 => 172,  546 => 171,  541 => 170,  537 => 169,  533 => 168,  528 => 166,  520 => 161,  516 => 160,  512 => 159,  506 => 158,  500 => 157,  496 => 156,  492 => 155,  488 => 154,  483 => 152,  477 => 149,  473 => 148,  464 => 141,  451 => 139,  443 => 138,  437 => 137,  432 => 135,  426 => 131,  419 => 130,  414 => 129,  410 => 128,  401 => 126,  393 => 125,  387 => 124,  382 => 122,  376 => 118,  363 => 116,  359 => 115,  351 => 112,  342 => 108,  335 => 106,  329 => 102,  321 => 101,  316 => 98,  311 => 97,  305 => 96,  302 => 95,  297 => 94,  291 => 93,  287 => 92,  279 => 89,  275 => 88,  270 => 86,  264 => 82,  256 => 81,  251 => 78,  246 => 77,  240 => 76,  237 => 75,  232 => 74,  226 => 73,  222 => 72,  214 => 69,  210 => 68,  205 => 66,  196 => 62,  189 => 60,  182 => 56,  177 => 54,  171 => 50,  166 => 49,  162 => 48,  156 => 47,  149 => 45,  143 => 41,  136 => 40,  131 => 39,  127 => 38,  118 => 36,  110 => 35,  104 => 34,  99 => 32,  94 => 30,  90 => 29,  83 => 25,  78 => 22,  71 => 19,  67 => 18,  60 => 13,  50 => 12,  44 => 11,  39 => 9,  32 => 7,  28 => 6,  19 => 1,);
    }
}
/* {{ header }}{{ column_left }} */
/* <div id="content">*/
/*   <div class="page-header">*/
/*     <div class="container-fluid">   */
/*       <div class="pull-right">*/
/*         <button type="submit" form="form-custom-field" data-toggle="tooltip" title="{{ button_save }}" class="btn btn-primary"><i class="fa fa-save"></i></button>*/
/*         <a href="{{ cancel }}" data-toggle="tooltip" title="{{ button_cancel }}" class="btn btn-default"><i class="fa fa-reply"></i></a></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 is defined  %} */
/*     <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 %} */
/*     <div class="panel panel-default">*/
/*       <div class="panel-heading">*/
/*         <h3 class="panel-title"><i class="fa fa-pencil"></i> {{ text_form }}</h3>*/
/*         */
/*       </div>*/
/*       <div class="panel-body">*/
/*         <form action="{{ action }}" method="post" enctype="multipart/form-data" id="form-custom-field" class="form-horizontal">*/
/*         <input type="hidden" name="xsort_order" value="{{ xsort_order }}" />*/
/*           <div class="form-group required">*/
/*             <label class="col-sm-3 control-label">{{ entry_name }}</label>*/
/*             <div class="col-sm-9">*/
/*               {% for language in languages %} */
/*               <div class="input-group"><span class="input-group-addon"><img src="language/{{ language.code }}/{{ language.code }}.png" title="{{ language.name }}" /></span>*/
/*                 <input type="text" name="custom_field_description[{{ language.language_id }}][name]" value="{{ custom_field_description[language.language_id] is defined ? custom_field_description[language.language_id].name : '' }}" placeholder="{{ entry_name }}" class="form-control" />*/
/*               </div>*/
/*               {% if error_name[language.language_id] is defined  %} */
/*               <div class="text-danger">{{ error_name[language.language_id] }}</div>*/
/*               {% endif %} */
/*               {% endfor %} */
/*             </div>*/
/*           </div>*/
/*           <div class="form-group required">*/
/*             <label class="col-sm-3 control-label" for="input-identifier"><span data-toggle="tooltip" title="{{ entry_identifier_help }}">{{ entry_identifier }}</span></label>*/
/*             <div class="col-sm-9">*/
/*               <input type="text" name="identifier" value="{{ identifier }}" placeholder="{{ entry_identifier }}" id="input-identifier" class="form-control" />*/
/*               {% if error_identifier is defined  %} */
/*               <div class="text-danger">{{ error_identifier }}</div>*/
/*               {% endif %} */
/*             </div>*/
/*           </div>*/
/*           <div class="form-group">*/
/*             <label class="col-sm-3 control-label">{{ entry_sort_order }}</label>*/
/*             <div class="col-sm-9">*/
/*               <a href="{{ best_checkout }}" target="_newtab" class="btn btn-info">Change from Best checkout module</a>*/
/*             </div>*/
/*           </div>*/
/*           <div class="form-group">*/
/*             <label class="col-sm-3 control-label" for="input-mask"><span data-toggle="tooltip" title="{{ entry_mask_help }}">{{ entry_mask }}</span></label>*/
/*             <div class="col-sm-9">*/
/*               <input type="text" name="mask" value="{{ mask }}" placeholder="{{ entry_mask }}" id="input-mask" class="form-control" />*/
/*             </div>*/
/*           </div>*/
/*           <div class="form-group">*/
/*             <label class="col-sm-3 control-label">{{ entry_customer_group }}</label>*/
/*             <div class="col-sm-9">*/
/*               {% set customer_group_row = 0 %} */
/*               {% for customer_group in customer_groups %} */
/*               <div class="checkbox">*/
/*                 <label>*/
/*                   {% if customer_group.customer_group_id in custom_field_customer_group  %} */
/*                   <input type="checkbox" name="custom_field_customer_group[{{ customer_group_row }}][customer_group_id]" value="{{ customer_group.customer_group_id }}" checked="checked" />*/
/*                   {{ customer_group.name }} */
/*                   {% else %} */
/*                   <input type="checkbox" name="custom_field_customer_group[{{ customer_group_row }}][customer_group_id]" value="{{ customer_group.customer_group_id }}" />*/
/*                   {{ customer_group.name }} */
/*                   {% endif %} */
/*                 </label>*/
/*               </div>*/
/*               {% set customer_group_row = customer_group_row + 1 %} */
/*               {% endfor %} */
/*             </div>*/
/*           </div>          */
/*           <div class="form-group">*/
/*             <label class="col-sm-3 control-label">{{ entry_required }}</label>*/
/*             <div class="col-sm-9">*/
/*               {% set customer_group_row = 0 %} */
/*               {% for customer_group in customer_groups %} */
/*               <div class="checkbox">*/
/*                 <label>*/
/*                   {% if customer_group.customer_group_id in custom_field_required  %} */
/*                   <input type="checkbox" name="custom_field_customer_group[{{ customer_group_row }}][required]" value="{{ customer_group.customer_group_id }}" checked="checked" />*/
/*                   {{ customer_group.name }} */
/*                   {% else %} */
/*                   <input type="checkbox" name="custom_field_customer_group[{{ customer_group_row }}][required]" value="{{ customer_group.customer_group_id }}" />*/
/*                   {{ customer_group.name }} */
/*                   {% endif %} */
/*                 </label>*/
/*               </div>*/
/*               {% set customer_group_row = customer_group_row + 1 %} */
/*               {% endfor %} */
/*             </div>*/
/*           </div>*/
/*           <div class="form-group" id="display-validation">*/
/*             <label class="col-sm-3 control-label" for="input-validation"><span data-toggle="tooltip" title="{{ help_regex }}">{{ entry_validation }}</span></label>*/
/*             <div class="col-sm-9">*/
/*               <input type="text" name="validation" id="input-validation" value="{{ validation }}" placeholder="{{ text_regex }}"  class="form-control"/>*/
/*             </div>*/
/*           </div>*/
/*           <div class="form-group">*/
/*             <label class="col-sm-3 control-label" for="input-regional-validation"><span data-toggle="tooltip" title="{{ entry_regional_validation_help }}">{{ entry_regional_validation }}</span></label>*/
/*             <div class="col-sm-9">*/
/*               <select name="regional_validation" id="input-regional-validation" class="form-control">*/
/*               {% for key,text in regional_validations %}*/
/*               <option value="{{ key }}" {{ regional_validation == key ?'selected="selected"':'' }}>{{ text }}</option>*/
/*               {% endfor %}*/
/*               </select>              */
/*             </div>*/
/*           </div>*/
/*           <div class="form-group required">*/
/*             <label class="col-sm-3 control-label">{{ entry_error }}</label>*/
/*             <div class="col-sm-9">*/
/*               {% for language in languages %} */
/*               <div class="input-group"><span class="input-group-addon"><img src="language/{{ language.code }}/{{ language.code }}.png" title="{{ language.name }}" /></span>*/
/*                 <input type="text" name="custom_field_description[{{ language.language_id }}][error]" value="{{ custom_field_description[language.language_id] is defined ? custom_field_description[language.language_id].error : '' }}" placeholder="{{ entry_error }}" class="form-control" />*/
/*               </div>*/
/*               {% if error_error[language.language_id] is defined  %} */
/*               <div class="text-danger">{{ error_error[language.language_id] }}</div>*/
/*               {% endif %} */
/*               {% endfor %} */
/*             </div>*/
/*           </div>*/
/*           <div class="form-group">*/
/*             <label class="col-sm-3 control-label">{{ entry_tips }}</label>*/
/*             <div class="col-sm-9">*/
/*               {% for language in languages %} */
/*               <div class="input-group"><span class="input-group-addon"><img src="language/{{ language.code }}/{{ language.code }}.png" title="{{ language.name }}" /></span>*/
/*                 <input type="text" name="custom_field_description[{{ language.language_id }}][tips]" value="{{ custom_field_description[language.language_id] is defined ? custom_field_description[language.language_id].tips : '' }}" placeholder="{{ entry_tips }}" class="form-control" />*/
/*               </div>*/
/*               {% endfor %} */
/*             </div>*/
/*           </div>*/
/*           <div class="table-responsive">*/
/*           <table id="attribute" class="table table-striped table-bordered table-hover">*/
/*           <thead>*/
/*           	<tr class="info">*/
/*               <td class="text-center first" colspan="6">{{ entry_attributes }}</td>*/
/*               <td class="text-center" colspan="2">{{ entry_visibility }}</td>*/
/*             </tr>*/
/*             <tr class="success">*/
/*               <td class="text-left">{{ entry_status }}</td>*/
/*               */
/*               <td class="text-left">{{ entry_type }}</td>*/
/*               <td class="text-left value">{{ entry_value }}</td>*/
/*               <td class="text-left">{{ entry_location }}</td>*/
/*               <td class="text-left">{{ entry_minimum }}<span data-toggle="tooltip" title="{{ char_help1 }}"></span></td>*/
/*               <td class="text-left">{{ entry_maximum }}<span data-toggle="tooltip" title="{{ char_help2 }}"></span></td>*/
/*               <td class="text-left">{{ entry_isnumeric }}</td>*/
/*               <td class="text-left">{{ entry_email }}</td>*/
/*               <td class="text-left">{{ entry_invoice }}</td>*/
/*             </tr>*/
/*             </thead>*/
/*             <tbody>*/
/*             <tr>*/
/*               <td class="text-center"><input type="checkbox" name="status" value="1" {{ status?'checked="checked"':'' }}></td>*/
/*               <td class="text-center"><select name="type" class="form-control">*/
/*                 <optgroup label="{{ text_choose }}">*/
/*                 {% if type == 'select'  %} */
/*                 <option value="select" selected>{{ text_select }}</option>*/
/*                 {% else %} */
/*                 <option value="select">{{ text_select }}</option>*/
/*                 {% endif %} */
/*                 {% if type == 'radio'  %} */
/*                 <option value="radio" selected>{{ text_radio }}</option>*/
/*                 {% else %} */
/*                 <option value="radio">{{ text_radio }}</option>*/
/*                 {% endif %} */
/*                 {% if type == 'checkbox'  %} */
/*                 <option value="checkbox" selected>{{ text_checkbox }}</option>*/
/*                 {% else %} */
/*                 <option value="checkbox">{{ text_checkbox }}</option>*/
/*                 {% endif %} */
/*                 </optgroup>*/
/*                 <optgroup label="{{ text_input }}">*/
/*                 {% if type == 'text'  %} */
/*                 <option value="text" selected>{{ text_text }}</option>*/
/*                 {% else %} */
/*                 <option value="text">{{ text_text }}</option>*/
/*                 {% endif %} */
/*                 {% if type == 'textarea'  %} */
/*                 <option value="textarea" selected>{{ text_textarea }}</option>*/
/*                 {% else %} */
/*                 <option value="textarea">{{ text_textarea }}</option>*/
/*                 {% endif %} */
/*                 </optgroup>*/
/*                 <optgroup label="{{ text_file }}">*/
/*                 {% if type == 'file'  %} */
/*                 <option value="file" selected>{{ text_file }}</option>*/
/*                 {% else %} */
/*                 <option value="file">{{ text_file }}</option>*/
/*                 {% endif %}                */
/*                 </optgroup>*/
/*                 <optgroup label="{{ text_date }}">*/
/*                 {% if type == 'date'  %} */
/*                 <option value="date" selected>{{ text_date }}</option>*/
/*                 {% else %} */
/*                 <option value="date">{{ text_date }}</option>*/
/*                 {% endif %} */
/*                 {% if type == 'time'  %} */
/*                 <option value="time" selected>{{ text_time }}</option>*/
/*                 {% else %} */
/*                 <option value="time">{{ text_time }}</option>*/
/*                 {% endif %} */
/*                 {% if type == 'datetime'  %} */
/*                 <option value="datetime" selected>{{ text_datetime }}</option>*/
/*                 {% else %} */
/*                 <option value="datetime">{{ text_datetime }}</option>*/
/*                 {% endif %} */
/*                 </optgroup>*/
/*               </select></td>*/
/*               <td class="center value">*/
/*               <div id="display-value">	            */
/* 	            <div>*/
/* 	              <input type="text" name="value" value="{{ value }}" placeholder="{{ entry_value }}" id="input-value" class="form-control" />*/
/* 	            </div>*/
/*           	  </div>*/
/*           	  </td>              */
/*               <td class="text-center"><select name="location" class="form-control">                */
/*                 {% if location == 'account'  %} */
/*                 <option value="account" selected>{{ text_account }}</option>*/
/*                 {% else %} */
/*                 <option value="account">{{ text_account }}</option>*/
/*                 {% endif %} */
/*                 {% if location == 'address'  %} */
/*                 <option value="address" selected>{{ text_address }}</option>*/
/*                 {% else %} */
/*                 <option value="address">{{ text_address }}</option>*/
/*                 {% endif %}                              */
/*               </select></td>*/
/*               <td class="text-center"><input type="text" name="minimum" value="{{ minimum }}" size="4" /></td>*/
/*               <td class="text-center"><input type="text" name="maximum" value="{{ maximum }}" size="4" /></td>*/
/*               <td class="text-center"><input type="checkbox" name="isnumeric" value="1" {{ isnumeric?'checked="checked"':'' }}></td>              */
/*               <td class="text-center"><input type="checkbox" name="email_display" value="1" {{ email_display?'checked="checked"':'' }}></td>*/
/*               <td class="text-center"><input type="checkbox" name="invoice" value="1" {{ invoice?'checked="checked"':'' }}></td>*/
/*             </tr>*/
/*             </tbody>*/
/*             </table>*/
/*             </div>*/
/*           <table id="custom-field-value" class="table table-striped table-bordered table-hover">*/
/*             <thead>*/
/*               <tr>*/
/*                 <td class="text-left required">{{ entry_custom_value }}</td>*/
/*                 <td class="text-right">{{ entry_sort_order }}</td>*/
/*                 <td></td>*/
/*               </tr>*/
/*             </thead>*/
/*             <tbody>*/
/*               {% set custom_field_value_row = 0 %} */
/*               {% for custom_field_value in custom_field_values %} */
/*               <tr id="custom-field-value-row{{ custom_field_value_row }}">*/
/*                 <td class="text-left" style="width: 70%;"><input type="hidden" name="custom_field_value[{{ custom_field_value_row }}][custom_field_value_id]" value="{{ custom_field_value.custom_field_value_id }}" />*/
/*                   {% for language in languages %} */
/*                   <div class="input-group"> <span class="input-group-addon"><img src="language/{{ language.code }}/{{ language.code }}.png" title="{{ language.name }}" /></span>*/
/*                     <input type="text" name="custom_field_value[{{ custom_field_value_row }}][custom_field_value_description][{{ language.language_id }}][name]" value="{{ custom_field_value.custom_field_value_description[language.language_id] is defined ? custom_field_value.custom_field_value_description[language.language_id].name : '' }}" placeholder="{{ entry_custom_value }}" class="form-control" />*/
/*                   </div>*/
/*                   {% if error_custom_field_value[custom_field_value_row][language.language_id] is defined  %} */
/*                   <div class="text-danger">{{ error_custom_field_value[custom_field_value_row][language.language_id] }}</div>*/
/*                   {% endif %} */
/*                   {% endfor %}</td>*/
/*                 <td class="text-right"><input type="text" name="custom_field_value[{{ custom_field_value_row }}][sort_order]" value="{{ custom_field_value.sort_order }}" placeholder="{{ entry_sort_order }}" class="form-control" /></td>*/
/*                 <td class="text-left"><button onclick="$('#custom-field-value-row{{ custom_field_value_row }}').remove();" data-toggle="tooltip" title="{{ button_remove }}" class="btn btn-danger"><i class="fa fa-minus-circle"></i></button></td>*/
/*               </tr>*/
/*               {% set custom_field_value_row = custom_field_value_row + 1 %} */
/*               {% endfor %} */
/*             </tbody>*/
/*             <tfoot>*/
/*               <tr>*/
/*                 <td colspan="2"></td>*/
/*                 <td class="text-left"><button type="button" onclick="addCustomFieldValue();" data-toggle="tooltip" title="{{ button_custom_field_value_add }}" class="btn btn-primary"><i class="fa fa-plus-circle"></i></button></td>*/
/*               </tr>*/
/*             </tfoot>*/
/*           </table>*/
/*           <table class="table table-bordered">*/
/*         <thead>*/
/*             <tr class="danger">*/
/*               <td class="left">{{ important_note }}</td>*/
/*             </tr>*/
/*           </thead>*/
/*         */
/*         <tr>*/
/*               <td class="left">{{ address_message }}<a href="{{ best_checkout }}" target="_newtab">Link</a></td>*/
/*             </tr>*/
/*         <tr>*/
/*               <td class="left">{{ fields_retreival1~"<br/>"~fields_retreival2~"<br/>"~fields_retreival3 }}</td>*/
/*             </tr> */
/*         </table>*/
/*         </form>*/
/* 		*/
/*       </div>*/
/*     </div>*/
/*   </div>*/
/*   <script type="text/javascript"><!--*/
/* $('select[name=\'type\']').on('change', function() {*/
/* 	if (this.value == 'select' || this.value == 'radio' || this.value == 'checkbox') {*/
/* 		$('#custom-field-value').show();*/
/* 		$('#display-value').hide();*/
/* 		$('.value').hide();*/
/* 		$('.first').attr('colspan','6');*/
/* 		$('.second').attr('colspan','2');*/
/* 	} else {*/
/* 		$('#custom-field-value').hide();*/
/* 		$('#display-value').show();*/
/* 		$('.value').show();*/
/* 		$('.first').attr('colspan','7');*/
/* 		$('.second').attr('colspan','2');*/
/* 	}*/
/* 	*/
/* 	if (this.value == 'date') {*/
/* 		$('#display-value > div').html('<div class="input-group date"><input type="text" name="value" value="' + $('#input-value').val() + '" placeholder="{{ entry_value }}" data-date-format="YYYY-MM-DD" id="input-value" class="form-control" /><span class="input-group-btn"><button type="button" class="btn btn-default"><i class="fa fa-calendar"></i></button></span></div>');*/
/* 	} else if (this.value == 'time') {*/
/* 		$('#display-value > div').html('<div class="input-group time"><input type="text" name="value" value="' + $('#input-value').val() + '" placeholder="{{ entry_value }}" data-date-format="HH:mm" id="input-value" class="form-control" /><span class="input-group-btn"><button type="button" class="btn btn-default"><i class="fa fa-calendar"></i></button></span></div>');*/
/* 	} else if (this.value == 'datetime') {*/
/* 		$('#display-value > div').html('<div class="input-group datetime"><input type="text" name="value" value="' + $('#input-value').val() + '" placeholder="{{ entry_value }}" data-date-format="YYYY-MM-DD HH:mm" id="input-value" class="form-control" /><span class="input-group-btn"><button type="button" class="btn btn-default"><i class="fa fa-calendar"></i></button></span></div>');*/
/* 	} else if (this.value == 'textarea') {*/
/* 		$('#display-value > div').html('<textarea name="value" placeholder="{{ entry_value }}" id="input-value" class="form-control">' + $('#input-value').val() + '</textarea>');*/
/* 	} else {*/
/* 		$('#display-value > div').html('<input type="text" name="value" value="' + $('#input-value').val() + '" placeholder="{{ entry_value }}" id="input-value" class="form-control" />');*/
/* 	}*/
/* 	*/
/* 	$('.date').datetimepicker({*/
/* 		language: '{{ datepicker }}',*/
/* 		pickTime: false*/
/* 	});*/
/* */
/* 	$('.time').datetimepicker({*/
/* 		language: '{{ datepicker }}',*/
/* 		pickDate: false*/
/* 	});*/
/* */
/* 	$('.datetime').datetimepicker({*/
/* 		language: '{{ datepicker }}',*/
/* 		pickDate: true,*/
/* 		pickTime: true*/
/* 	});*/
/* });*/
/* */
/* $('select[name=\'type\']').trigger('change');*/
/* */
/* var custom_field_value_row = {{ custom_field_value_row }};*/
/* */
/* function addCustomFieldValue() {*/
/* 	html  = '<tr id="custom-field-value-row' + custom_field_value_row + '">';	*/
/* html += '  <td class="text-left" style="width: 70%;"><input type="hidden" name="custom_field_value[' + custom_field_value_row + '][custom_field_value_id]" value="" />';*/
/* 	{% for language in languages %} */
/* 	html += '    <div class="input-group">';*/
/* 	html += '      <span class="input-group-addon"><img src="language/{{ language.code }}/{{ language.code }}.png" title="{{ language.name }}" /></span><input type="text" name="custom_field_value[' + custom_field_value_row + '][custom_field_value_description][{{ language.language_id }}][name]" value="" placeholder="{{ entry_custom_value }}" class="form-control" />';*/
/*     html += '    </div>';*/
/* 	{% endfor %} */
/* 	html += '  </td>';*/
/* 	html += '  <td class="text-right"><input type="text" name="custom_field_value[' + custom_field_value_row + '][sort_order]" value="" placeholder="{{ entry_sort_order }}" class="form-control" /></td>';*/
/* 	html += '  <td class="text-left"><button type="button" onclick="$(\'#custom-field-value-row' + custom_field_value_row + '\').remove();" data-toggle="tooltip" title="{{ button_remove }}" class="btn btn-danger"><i class="fa fa-minus-circle"></i></button></td>';*/
/* 	html += '</tr>';	*/
/* 	*/
/* 	$('#custom-field-value tbody').append(html);*/
/* 	*/
/* 	custom_field_value_row++;*/
/* }*/
/* //--></script></div>*/
/* {{ footer }} */
/* */
