<?php

/* default/template/extension/module/xtensions/checkout/makefields.twig */
class __TwigTemplate_ca482893b4695198d9000df524d6931435ee88df3243b97a8fc54855c921c9f8 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
        if ( !$this->getAttribute((isset($context["field"]) ? $context["field"] : null), "custom_field", array(), "any", true, true)) {
            echo " 
";
            // line 2
            if (($this->getAttribute((isset($context["field"]) ? $context["field"] : null), "show", array()) && ($this->getAttribute((isset($context["field"]) ? $context["field"] : null), "type", array()) != "checkbox"))) {
                // line 3
                if (((isset($context["key"]) ? $context["key"] : null) != "customer_group_id")) {
                    echo " 
<div class=\"group regular-field";
                    // line 4
                    echo (($this->getAttribute((isset($context["field"]) ? $context["field"] : null), "hide_guest", array())) ? (" hide_guest") : (""));
                    echo ((($this->getAttribute((isset($context["field"]) ? $context["field"] : null), "type", array()) == "select")) ? (" filled") : (""));
                    echo "\" id=\"regular-field-";
                    echo (isset($context["key"]) ? $context["key"] : null);
                    echo "\">
";
                    // line 5
                    if (twig_in_filter($this->getAttribute((isset($context["field"]) ? $context["field"] : null), "type", array()), array(0 => "text", 1 => "date", 2 => "datetime", 3 => "password", 4 => "email", 5 => "tel"))) {
                        // line 6
                        if ((twig_in_filter($this->getAttribute((isset($context["field"]) ? $context["field"] : null), "type", array()), array(0 => "password", 1 => "email")) && false)) {
                            // line 7
                            echo " 
<input name=\"email\" style=\"display: none;\" readonly disabled type=\"text\" />
<input name=\"password\" style=\"display: none;\" readonly disabled type=\"password\" />
";
                        }
                        // line 10
                        echo " 
<input autocomplete=\"off\" type=\"";
                        // line 11
                        echo $this->getAttribute((isset($context["field"]) ? $context["field"] : null), "type", array());
                        echo "\" id=\"input-";
                        echo (isset($context["key"]) ? $context["key"] : null);
                        echo "\" name=\"";
                        echo (isset($context["key"]) ? $context["key"] : null);
                        echo "\" value=\"";
                        echo $this->getAttribute((isset($context["field"]) ? $context["field"] : null), "value", array());
                        echo "\"  ";
                        echo (($this->getAttribute((isset($context["field"]) ? $context["field"] : null), "maximum", array())) ? ((("maxlength=\"" . $this->getAttribute((isset($context["field"]) ? $context["field"] : null), "maximum", array())) . "\"")) : (""));
                        echo " class=\"inputMaterial";
                        echo (($this->getAttribute((isset($context["field"]) ? $context["field"] : null), "dependency", array())) ? (" dependent") : (""));
                        echo (($this->getAttribute((isset($context["field"]) ? $context["field"] : null), "numeric", array())) ? ((" " . $this->getAttribute((isset($context["field"]) ? $context["field"] : null), "numeric", array()))) : (""));
                        echo (($this->getAttribute((isset($context["field"]) ? $context["field"] : null), "is_mask", array())) ? (" mask") : (""));
                        echo "\" ";
                        if ($this->getAttribute((isset($context["field"]) ? $context["field"] : null), "required", array())) {
                            echo " ";
                            echo "required";
                        }
                        echo " />
<label>";
                        // line 12
                        echo $this->getAttribute((isset($context["field"]) ? $context["field"] : null), "title", array());
                        echo " 
<span class=\"";
                        // line 13
                        echo (($this->getAttribute((isset($context["field"]) ? $context["field"] : null), "required", array())) ? ("required") : (""));
                        echo "\">
";
                        // line 14
                        if ($this->getAttribute((isset($context["field"]) ? $context["field"] : null), "tooltip", array())) {
                            echo " 
<span data-placement=\"right\" data-toggle=\"tooltip\" data-container=\"body\" title=\"";
                            // line 15
                            echo $this->getAttribute((isset($context["field"]) ? $context["field"] : null), "tooltip", array());
                            echo "\" class=\"is_floating_tooltip\"></span>
";
                        }
                        // line 16
                        echo " 
</span>
</label>
";
                        // line 19
                        echo (((twig_constant("false") && $this->getAttribute((isset($context["field"]) ? $context["field"] : null), "required", array()))) ? ("<required data-placement=\"left\" data-toggle=\"tooltip\" title=\"Required\" class=\"is_required\"></required>") : (""));
                        echo " 
";
                        // line 20
                        echo (((twig_constant("false") && $this->getAttribute((isset($context["field"]) ? $context["field"] : null), "tooltip", array()))) ? ((("<tooltip data-placement=\"left\" data-toggle=\"tooltip\" title=\"" . $this->getAttribute((isset($context["field"]) ? $context["field"] : null), "tooltip", array())) . "\" class=\"is_tooltip\"></tooltip>")) : (""));
                        echo " 
";
                    } elseif (($this->getAttribute(                    // line 21
(isset($context["field"]) ? $context["field"] : null), "type", array()) == "select")) {
                        echo " 
<select name=\"";
                        // line 22
                        echo (isset($context["key"]) ? $context["key"] : null);
                        echo "\" id=\"input-";
                        echo (isset($context["key"]) ? $context["key"] : null);
                        echo "\" class=\"inputMaterial\">
";
                        // line 23
                        $context['_parent'] = $context;
                        $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["field"]) ? $context["field"] : null), "select_values", array()));
                        foreach ($context['_seq'] as $context["_key"] => $context["option"]) {
                            echo " 
<option value=\"";
                            // line 24
                            echo $this->getAttribute($context["option"], "value_id", array());
                            echo "\" ";
                            echo ((($this->getAttribute((isset($context["field"]) ? $context["field"] : null), "value", array()) == $this->getAttribute($context["option"], "value_id", array()))) ? ("selected=\"selected\"") : (""));
                            echo ">";
                            echo $this->getAttribute($context["option"], "display_name", array());
                            echo "</option>
";
                        }
                        $_parent = $context['_parent'];
                        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['option'], $context['_parent'], $context['loop']);
                        $context = array_intersect_key($context, $_parent) + $_parent;
                        // line 25
                        echo " 
</select>
<label>";
                        // line 27
                        echo $this->getAttribute((isset($context["field"]) ? $context["field"] : null), "title", array());
                        echo (($this->getAttribute((isset($context["field"]) ? $context["field"] : null), "required", array())) ? ("<span class=\"required\"></required>") : (""));
                        echo "</label>
<labelselect></labelselect>
";
                    }
                    // line 29
                    echo " 
</div>
";
                } else {
                    // line 31
                    echo " 
";
                    // line 32
                    if ((array_key_exists("customer_groups", $context) && array_key_exists("customer_group_id", $context))) {
                        echo " 
<div id=\"regular-field-";
                        // line 33
                        echo (isset($context["key"]) ? $context["key"] : null);
                        echo "\" class=\"form-group required\" style=\"display: ";
                        echo (((twig_length_filter($this->env, (isset($context["customer_groups"]) ? $context["customer_groups"] : null)) > 1)) ? ("block") : ("none"));
                        echo ";\">
            <label class=\"control-label\" style=\"padding-left: 0px;\">";
                        // line 34
                        echo $this->getAttribute((isset($context["field"]) ? $context["field"] : null), "title", array());
                        echo "</label>
            <div>
              ";
                        // line 36
                        $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 " 
              ";
                            // line 37
                            if (($this->getAttribute($context["customer_group"], "customer_group_id", array()) == (isset($context["customer_group_id"]) ? $context["customer_group_id"] : null))) {
                                echo " 
              <div>
                <label class=\"pointer\">
                  <input type=\"radio\" class=\"input-radio\" name=\"customer_group_id\" value=\"";
                                // line 40
                                echo $this->getAttribute($context["customer_group"], "customer_group_id", array());
                                echo "\" checked=\"checked\" />
                  ";
                                // line 41
                                echo $this->getAttribute($context["customer_group"], "name", array());
                                echo "</label>
              </div>
              ";
                            } else {
                                // line 43
                                echo " 
              <div>
                <label class=\"pointer\">
                  <input type=\"radio\" class=\"input-radio\" name=\"customer_group_id\" value=\"";
                                // line 46
                                echo $this->getAttribute($context["customer_group"], "customer_group_id", array());
                                echo "\" />
                  ";
                                // line 47
                                echo $this->getAttribute($context["customer_group"], "name", array());
                                echo "</label>
              </div>
              ";
                            }
                            // line 49
                            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 50
                        echo " 
            </div>
          </div>
";
                    }
                    // line 53
                    echo "          
";
                }
                // line 54
                echo " 
";
            } else {
                // line 55
                echo " 
<input type=\"hidden\" name=\"";
                // line 56
                echo (isset($context["key"]) ? $context["key"] : null);
                echo "\" value=\"";
                echo $this->getAttribute((isset($context["field"]) ? $context["field"] : null), "value", array());
                echo "\" />
";
            }
            // line 57
            echo " 
";
        } else {
            // line 58
            echo " 
";
            // line 59
            $context["custom_field"] = (isset($context["field"]) ? $context["field"] : null);
            echo " 
    ";
            // line 60
            if (($this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "type", array()) == "select")) {
                echo "    
    <div id=\"custom-field";
                // line 61
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                echo "\" class=\"group custom-field filled\">      
        <select name=\"custom_field[";
                // line 62
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                echo "]\" id=\"input-custom_field";
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                echo "\" class=\"inputMaterial\">
          <option value=\"\">";
                // line 63
                echo (isset($context["text_select"]) ? $context["text_select"] : null);
                echo "</option>
          ";
                // line 64
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_value", array()));
                foreach ($context['_seq'] as $context["_key"] => $context["custom_field_value"]) {
                    echo " 
\t\t  ";
                    // line 65
                    if (($this->getAttribute((isset($context["value_custom_field"]) ? $context["value_custom_field"] : null), $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array(), "array"), array(), "array", true, true) && ($this->getAttribute($context["custom_field_value"], "custom_field_value_id", array()) == $this->getAttribute((isset($context["value_custom_field"]) ? $context["value_custom_field"] : null), $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array(), "array"), array(), "array")))) {
                        echo " 
          <option value=\"";
                        // line 66
                        echo $this->getAttribute($context["custom_field_value"], "custom_field_value_id", array());
                        echo "\" selected=\"selected\">";
                        echo $this->getAttribute($context["custom_field_value"], "name", array());
                        echo "</option>
          ";
                    } else {
                        // line 67
                        echo " 
          <option value=\"";
                        // line 68
                        echo $this->getAttribute($context["custom_field_value"], "custom_field_value_id", array());
                        echo "\">";
                        echo $this->getAttribute($context["custom_field_value"], "name", array());
                        echo "</option>
          ";
                    }
                    // line 69
                    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 70
                echo " 
        </select>        
        <label for=\"input-account-custom-field";
                // line 72
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                echo "\">
        ";
                // line 73
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "name", array());
                echo " 
        <span class=\"fieldlabel ";
                // line 74
                echo (($this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "required", array())) ? ("required") : (""));
                echo "\">
\t\t";
                // line 75
                if ($this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "tips", array())) {
                    echo " 
\t\t<span data-placement=\"right\" data-toggle=\"tooltip\" data-container=\"body\" title=\"";
                    // line 76
                    echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "tips", array());
                    echo "\" class=\"is_floating_tooltip\"></span>
\t\t";
                }
                // line 77
                echo " 
\t\t</span>
        </label>
        <labelselect></labelselect>
    </div>    
    ";
            } elseif (($this->getAttribute(            // line 82
(isset($context["custom_field"]) ? $context["custom_field"] : null), "type", array()) == "radio")) {
                echo "    
    <div id=\"custom-field";
                // line 83
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                echo "\" class=\"form-group custom-field is";
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "type", array());
                echo "\">
      \t<label class=\"control-label\">";
                // line 84
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "name", array());
                echo " 
      \t<span class=\"fieldlabel ";
                // line 85
                echo (($this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "required", array())) ? ("required") : (""));
                echo "\">
      \t";
                // line 86
                if ($this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "tips", array())) {
                    echo " 
\t\t<span data-placement=\"right\" data-toggle=\"tooltip\" data-container=\"body\" title=\"";
                    // line 87
                    echo $this->getAttribute((isset($context["field"]) ? $context["field"] : null), "tips", array());
                    echo "\" class=\"is_floating_tooltip\"></span>
\t\t";
                }
                // line 88
                echo " 
\t\t</span>
\t\t</label>
        <div id=\"input-custom_field";
                // line 91
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                echo "\">
          ";
                // line 92
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_value", array()));
                foreach ($context['_seq'] as $context["_key"] => $context["custom_field_value"]) {
                    echo " 
          <div class=\"\">
            ";
                    // line 94
                    if (($this->getAttribute((isset($context["value_custom_field"]) ? $context["value_custom_field"] : null), $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array(), "array"), array(), "array", true, true) && ($this->getAttribute($context["custom_field_value"], "custom_field_value_id", array()) == $this->getAttribute((isset($context["value_custom_field"]) ? $context["value_custom_field"] : null), $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array(), "array"), array(), "array")))) {
                        echo " 
            <label class=\"pointer\">
              <input class=\"input-radio\" type=\"radio\" name=\"custom_field[";
                        // line 96
                        echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                        echo "]\" value=\"";
                        echo $this->getAttribute($context["custom_field_value"], "custom_field_value_id", array());
                        echo "\" checked=\"checked\" />
              ";
                        // line 97
                        echo $this->getAttribute($context["custom_field_value"], "name", array());
                        echo "</label>
            ";
                    } else {
                        // line 98
                        echo " 
            <label class=\"pointer\">
              <input class=\"input-radio\" type=\"radio\" name=\"custom_field[";
                        // line 100
                        echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                        echo "]\" value=\"";
                        echo $this->getAttribute($context["custom_field_value"], "custom_field_value_id", array());
                        echo "\" />
              ";
                        // line 101
                        echo $this->getAttribute($context["custom_field_value"], "name", array());
                        echo "</label>
            ";
                    }
                    // line 102
                    echo " 
          </div>
          ";
                }
                $_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 104
                echo " 
        </div>
      </div>    
    ";
            } elseif (($this->getAttribute(            // line 107
(isset($context["custom_field"]) ? $context["custom_field"] : null), "type", array()) == "checkbox")) {
                echo " 
    <div id=\"custom-field";
                // line 108
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                echo "\" class=\"form-group custom-field is";
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "type", array());
                echo "\">
      \t<label class=\"control-label\">";
                // line 109
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "name", array());
                echo " 
      \t<span class=\"fieldlabel ";
                // line 110
                echo (($this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "required", array())) ? ("required") : (""));
                echo "\">
      \t";
                // line 111
                if ($this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "tips", array())) {
                    echo " 
\t\t<span data-placement=\"right\" data-toggle=\"tooltip\" data-container=\"body\" title=\"";
                    // line 112
                    echo $this->getAttribute((isset($context["field"]) ? $context["field"] : null), "tips", array());
                    echo "\" class=\"is_floating_tooltip\"></span>
\t\t";
                }
                // line 113
                echo " 
\t\t</span>
\t\t</label>
        <div id=\"input-custom_field";
                // line 116
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                echo "\">
          ";
                // line 117
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_value", array()));
                foreach ($context['_seq'] as $context["_key"] => $context["custom_field_value"]) {
                    echo " 
          <div class=\"checkbox is_checkbox\">
            ";
                    // line 119
                    if (($this->getAttribute((isset($context["value_custom_field"]) ? $context["value_custom_field"] : null), $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array(), "array"), array(), "array", true, true) && twig_in_filter($this->getAttribute($context["custom_field_value"], "custom_field_value_id", array()), $this->getAttribute((isset($context["value_custom_field"]) ? $context["value_custom_field"] : null), $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array(), "array"), array(), "array")))) {
                        echo " 
            <label>
              <input class=\"input-checkbox\" type=\"checkbox\" name=\"custom_field[";
                        // line 121
                        echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                        echo "][]\" value=\"";
                        echo $this->getAttribute($context["custom_field_value"], "custom_field_value_id", array());
                        echo "\" checked=\"checked\" />
              ";
                        // line 122
                        echo $this->getAttribute($context["custom_field_value"], "name", array());
                        echo " 
              </label>
            ";
                    } else {
                        // line 124
                        echo " 
            <label>
              <input class=\"input-checkbox\" type=\"checkbox\" name=\"custom_field[";
                        // line 126
                        echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                        echo "][]\" value=\"";
                        echo $this->getAttribute($context["custom_field_value"], "custom_field_value_id", array());
                        echo "\" />
              ";
                        // line 127
                        echo $this->getAttribute($context["custom_field_value"], "name", array());
                        echo " 
              </label>
            ";
                    }
                    // line 129
                    echo " 
          </div>
          ";
                }
                $_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 131
                echo " 
        </div>
      </div>
    ";
            } elseif (($this->getAttribute(            // line 134
(isset($context["custom_field"]) ? $context["custom_field"] : null), "type", array()) == "text")) {
                echo "    
    <div id=\"custom-field";
                // line 135
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                echo "\" class=\"group custom-field\">      
        <input  type=\"text\" name=\"custom_field[";
                // line 136
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                echo "]\" value=\"";
                echo (($this->getAttribute((isset($context["value_custom_field"]) ? $context["value_custom_field"] : null), $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array(), "array"), array(), "array", true, true)) ? ($this->getAttribute((isset($context["value_custom_field"]) ? $context["value_custom_field"] : null), $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array(), "array"), array(), "array")) : ($this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "value", array())));
                echo "\" ";
                echo (($this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "maximum", array())) ? ((("maxlength=\"" . $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "maximum", array())) . "\"")) : (""));
                echo " id=\"input-custom_field";
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                echo "\" class=\"inputMaterial ";
                if ($this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "isnumeric", array())) {
                    echo " ";
                    echo "numeric";
                }
                echo "\" />
        <label for=\"input-account-custom-field";
                // line 137
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                echo "\">
        ";
                // line 138
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "name", array());
                echo " 
        <span class=\"fieldlabel ";
                // line 139
                echo (($this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "required", array())) ? (" required") : (""));
                echo "\">
\t\t";
                // line 140
                if ($this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "tips", array())) {
                    echo " 
\t\t<span data-placement=\"right\" data-toggle=\"tooltip\" data-container=\"body\" title=\"";
                    // line 141
                    echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "tips", array());
                    echo "\" class=\"is_floating_tooltip\"></span>
\t\t";
                }
                // line 142
                echo " 
\t\t</span>
        </label>        
      </div>    
    ";
            } elseif (($this->getAttribute(            // line 146
(isset($context["custom_field"]) ? $context["custom_field"] : null), "type", array()) == "textarea")) {
                echo "    
    <div id=\"custom-field";
                // line 147
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                echo "\" class=\"group custom-field\">      
        <textarea  name=\"custom_field[";
                // line 148
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                echo "]\" rows=\"5\" id=\"input-custom_field";
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                echo "\" class=\"inputMaterial\">";
                echo (($this->getAttribute((isset($context["value_custom_field"]) ? $context["value_custom_field"] : null), $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array(), "array"), array(), "array", true, true)) ? ($this->getAttribute((isset($context["value_custom_field"]) ? $context["value_custom_field"] : null), $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array(), "array"), array(), "array")) : ($this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "value", array())));
                echo "</textarea>
        <label for=\"input-account-custom-field";
                // line 149
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                echo "\">
        ";
                // line 150
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "name", array());
                echo " 
        <span class=\"fieldlabel ";
                // line 151
                echo (($this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "required", array())) ? (" required") : (""));
                echo "\">
\t\t";
                // line 152
                if ($this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "tips", array())) {
                    echo " 
\t\t<span data-placement=\"right\" data-toggle=\"tooltip\" data-container=\"body\" title=\"";
                    // line 153
                    echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "tips", array());
                    echo "\" class=\"is_floating_tooltip\"></span>
\t\t";
                }
                // line 154
                echo " 
\t\t</span>
        </label>
      </div>    
    ";
            } elseif (($this->getAttribute(            // line 158
(isset($context["custom_field"]) ? $context["custom_field"] : null), "type", array()) == "file")) {
                echo "    
    <div id=\"custom-field";
                // line 159
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                echo "\" class=\"form-group custom-field is";
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "type", array());
                echo "\">
      \t<label class=\"control-label\">";
                // line 160
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "name", array());
                echo " 
      \t<span class=\"fieldlabel ";
                // line 161
                echo (($this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "required", array())) ? ("required") : (""));
                echo "\">
      \t";
                // line 162
                if ($this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "tips", array())) {
                    echo " 
\t\t<span data-placement=\"right\" data-toggle=\"tooltip\" data-container=\"body\" title=\"";
                    // line 163
                    echo $this->getAttribute((isset($context["field"]) ? $context["field"] : null), "tips", array());
                    echo "\" class=\"is_floating_tooltip\"></span>
\t\t";
                }
                // line 164
                echo " 
\t\t</span>
\t\t</label>
        <button  type=\"button\" id=\"button-custom-field";
                // line 167
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                echo "\" data-loading-text=\"";
                echo (isset($context["text_loading"]) ? $context["text_loading"] : null);
                echo "\" class=\"btn btn-default\"><i class=\"fa fa-upload\"></i> ";
                echo (isset($context["button_upload"]) ? $context["button_upload"] : null);
                echo "</button>
        <input type=\"hidden\" name=\"custom_field[";
                // line 168
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                echo "]\" value=\"";
                echo (($this->getAttribute((isset($context["value_custom_field"]) ? $context["value_custom_field"] : null), $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array(), "array"), array(), "array", true, true)) ? ($this->getAttribute((isset($context["value_custom_field"]) ? $context["value_custom_field"] : null), $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array(), "array"), array(), "array")) : ($this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "value", array())));
                echo "\"  id=\"input-custom_field";
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                echo "\" />
      </div>    
    ";
            } elseif (($this->getAttribute(            // line 170
(isset($context["custom_field"]) ? $context["custom_field"] : null), "type", array()) == "date")) {
                echo "    
    <div id=\"custom-field";
                // line 171
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                echo "\" class=\"group custom-field\">      
        <div class=\"input-group date\">
          <input  type=\"text\" name=\"custom_field[";
                // line 173
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                echo "]\" value=\"";
                echo (($this->getAttribute((isset($context["value_custom_field"]) ? $context["value_custom_field"] : null), $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array(), "array"), array(), "array", true, true)) ? ($this->getAttribute((isset($context["value_custom_field"]) ? $context["value_custom_field"] : null), $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array(), "array"), array(), "array")) : ($this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "value", array())));
                echo "\"  data-date-format=\"YYYY-MM-DD\" id=\"input-custom_field";
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                echo "\" class=\"inputMaterial\" />
          <label for=\"input-account-custom-field";
                // line 174
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                echo "\">
\t        ";
                // line 175
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "name", array());
                echo " 
\t        <span class=\"fieldlabel ";
                // line 176
                echo (($this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "required", array())) ? ("required") : (""));
                echo "\">
\t\t\t";
                // line 177
                if ($this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "tips", array())) {
                    echo " 
\t\t\t<span data-placement=\"right\" data-toggle=\"tooltip\" data-container=\"body\" title=\"";
                    // line 178
                    echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "tips", array());
                    echo "\" class=\"is_floating_tooltip\"></span>
\t\t\t";
                }
                // line 179
                echo " 
\t\t\t</span>
\t        </label>
          <span class=\"input-group-btn\">
          <button onclick=\"\$(this).closest('.group').addClass('filled');\" type=\"button\" class=\"btn btn-default\"><i class=\"fa fa-calendar\"></i></button>
          </span></div>
      </div>    
    ";
            } elseif (($this->getAttribute(            // line 186
(isset($context["custom_field"]) ? $context["custom_field"] : null), "type", array()) == "time")) {
                echo "    
    <div id=\"custom-field";
                // line 187
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                echo "\" class=\"group custom-field\">      
        <div class=\"input-group time\">
          <input  type=\"text\" name=\"custom_field[";
                // line 189
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                echo "]\" value=\"";
                echo (($this->getAttribute((isset($context["value_custom_field"]) ? $context["value_custom_field"] : null), $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array(), "array"), array(), "array", true, true)) ? ($this->getAttribute((isset($context["value_custom_field"]) ? $context["value_custom_field"] : null), $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array(), "array"), array(), "array")) : ($this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "value", array())));
                echo "\"  data-date-format=\"HH:mm\" id=\"input-custom_field";
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                echo "\" class=\"inputMaterial\" />
          <label for=\"input-account-custom-field";
                // line 190
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                echo "\">
\t        ";
                // line 191
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "name", array());
                echo " 
\t        <span class=\"fieldlabel ";
                // line 192
                echo (($this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "required", array())) ? ("required") : (""));
                echo "\">
\t\t\t";
                // line 193
                if ($this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "tips", array())) {
                    echo " 
\t\t\t<span data-placement=\"right\" data-toggle=\"tooltip\" data-container=\"body\" title=\"";
                    // line 194
                    echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "tips", array());
                    echo "\" class=\"is_floating_tooltip\"></span>
\t\t\t";
                }
                // line 195
                echo " 
\t\t\t</span>
\t        </label>
          <span class=\"input-group-btn\">
          <button onclick=\"\$(this).closest('.group').addClass('filled');\" type=\"button\" class=\"btn btn-default\"><i class=\"fa fa-calendar\"></i></button>
          </span></div>
      </div>    
    ";
            } elseif (($this->getAttribute(            // line 202
(isset($context["custom_field"]) ? $context["custom_field"] : null), "type", array()) == "datetime")) {
                echo "    
    <div id=\"custom-field";
                // line 203
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                echo "\" class=\"group custom-field\">      
        <div class=\"input-group datetime\">
          <input  type=\"text\" name=\"custom_field[";
                // line 205
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                echo "]\" value=\"";
                echo (($this->getAttribute((isset($context["value_custom_field"]) ? $context["value_custom_field"] : null), $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array(), "array"), array(), "array", true, true)) ? ($this->getAttribute((isset($context["value_custom_field"]) ? $context["value_custom_field"] : null), $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array(), "array"), array(), "array")) : ($this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "value", array())));
                echo "\"  data-date-format=\"YYYY-MM-DD HH:mm\" id=\"input-custom_field";
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                echo "\" class=\"inputMaterial\" />
          <label for=\"input-account-custom-field";
                // line 206
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                echo "\">
          ";
                // line 207
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "name", array());
                echo " 
          <span class=\"fieldlabel ";
                // line 208
                echo (($this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "required", array())) ? ("required") : (""));
                echo "\">
\t\t  ";
                // line 209
                if ($this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "tips", array())) {
                    echo " 
\t\t  <span data-placement=\"right\" data-toggle=\"tooltip\" data-container=\"body\" title=\"";
                    // line 210
                    echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "tips", array());
                    echo "\" class=\"is_floating_tooltip\"></span>
\t\t  ";
                }
                // line 211
                echo " 
\t\t</span>
        </label>
          <span class=\"input-group-btn\">
          <button onclick=\"\$(this).closest('.group').addClass('filled');\" type=\"button\" class=\"btn btn-default\"><i class=\"fa fa-calendar\"></i></button>
          </span></div>
      </div>
    ";
            }
            // line 218
            echo " 
    <div class=\"clearfix\"></div>
    ";
        }
    }

    public function getTemplateName()
    {
        return "default/template/extension/module/xtensions/checkout/makefields.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  785 => 218,  775 => 211,  770 => 210,  766 => 209,  762 => 208,  758 => 207,  754 => 206,  746 => 205,  741 => 203,  737 => 202,  728 => 195,  723 => 194,  719 => 193,  715 => 192,  711 => 191,  707 => 190,  699 => 189,  694 => 187,  690 => 186,  681 => 179,  676 => 178,  672 => 177,  668 => 176,  664 => 175,  660 => 174,  652 => 173,  647 => 171,  643 => 170,  634 => 168,  626 => 167,  621 => 164,  616 => 163,  612 => 162,  608 => 161,  604 => 160,  598 => 159,  594 => 158,  588 => 154,  583 => 153,  579 => 152,  575 => 151,  571 => 150,  567 => 149,  559 => 148,  555 => 147,  551 => 146,  545 => 142,  540 => 141,  536 => 140,  532 => 139,  528 => 138,  524 => 137,  509 => 136,  505 => 135,  501 => 134,  496 => 131,  488 => 129,  482 => 127,  476 => 126,  472 => 124,  466 => 122,  460 => 121,  455 => 119,  448 => 117,  444 => 116,  439 => 113,  434 => 112,  430 => 111,  426 => 110,  422 => 109,  416 => 108,  412 => 107,  407 => 104,  399 => 102,  394 => 101,  388 => 100,  384 => 98,  379 => 97,  373 => 96,  368 => 94,  361 => 92,  357 => 91,  352 => 88,  347 => 87,  343 => 86,  339 => 85,  335 => 84,  329 => 83,  325 => 82,  318 => 77,  313 => 76,  309 => 75,  305 => 74,  301 => 73,  297 => 72,  293 => 70,  286 => 69,  279 => 68,  276 => 67,  269 => 66,  265 => 65,  259 => 64,  255 => 63,  249 => 62,  245 => 61,  241 => 60,  237 => 59,  234 => 58,  230 => 57,  223 => 56,  220 => 55,  216 => 54,  212 => 53,  206 => 50,  199 => 49,  193 => 47,  189 => 46,  184 => 43,  178 => 41,  174 => 40,  168 => 37,  162 => 36,  157 => 34,  151 => 33,  147 => 32,  144 => 31,  139 => 29,  132 => 27,  128 => 25,  116 => 24,  110 => 23,  104 => 22,  100 => 21,  96 => 20,  92 => 19,  87 => 16,  82 => 15,  78 => 14,  74 => 13,  70 => 12,  49 => 11,  46 => 10,  40 => 7,  38 => 6,  36 => 5,  29 => 4,  25 => 3,  23 => 2,  19 => 1,);
    }
}
/* {% if field.custom_field is not defined  %} */
/* {% if field.show and (field.type != 'checkbox') %}*/
/* {% if key != 'customer_group_id'  %} */
/* <div class="group regular-field{{ field.hide_guest?' hide_guest':'' }}{{ field.type == 'select'?' filled':'' }}" id="regular-field-{{ key }}">*/
/* {% if    field.type in ['text','date','datetime','password','email','tel']  %}*/
/* {% if    field.type in ['password','email'] and false   %}*/
/* {# this was supposed to be a fix to disable autofill in chrome and other browsers that ignore automplete #} */
/* <input name="email" style="display: none;" readonly disabled type="text" />*/
/* <input name="password" style="display: none;" readonly disabled type="password" />*/
/* {% endif %} */
/* <input autocomplete="off" type="{{ field.type }}" id="input-{{ key }}" name="{{ key }}" value="{{ field.value }}"  {{ field.maximum ?'maxlength="'~field.maximum~'"':'' }} class="inputMaterial{{ field.dependency ?' dependent':'' }}{{ field.numeric ?' '~field.numeric:'' }}{{ field.is_mask ?' mask':'' }}" {% if    field.required  %} {{ "required" }}{% endif %} />*/
/* <label>{{ field.title }} */
/* <span class="{{ field.required?'required':'' }}">*/
/* {% if    field.tooltip  %} */
/* <span data-placement="right" data-toggle="tooltip" data-container="body" title="{{ field.tooltip }}" class="is_floating_tooltip"></span>*/
/* {% endif %} */
/* </span>*/
/* </label>*/
/* {{ constant('false') and field.required ?'<required data-placement="left" data-toggle="tooltip" title="Required" class="is_required"></required>':'' }} */
/* {{ constant('false') and field.tooltip?'<tooltip data-placement="left" data-toggle="tooltip" title="'~field.tooltip~'" class="is_tooltip"></tooltip>':'' }} */
/* {% elseif (field.type == 'select')  %} */
/* <select name="{{ key }}" id="input-{{ key }}" class="inputMaterial">*/
/* {% for option in field.select_values %} */
/* <option value="{{ option.value_id }}" {{ field.value == option.value_id?'selected="selected"':'' }}>{{ option.display_name }}</option>*/
/* {% endfor %} */
/* </select>*/
/* <label>{{ field.title }}{{ field.required?'<span class="required"></required>':'' }}</label>*/
/* <labelselect></labelselect>*/
/* {% endif %} */
/* </div>*/
/* {% else %} */
/* {% if customer_groups is defined and customer_group_id is defined  %} */
/* <div id="regular-field-{{ key }}" class="form-group required" style="display: {{ customer_groups|length > 1 ? 'block' : 'none' }};">*/
/*             <label class="control-label" style="padding-left: 0px;">{{ field.title }}</label>*/
/*             <div>*/
/*               {% for customer_group in customer_groups %} */
/*               {% if    customer_group.customer_group_id == customer_group_id  %} */
/*               <div>*/
/*                 <label class="pointer">*/
/*                   <input type="radio" class="input-radio" name="customer_group_id" value="{{ customer_group.customer_group_id }}" checked="checked" />*/
/*                   {{ customer_group.name }}</label>*/
/*               </div>*/
/*               {% else %} */
/*               <div>*/
/*                 <label class="pointer">*/
/*                   <input type="radio" class="input-radio" name="customer_group_id" value="{{ customer_group.customer_group_id }}" />*/
/*                   {{ customer_group.name }}</label>*/
/*               </div>*/
/*               {% endif %} */
/*               {% endfor %} */
/*             </div>*/
/*           </div>*/
/* {% endif %}          */
/* {% endif %} */
/* {% else %} */
/* <input type="hidden" name="{{ key }}" value="{{ field.value }}" />*/
/* {% endif %} */
/* {% else %} */
/* {% set custom_field = field %} */
/*     {% if  custom_field.type == 'select'  %}    */
/*     <div id="custom-field{{ custom_field.custom_field_id }}" class="group custom-field filled">      */
/*         <select name="custom_field[{{ custom_field.custom_field_id }}]" id="input-custom_field{{ custom_field.custom_field_id }}" class="inputMaterial">*/
/*           <option value="">{{ text_select }}</option>*/
/*           {% for custom_field_value in custom_field.custom_field_value %} */
/* 		  {% if    value_custom_field[custom_field['custom_field_id']] is defined and custom_field_value.custom_field_value_id == value_custom_field[custom_field['custom_field_id']]  %} */
/*           <option value="{{ custom_field_value.custom_field_value_id }}" selected="selected">{{ custom_field_value.name }}</option>*/
/*           {% else %} */
/*           <option value="{{ custom_field_value.custom_field_value_id }}">{{ custom_field_value.name }}</option>*/
/*           {% endif %}          */
/*           {% endfor %} */
/*         </select>        */
/*         <label for="input-account-custom-field{{ custom_field.custom_field_id }}">*/
/*         {{ custom_field.name }} */
/*         <span class="fieldlabel {{ custom_field.required ? 'required': '' }}">*/
/* 		{% if    custom_field.tips  %} */
/* 		<span data-placement="right" data-toggle="tooltip" data-container="body" title="{{ custom_field.tips }}" class="is_floating_tooltip"></span>*/
/* 		{% endif %} */
/* 		</span>*/
/*         </label>*/
/*         <labelselect></labelselect>*/
/*     </div>    */
/*     {% elseif custom_field.type == 'radio' %}    */
/*     <div id="custom-field{{ custom_field.custom_field_id }}" class="form-group custom-field is{{ custom_field.type }}">*/
/*       	<label class="control-label">{{ custom_field.name }} */
/*       	<span class="fieldlabel {{ custom_field.required ? 'required': '' }}">*/
/*       	{% if    custom_field.tips  %} */
/* 		<span data-placement="right" data-toggle="tooltip" data-container="body" title="{{ field.tips }}" class="is_floating_tooltip"></span>*/
/* 		{% endif %} */
/* 		</span>*/
/* 		</label>*/
/*         <div id="input-custom_field{{ custom_field.custom_field_id }}">*/
/*           {% for custom_field_value in custom_field.custom_field_value %} */
/*           <div class="">*/
/*             {% if    value_custom_field[custom_field['custom_field_id']] is defined and custom_field_value.custom_field_value_id == value_custom_field[custom_field['custom_field_id']]  %} */
/*             <label class="pointer">*/
/*               <input class="input-radio" type="radio" name="custom_field[{{ custom_field.custom_field_id }}]" value="{{ custom_field_value.custom_field_value_id }}" checked="checked" />*/
/*               {{ custom_field_value.name }}</label>*/
/*             {% else %} */
/*             <label class="pointer">*/
/*               <input class="input-radio" type="radio" name="custom_field[{{ custom_field.custom_field_id }}]" value="{{ custom_field_value.custom_field_value_id }}" />*/
/*               {{ custom_field_value.name }}</label>*/
/*             {% endif %} */
/*           </div>*/
/*           {% endfor %} */
/*         </div>*/
/*       </div>    */
/*     {% elseif custom_field.type == 'checkbox'  %} */
/*     <div id="custom-field{{ custom_field.custom_field_id }}" class="form-group custom-field is{{ custom_field.type }}">*/
/*       	<label class="control-label">{{ custom_field.name }} */
/*       	<span class="fieldlabel {{ custom_field.required ? 'required': '' }}">*/
/*       	{% if    custom_field.tips  %} */
/* 		<span data-placement="right" data-toggle="tooltip" data-container="body" title="{{ field.tips }}" class="is_floating_tooltip"></span>*/
/* 		{% endif %} */
/* 		</span>*/
/* 		</label>*/
/*         <div id="input-custom_field{{ custom_field.custom_field_id }}">*/
/*           {% for custom_field_value in custom_field.custom_field_value %} */
/*           <div class="checkbox is_checkbox">*/
/*             {% if    value_custom_field[custom_field['custom_field_id']] is defined and custom_field_value.custom_field_value_id in value_custom_field[custom_field['custom_field_id']]  %} */
/*             <label>*/
/*               <input class="input-checkbox" type="checkbox" name="custom_field[{{ custom_field.custom_field_id }}][]" value="{{ custom_field_value.custom_field_value_id }}" checked="checked" />*/
/*               {{ custom_field_value.name }} */
/*               </label>*/
/*             {% else %} */
/*             <label>*/
/*               <input class="input-checkbox" type="checkbox" name="custom_field[{{ custom_field.custom_field_id }}][]" value="{{ custom_field_value.custom_field_value_id }}" />*/
/*               {{ custom_field_value.name }} */
/*               </label>*/
/*             {% endif %} */
/*           </div>*/
/*           {% endfor %} */
/*         </div>*/
/*       </div>*/
/*     {% elseif custom_field.type == 'text'  %}    */
/*     <div id="custom-field{{ custom_field.custom_field_id }}" class="group custom-field">      */
/*         <input  type="text" name="custom_field[{{ custom_field.custom_field_id }}]" value="{{ value_custom_field[custom_field['custom_field_id']] is defined ? value_custom_field[custom_field['custom_field_id']] : custom_field.value }}" {{ custom_field.maximum ?'maxlength="'~custom_field.maximum~'"':'' }} id="input-custom_field{{ custom_field.custom_field_id }}" class="inputMaterial {% if    custom_field.isnumeric  %} {{ "numeric" }}{% endif %}" />*/
/*         <label for="input-account-custom-field{{ custom_field.custom_field_id }}">*/
/*         {{ custom_field.name }} */
/*         <span class="fieldlabel {{ custom_field.required?' required':'' }}">*/
/* 		{% if    custom_field.tips  %} */
/* 		<span data-placement="right" data-toggle="tooltip" data-container="body" title="{{ custom_field.tips }}" class="is_floating_tooltip"></span>*/
/* 		{% endif %} */
/* 		</span>*/
/*         </label>        */
/*       </div>    */
/*     {% elseif custom_field.type == 'textarea'  %}    */
/*     <div id="custom-field{{ custom_field.custom_field_id }}" class="group custom-field">      */
/*         <textarea  name="custom_field[{{ custom_field.custom_field_id }}]" rows="5" id="input-custom_field{{ custom_field.custom_field_id }}" class="inputMaterial">{{ value_custom_field[custom_field['custom_field_id']] is defined ? value_custom_field[custom_field['custom_field_id']] : custom_field.value }}</textarea>*/
/*         <label for="input-account-custom-field{{ custom_field.custom_field_id }}">*/
/*         {{ custom_field.name }} */
/*         <span class="fieldlabel {{ custom_field.required?' required':'' }}">*/
/* 		{% if    custom_field.tips  %} */
/* 		<span data-placement="right" data-toggle="tooltip" data-container="body" title="{{ custom_field.tips }}" class="is_floating_tooltip"></span>*/
/* 		{% endif %} */
/* 		</span>*/
/*         </label>*/
/*       </div>    */
/*     {% elseif custom_field.type == 'file'  %}    */
/*     <div id="custom-field{{ custom_field.custom_field_id }}" class="form-group custom-field is{{ custom_field.type }}">*/
/*       	<label class="control-label">{{ custom_field.name }} */
/*       	<span class="fieldlabel {{ custom_field.required ? 'required': '' }}">*/
/*       	{% if    custom_field.tips  %} */
/* 		<span data-placement="right" data-toggle="tooltip" data-container="body" title="{{ field.tips }}" class="is_floating_tooltip"></span>*/
/* 		{% endif %} */
/* 		</span>*/
/* 		</label>*/
/*         <button  type="button" id="button-custom-field{{ custom_field.custom_field_id }}" data-loading-text="{{ text_loading }}" class="btn btn-default"><i class="fa fa-upload"></i> {{ button_upload }}</button>*/
/*         <input type="hidden" name="custom_field[{{ custom_field.custom_field_id }}]" value="{{ value_custom_field[custom_field['custom_field_id']] is defined ? value_custom_field[custom_field['custom_field_id']] : custom_field.value }}"  id="input-custom_field{{ custom_field.custom_field_id }}" />*/
/*       </div>    */
/*     {% elseif custom_field.type == 'date'  %}    */
/*     <div id="custom-field{{ custom_field.custom_field_id }}" class="group custom-field">      */
/*         <div class="input-group date">*/
/*           <input  type="text" name="custom_field[{{ custom_field.custom_field_id }}]" value="{{ value_custom_field[custom_field['custom_field_id']] is defined ? value_custom_field[custom_field['custom_field_id']] : custom_field.value }}"  data-date-format="YYYY-MM-DD" id="input-custom_field{{ custom_field.custom_field_id }}" class="inputMaterial" />*/
/*           <label for="input-account-custom-field{{ custom_field.custom_field_id }}">*/
/* 	        {{ custom_field.name }} */
/* 	        <span class="fieldlabel {{ custom_field.required ? 'required': '' }}">*/
/* 			{% if    custom_field.tips  %} */
/* 			<span data-placement="right" data-toggle="tooltip" data-container="body" title="{{ custom_field.tips }}" class="is_floating_tooltip"></span>*/
/* 			{% endif %} */
/* 			</span>*/
/* 	        </label>*/
/*           <span class="input-group-btn">*/
/*           <button onclick="$(this).closest('.group').addClass('filled');" type="button" class="btn btn-default"><i class="fa fa-calendar"></i></button>*/
/*           </span></div>*/
/*       </div>    */
/*     {% elseif custom_field.type == 'time'  %}    */
/*     <div id="custom-field{{ custom_field.custom_field_id }}" class="group custom-field">      */
/*         <div class="input-group time">*/
/*           <input  type="text" name="custom_field[{{ custom_field.custom_field_id }}]" value="{{ value_custom_field[custom_field['custom_field_id']] is defined ? value_custom_field[custom_field['custom_field_id']] : custom_field.value }}"  data-date-format="HH:mm" id="input-custom_field{{ custom_field.custom_field_id }}" class="inputMaterial" />*/
/*           <label for="input-account-custom-field{{ custom_field.custom_field_id }}">*/
/* 	        {{ custom_field.name }} */
/* 	        <span class="fieldlabel {{ custom_field.required ? 'required': '' }}">*/
/* 			{% if    custom_field.tips  %} */
/* 			<span data-placement="right" data-toggle="tooltip" data-container="body" title="{{ custom_field.tips }}" class="is_floating_tooltip"></span>*/
/* 			{% endif %} */
/* 			</span>*/
/* 	        </label>*/
/*           <span class="input-group-btn">*/
/*           <button onclick="$(this).closest('.group').addClass('filled');" type="button" class="btn btn-default"><i class="fa fa-calendar"></i></button>*/
/*           </span></div>*/
/*       </div>    */
/*     {% elseif custom_field.type == 'datetime'  %}    */
/*     <div id="custom-field{{ custom_field.custom_field_id }}" class="group custom-field">      */
/*         <div class="input-group datetime">*/
/*           <input  type="text" name="custom_field[{{ custom_field.custom_field_id }}]" value="{{ value_custom_field[custom_field['custom_field_id']] is defined ? value_custom_field[custom_field['custom_field_id']] : custom_field.value }}"  data-date-format="YYYY-MM-DD HH:mm" id="input-custom_field{{ custom_field.custom_field_id }}" class="inputMaterial" />*/
/*           <label for="input-account-custom-field{{ custom_field.custom_field_id }}">*/
/*           {{ custom_field.name }} */
/*           <span class="fieldlabel {{ custom_field.required ? 'required': '' }}">*/
/* 		  {% if    custom_field.tips  %} */
/* 		  <span data-placement="right" data-toggle="tooltip" data-container="body" title="{{ custom_field.tips }}" class="is_floating_tooltip"></span>*/
/* 		  {% endif %} */
/* 		</span>*/
/*         </label>*/
/*           <span class="input-group-btn">*/
/*           <button onclick="$(this).closest('.group').addClass('filled');" type="button" class="btn btn-default"><i class="fa fa-calendar"></i></button>*/
/*           </span></div>*/
/*       </div>*/
/*     {% endif %} */
/*     <div class="clearfix"></div>*/
/*     {% endif %}*/
