<?php

/* journal2/template/extension/module/xtensions/account/xtensions_form.twig */
class __TwigTemplate_562497599549cba23807a97c89586e37cff7d27a4128d9911a9070a65cbd57f6 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())) {
            // line 2
            echo "    ";
            if ($this->getAttribute((isset($context["field"]) ? $context["field"] : null), "show", array())) {
                // line 3
                echo "        ";
                if (((isset($context["key"]) ? $context["key"] : null) != "customer_group_id")) {
                    // line 4
                    echo "\t\t\t<div id=\"regular-field-";
                    echo (isset($context["key"]) ? $context["key"] : null);
                    echo "\" class=\"form-group regular-field ";
                    echo (($this->getAttribute((isset($context["field"]) ? $context["field"] : null), "required", array())) ? ("required") : (""));
                    echo "\">
                ";
                    // line 5
                    if ($this->getAttribute((isset($context["field"]) ? $context["field"] : null), "tooltip", array())) {
                        // line 6
                        echo "    \t\t\t\t<label class=\"col-sm-2 control-label\" for=\"input-";
                        echo (isset($context["key"]) ? $context["key"] : null);
                        echo "\"><span data-toggle=\"tooltip\" title=\"";
                        echo $this->getAttribute((isset($context["field"]) ? $context["field"] : null), "tooltip", array());
                        echo "\">";
                        echo $this->getAttribute((isset($context["field"]) ? $context["field"] : null), "title", array());
                        echo "</span></label>
                ";
                    } else {
                        // line 8
                        echo "    \t\t\t\t<label class=\"col-sm-2 control-label\" for=\"input-";
                        echo (isset($context["key"]) ? $context["key"] : null);
                        echo "\">";
                        echo $this->getAttribute((isset($context["field"]) ? $context["field"] : null), "title", array());
                        echo "</label>
                ";
                    }
                    // line 10
                    echo "    \t\t\t<div class=\"col-sm-10\">
                ";
                    // line 11
                    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 12
                        echo "    \t\t\t\t<input type=\"";
                        echo $this->getAttribute((isset($context["field"]) ? $context["field"] : null), "type", array());
                        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), "required", array()) && $this->getAttribute((isset($context["field"]) ? $context["field"] : null), "maximum", array()))) ? ((("maxlength=\"" . $this->getAttribute((isset($context["field"]) ? $context["field"] : null), "maximum", array())) . "\"")) : (""));
                        echo " placeholder=\"";
                        echo $this->getAttribute((isset($context["field"]) ? $context["field"] : null), "title", array());
                        echo "\" id=\"input-";
                        echo (isset($context["key"]) ? $context["key"] : null);
                        echo "\" class=\"form-control";
                        echo ((($this->getAttribute((isset($context["field"]) ? $context["field"] : null), "required", array()) && $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 "\" />
                ";
                    } elseif (($this->getAttribute(                    // line 13
(isset($context["field"]) ? $context["field"] : null), "type", array()) == "select")) {
                        // line 14
                        echo "    \t\t\t\t<select name=\"";
                        echo (isset($context["key"]) ? $context["key"] : null);
                        echo "\" id=\"input-";
                        echo (isset($context["key"]) ? $context["key"] : null);
                        echo "\" class=\"form-control\">
                        ";
                        // line 15
                        $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"]) {
                            // line 16
                            echo "    \t\t\t\t\t\t<option value=\"";
                            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 18
                        echo "    \t\t\t\t</select>
                ";
                    }
                    // line 20
                    echo "                ";
                    if ($this->getAttribute((isset($context["field"]) ? $context["field"] : null), "error", array())) {
                        // line 21
                        echo "    \t\t\t\t<div class=\"text-danger\">";
                        echo $this->getAttribute((isset($context["field"]) ? $context["field"] : null), "error", array());
                        echo "</div>
                ";
                    }
                    // line 23
                    echo "    \t\t\t</div>
\t\t\t</div>
         ";
                } else {
                    // line 26
                    echo "\t\t\t<div id=\"regular-field-";
                    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 ";\">
            \t<label class=\"col-sm-2 control-label\">";
                    // line 27
                    echo (isset($context["entry_customer_group"]) ? $context["entry_customer_group"] : null);
                    echo "</label>
            \t<div class=\"col-sm-10\">
              \t";
                    // line 29
                    $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"]) {
                        // line 30
                        echo "                  ";
                        if (($this->getAttribute($context["customer_group"], "customer_group_id", array()) == (isset($context["customer_group_id"]) ? $context["customer_group_id"] : null))) {
                            // line 31
                            echo "              \t\t<div class=\"radio\">
                \t\t<label>
                  \t\t\t<input type=\"radio\" name=\"customer_group_id\" value=\"";
                            // line 33
                            echo $this->getAttribute($context["customer_group"], "customer_group_id", array());
                            echo "\" checked=\"checked\" />
                          ";
                            // line 34
                            echo $this->getAttribute($context["customer_group"], "name", array());
                            echo "
                        </label>
              \t\t</div>
                   ";
                        } else {
                            // line 38
                            echo "                    <div class=\"radio\">
                        <label>
                          <input type=\"radio\" name=\"customer_group_id\" value=\"";
                            // line 40
                            echo $this->getAttribute($context["customer_group"], "customer_group_id", array());
                            echo "\" />
                          ";
                            // line 41
                            echo $this->getAttribute($context["customer_group"], "name", array());
                            echo "</label>
                      </div>
\t\t\t       ";
                        }
                        // line 44
                        echo "\t\t\t    ";
                    }
                    $_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 45
                    echo "            </div>
          </div>
        ";
                }
            } else {
                // line 49
                echo " <input type=\"hidden\" name=\"";
                echo (isset($context["key"]) ? $context["key"] : null);
                echo "\" value=\"";
                echo $this->getAttribute((isset($context["field"]) ? $context["field"] : null), "value", array());
                echo "\" />
";
            }
        } else {
            // line 52
            $context["custom_field"] = (isset($context["field"]) ? $context["field"] : null);
            // line 53
            echo "\t\t  <div id=\"custom-field";
            echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
            echo "\" class=\"form-group custom-field";
            echo (($this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "required", array())) ? (" required") : (""));
            echo "\">
            ";
            // line 54
            if ($this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "tips", array())) {
                // line 55
                echo "\t\t\t<label class=\"col-sm-2 control-label\"><span data-toggle=\"tooltip\" title=\"";
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "tips", array());
                echo "\">";
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "name", array());
                echo "</span></label>
\t\t\t";
            } else {
                // line 57
                echo "\t\t\t<label class=\"col-sm-2 control-label\">";
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "name", array());
                echo "</label>
\t\t\t";
            }
            // line 58
            echo " \t\t\t            
            <div class=\"col-sm-10\">          
          \t";
            // line 60
            if (($this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "type", array()) == "select")) {
                // line 61
                echo "              <select name=\"custom_field[";
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "location", array());
                echo "][";
                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=\"form-control\">
                <option value=\"\">";
                // line 62
                echo (isset($context["text_select"]) ? $context["text_select"] : null);
                echo "</option>
                ";
                // line 63
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_value", array(), "array"));
                foreach ($context['_seq'] as $context["_key"] => $context["custom_field_value"]) {
                    // line 64
                    echo "                ";
                    if (($this->getAttribute((isset($context["register_custom_field"]) ? $context["register_custom_field"] : null), $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array(), "array"), array(), "array") && ($this->getAttribute($context["custom_field_value"], "custom_field_value_id", array()) == $this->getAttribute((isset($context["register_custom_field"]) ? $context["register_custom_field"] : null), $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array(), "array"), array(), "array")))) {
                        // line 65
                        echo "                <option value=\"";
                        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=\"";
                        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 "\t\t\t\t";
                }
                $_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>                       
          \t ";
            } elseif (($this->getAttribute(            // line 71
(isset($context["custom_field"]) ? $context["custom_field"] : null), "type", array()) == "radio")) {
                // line 72
                echo "              <div>
                ";
                // line 73
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_value", array(), "array"));
                foreach ($context['_seq'] as $context["_key"] => $context["custom_field_value"]) {
                    // line 74
                    echo "                <div class=\"radio\">
                  <label>
                  ";
                    // line 76
                    if (($this->getAttribute((isset($context["register_custom_field"]) ? $context["register_custom_field"] : null), $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array(), "array"), array(), "array") && ($this->getAttribute($context["custom_field_value"], "custom_field_value_id", array()) == $this->getAttribute((isset($context["register_custom_field"]) ? $context["register_custom_field"] : null), $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array(), "array"), array(), "array")))) {
                        echo "                  
                    <input type=\"radio\" name=\"custom_field[";
                        // line 77
                        echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "location", array());
                        echo "][";
                        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\" />                    
                  ";
                    } else {
                        // line 79
                        echo "                    <input type=\"radio\" name=\"custom_field[";
                        echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "location", array());
                        echo "][";
                        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 81
                    echo "                  ";
                    echo $this->getAttribute($context["custom_field_value"], "name", array());
                    echo "
                  </label>
              \t</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 84
                echo "                
              </div>         
          \t ";
            } elseif (($this->getAttribute(            // line 86
(isset($context["custom_field"]) ? $context["custom_field"] : null), "type", array()) == "checkbox")) {
                // line 87
                echo "              <div>
                ";
                // line 88
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_value", array(), "array"));
                foreach ($context['_seq'] as $context["_key"] => $context["custom_field_value"]) {
                    // line 89
                    echo "                <div class=\"checkbox\">
                 <label>
                  ";
                    // line 91
                    if (($this->getAttribute((isset($context["register_custom_field"]) ? $context["register_custom_field"] : null), $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array(), "array"), array(), "array") && twig_in_filter($this->getAttribute($context["custom_field_value"], "custom_field_value_id", array()), $this->getAttribute((isset($context["register_custom_field"]) ? $context["register_custom_field"] : null), $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array(), "array"), array(), "array")))) {
                        echo "                 \t
                   <input type=\"checkbox\" name=\"custom_field[";
                        // line 92
                        echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "location", array());
                        echo "][";
                        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\" />                    
                   ";
                    } else {
                        // line 94
                        echo "                    <input type=\"checkbox\" name=\"custom_field[";
                        echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "location", array());
                        echo "][";
                        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 96
                    echo "                  ";
                    echo $this->getAttribute($context["custom_field_value"], "name", array());
                    echo "
                  </label>
                  </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 99
                echo "                             
                </div>         
          \t ";
            } elseif (($this->getAttribute(            // line 101
(isset($context["custom_field"]) ? $context["custom_field"] : null), "type", array()) == "text")) {
                // line 102
                echo "              <input type=\"text\" name=\"custom_field[";
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "location", array());
                echo "][";
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                echo "]\" value=\"";
                echo (($this->getAttribute((isset($context["register_custom_field"]) ? $context["register_custom_field"] : null), $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array(), "array"), array(), "array")) ? ($this->getAttribute((isset($context["register_custom_field"]) ? $context["register_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 "\" placeholder=\"";
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "name", array());
                echo "\" id=\"input-custom-field";
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                echo "\" class=\"form-control ";
                echo (($this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "isnumeric", array())) ? ("numeric") : (""));
                echo "\" />          
          \t ";
            } elseif (($this->getAttribute(            // line 103
(isset($context["custom_field"]) ? $context["custom_field"] : null), "type", array()) == "textarea")) {
                // line 104
                echo "              <textarea name=\"custom_field[";
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "location", array());
                echo "][";
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                echo "]\" rows=\"5\" placeholder=\"";
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "name", array());
                echo "\" id=\"input-custom-field";
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                echo "\" class=\"form-control\">";
                echo (($this->getAttribute((isset($context["register_custom_field"]) ? $context["register_custom_field"] : null), $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array(), "array"), array(), "array")) ? ($this->getAttribute((isset($context["register_custom_field"]) ? $context["register_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>                     
          \t ";
            } elseif (($this->getAttribute(            // line 105
(isset($context["custom_field"]) ? $context["custom_field"] : null), "type", array()) == "file")) {
                // line 106
                echo "              <button type=\"button\" id=\"button-custom-field";
                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 107
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "location", array());
                echo "][";
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                echo "]\" value=\"";
                echo (($this->getAttribute((isset($context["register_custom_field"]) ? $context["register_custom_field"] : null), $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array(), "array"), array(), "array")) ? ($this->getAttribute((isset($context["register_custom_field"]) ? $context["register_custom_field"] : null), $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array(), "array"), array(), "array")) : (""));
                echo "\" />                       
          \t ";
            } elseif (($this->getAttribute(            // line 108
(isset($context["custom_field"]) ? $context["custom_field"] : null), "type", array()) == "date")) {
                // line 109
                echo "              <div class=\"input-group date\">
                <input type=\"text\" name=\"custom_field[";
                // line 110
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "location", array());
                echo "][";
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                echo "]\" value=\"";
                echo (($this->getAttribute((isset($context["register_custom_field"]) ? $context["register_custom_field"] : null), $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array(), "array"), array(), "array")) ? ($this->getAttribute((isset($context["register_custom_field"]) ? $context["register_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 "\" placeholder=\"";
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "name", 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=\"form-control\" />
                <span class=\"input-group-btn\">
                <button type=\"button\" class=\"btn btn-default\"><i class=\"fa fa-calendar\"></i></button>
                </span>
               </div>       
          \t ";
            } elseif (($this->getAttribute(            // line 115
(isset($context["custom_field"]) ? $context["custom_field"] : null), "type", array()) == "time")) {
                // line 116
                echo "              <div class=\"input-group time\">
                <input type=\"text\" name=\"custom_field[";
                // line 117
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "location", array());
                echo "][";
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                echo "]\" value=\"";
                echo (($this->getAttribute((isset($context["register_custom_field"]) ? $context["register_custom_field"] : null), $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array(), "array"), array(), "array")) ? ($this->getAttribute((isset($context["register_custom_field"]) ? $context["register_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 "\" placeholder=\"";
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "name", 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=\"form-control\" />
                <span class=\"input-group-btn\">
                <button type=\"button\" class=\"btn btn-default\"><i class=\"fa fa-calendar\"></i></button>
                </span>
               </div>     
          \t ";
            } elseif (($this->getAttribute(            // line 122
(isset($context["custom_field"]) ? $context["custom_field"] : null), "type", array()) == "datetime")) {
                // line 123
                echo "              <div class=\"input-group datetime\">
                <input type=\"text\" name=\"custom_field[";
                // line 124
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "location", array());
                echo "][";
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array());
                echo "]\" value=\"";
                echo (($this->getAttribute((isset($context["register_custom_field"]) ? $context["register_custom_field"] : null), $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array(), "array"), array(), "array")) ? ($this->getAttribute((isset($context["register_custom_field"]) ? $context["register_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 "\" placeholder=\"";
                echo $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "name", 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=\"form-control\" />
                <span class=\"input-group-btn\">
                <button type=\"button\" class=\"btn btn-default\"><i class=\"fa fa-calendar\"></i></button>
                </span>
               </div>      
          \t";
            }
            // line 130
            echo "          \t";
            if ($this->getAttribute((isset($context["error_custom_field"]) ? $context["error_custom_field"] : null), $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array(), "array"), array(), "array")) {
                // line 131
                echo "              <div class=\"text-danger\">";
                echo $this->getAttribute((isset($context["error_custom_field"]) ? $context["error_custom_field"] : null), $this->getAttribute((isset($context["custom_field"]) ? $context["custom_field"] : null), "custom_field_id", array(), "array"), array(), "array");
                echo "</div>
             ";
            }
            // line 133
            echo "            </div>
          </div>
";
        }
    }

    public function getTemplateName()
    {
        return "journal2/template/extension/module/xtensions/account/xtensions_form.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  492 => 133,  486 => 131,  483 => 130,  466 => 124,  463 => 123,  461 => 122,  445 => 117,  442 => 116,  440 => 115,  424 => 110,  421 => 109,  419 => 108,  411 => 107,  402 => 106,  400 => 105,  387 => 104,  385 => 103,  370 => 102,  368 => 101,  364 => 99,  353 => 96,  343 => 94,  334 => 92,  330 => 91,  326 => 89,  322 => 88,  319 => 87,  317 => 86,  313 => 84,  302 => 81,  292 => 79,  283 => 77,  279 => 76,  275 => 74,  271 => 73,  268 => 72,  266 => 71,  263 => 70,  257 => 69,  249 => 67,  241 => 65,  238 => 64,  234 => 63,  230 => 62,  221 => 61,  219 => 60,  215 => 58,  209 => 57,  201 => 55,  199 => 54,  192 => 53,  190 => 52,  181 => 49,  175 => 45,  169 => 44,  163 => 41,  159 => 40,  155 => 38,  148 => 34,  144 => 33,  140 => 31,  137 => 30,  133 => 29,  128 => 27,  121 => 26,  116 => 23,  110 => 21,  107 => 20,  103 => 18,  90 => 16,  86 => 15,  79 => 14,  77 => 13,  59 => 12,  57 => 11,  54 => 10,  46 => 8,  36 => 6,  34 => 5,  27 => 4,  24 => 3,  21 => 2,  19 => 1,);
    }
}
/* {% if not field.custom_field %}*/
/*     {% if field.show %}*/
/*         {% if key  !=  'customer_group_id' %}*/
/* 			<div id="regular-field-{{ key}}" class="form-group regular-field {{ field.required?'required': ''}}">*/
/*                 {% if field.tooltip %}*/
/*     				<label class="col-sm-2 control-label" for="input-{{ key}}"><span data-toggle="tooltip" title="{{ field.tooltip }}">{{ field.title }}</span></label>*/
/*                 {% else %}*/
/*     				<label class="col-sm-2 control-label" for="input-{{ key}}">{{ field.title }}</label>*/
/*                 {% endif %}*/
/*     			<div class="col-sm-10">*/
/*                 {% if field.type in ['text','date','datetime','password','email','tel'] %}*/
/*     				<input type="{{ field.type}}" name="{{ key }}" value="{{ field.value }}" {{ field.required  and  field.maximum ?'maxlength="'~field.maximum~'"': ''}} placeholder="{{ field.title }}" id="input-{{ key}}" class="form-control{{ field.required  and  field.numeric ?' '~field.numeric: ''}}{{ field.is_mask ?' mask': ''}}" />*/
/*                 {% elseif  field.type  ==  'select' %}*/
/*     				<select name="{{ key}}" id="input-{{ key}}" class="form-control">*/
/*                         {% for option in field.select_values %}*/
/*     						<option value="{{ option.value_id }}" {{ field.value == option.value_id?'selected="selected"': ''}}>{{ option.display_name }}</option>*/
/*                         {% endfor %}*/
/*     				</select>*/
/*                 {% endif %}*/
/*                 {% if field.error %}*/
/*     				<div class="text-danger">{{ field.error }}</div>*/
/*                 {% endif %}*/
/*     			</div>*/
/* 			</div>*/
/*          {% else %}*/
/* 			<div id="regular-field-{{ key}}" class="form-group required" style="display: {{ customer_groups|length  > 1 ? 'block' : 'none' }};">*/
/*             	<label class="col-sm-2 control-label">{{ entry_customer_group }}</label>*/
/*             	<div class="col-sm-10">*/
/*               	{% for customer_group in customer_groups %}*/
/*                   {% if customer_group.customer_group_id  ==  customer_group_id %}*/
/*               		<div class="radio">*/
/*                 		<label>*/
/*                   			<input type="radio" name="customer_group_id" value="{{ customer_group.customer_group_id }}" checked="checked" />*/
/*                           {{ customer_group.name }}*/
/*                         </label>*/
/*               		</div>*/
/*                    {% else %}*/
/*                     <div class="radio">*/
/*                         <label>*/
/*                           <input type="radio" name="customer_group_id" value="{{ customer_group.customer_group_id }}" />*/
/*                           {{ customer_group.name }}</label>*/
/*                       </div>*/
/* 			       {% endif %}*/
/* 			    {% endfor %}*/
/*             </div>*/
/*           </div>*/
/*         {% endif %}*/
/* {% else %}*/
/*  <input type="hidden" name="{{ key }}" value="{{ field.value }}" />*/
/* {% endif %}*/
/* {% else %}*/
/* {% set custom_field = field %}*/
/* 		  <div id="custom-field{{ custom_field.custom_field_id }}" class="form-group custom-field{{ custom_field.required ? ' required' : '' }}">*/
/*             {% if custom_field.tips %}*/
/* 			<label class="col-sm-2 control-label"><span data-toggle="tooltip" title="{{ custom_field.tips }}">{{ custom_field.name }}</span></label>*/
/* 			{% else %}*/
/* 			<label class="col-sm-2 control-label">{{ custom_field.name }}</label>*/
/* 			{% endif %} 			            */
/*             <div class="col-sm-10">          */
/*           	{% if custom_field.type  ==  'select' %}*/
/*               <select name="custom_field[{{ custom_field.location }}][{{ custom_field.custom_field_id }}]" id="input-custom-field{{ custom_field.custom_field_id }}" class="form-control">*/
/*                 <option value="">{{ text_select }}</option>*/
/*                 {% for custom_field_value in custom_field['custom_field_value'] %}*/
/*                 {% if register_custom_field[custom_field['custom_field_id']]  and  custom_field_value.custom_field_value_id  ==  register_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>                       */
/*           	 {% elseif custom_field.type  ==  'radio' %}*/
/*               <div>*/
/*                 {% for custom_field_value in custom_field['custom_field_value'] %}*/
/*                 <div class="radio">*/
/*                   <label>*/
/*                   {% if register_custom_field[custom_field['custom_field_id']]  and  custom_field_value.custom_field_value_id  ==  register_custom_field[custom_field['custom_field_id']] %}                  */
/*                     <input type="radio" name="custom_field[{{ custom_field.location }}][{{ custom_field.custom_field_id }}]" value="{{ custom_field_value.custom_field_value_id }}" checked="checked" />                    */
/*                   {% else %}*/
/*                     <input type="radio" name="custom_field[{{ custom_field.location }}][{{ custom_field.custom_field_id }}]" value="{{ custom_field_value.custom_field_value_id }}" />                    */
/*                   {% endif %}*/
/*                   {{ custom_field_value.name }}*/
/*                   </label>*/
/*               	</div>*/
/*                 {% endfor %}                */
/*               </div>         */
/*           	 {% elseif custom_field.type  ==  'checkbox' %}*/
/*               <div>*/
/*                 {% for custom_field_value in custom_field['custom_field_value'] %}*/
/*                 <div class="checkbox">*/
/*                  <label>*/
/*                   {% if register_custom_field[custom_field['custom_field_id']]  and  custom_field_value.custom_field_value_id in register_custom_field[custom_field['custom_field_id']] %}                 	*/
/*                    <input type="checkbox" name="custom_field[{{ custom_field.location}}][{{ custom_field.custom_field_id }}][]" value="{{ custom_field_value.custom_field_value_id }}" checked="checked" />                    */
/*                    {% else %}*/
/*                     <input type="checkbox" name="custom_field[{{ custom_field.location }}][{{ custom_field.custom_field_id }}][]" value="{{ custom_field_value.custom_field_value_id }}" />                   */
/*                   {% endif %}*/
/*                   {{ custom_field_value.name }}*/
/*                   </label>*/
/*                   </div> */
/*                  {% endfor %}                             */
/*                 </div>         */
/*           	 {% elseif custom_field.type  ==  'text' %}*/
/*               <input type="text" name="custom_field[{{ custom_field.location }}][{{ custom_field.custom_field_id }}]" value="{{ register_custom_field[custom_field['custom_field_id']] ? register_custom_field[custom_field['custom_field_id']] : custom_field.value}}" placeholder="{{ custom_field.name }}" id="input-custom-field{{ custom_field.custom_field_id }}" class="form-control {{ custom_field.isnumeric?'numeric':'' }}" />          */
/*           	 {% elseif custom_field.type  ==  'textarea' %}*/
/*               <textarea name="custom_field[{{ custom_field.location }}][{{ custom_field.custom_field_id }}]" rows="5" placeholder="{{ custom_field.name }}" id="input-custom-field{{ custom_field.custom_field_id }}" class="form-control">{{ register_custom_field[custom_field['custom_field_id']] ? register_custom_field[custom_field['custom_field_id']] : custom_field.value }}</textarea>                     */
/*           	 {% elseif custom_field.type  ==  'file' %}*/
/*               <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.location }}][{{ custom_field.custom_field_id }}]" value="{{ register_custom_field[custom_field['custom_field_id']] ? register_custom_field[custom_field['custom_field_id']] : '' }}" />                       */
/*           	 {% elseif custom_field.type  ==  'date' %}*/
/*               <div class="input-group date">*/
/*                 <input type="text" name="custom_field[{{ custom_field.location }}][{{ custom_field.custom_field_id }}]" value="{{ register_custom_field[custom_field['custom_field_id']] ? register_custom_field[custom_field['custom_field_id']] : custom_field.value }}" placeholder="{{ custom_field.name }}" data-date-format="YYYY-MM-DD" id="input-custom-field{{ custom_field.custom_field_id }}" class="form-control" />*/
/*                 <span class="input-group-btn">*/
/*                 <button type="button" class="btn btn-default"><i class="fa fa-calendar"></i></button>*/
/*                 </span>*/
/*                </div>       */
/*           	 {% elseif custom_field.type  ==  'time' %}*/
/*               <div class="input-group time">*/
/*                 <input type="text" name="custom_field[{{ custom_field.location }}][{{ custom_field.custom_field_id }}]" value="{{ register_custom_field[custom_field['custom_field_id']] ? register_custom_field[custom_field['custom_field_id']] : custom_field.value }}" placeholder="{{ custom_field.name }}" data-date-format="HH:mm" id="input-custom-field{{ custom_field.custom_field_id }}" class="form-control" />*/
/*                 <span class="input-group-btn">*/
/*                 <button type="button" class="btn btn-default"><i class="fa fa-calendar"></i></button>*/
/*                 </span>*/
/*                </div>     */
/*           	 {% elseif custom_field.type  ==  'datetime' %}*/
/*               <div class="input-group datetime">*/
/*                 <input type="text" name="custom_field[{{ custom_field.location }}][{{ custom_field.custom_field_id }}]" value="{{ register_custom_field[custom_field['custom_field_id']] ? register_custom_field[custom_field['custom_field_id']] : custom_field.value }}" placeholder="{{ custom_field.name }}" data-date-format="YYYY-MM-DD HH:mm" id="input-custom-field{{ custom_field.custom_field_id }}" class="form-control" />*/
/*                 <span class="input-group-btn">*/
/*                 <button type="button" class="btn btn-default"><i class="fa fa-calendar"></i></button>*/
/*                 </span>*/
/*                </div>      */
/*           	{% endif %}*/
/*           	{% if error_custom_field[custom_field['custom_field_id']] %}*/
/*               <div class="text-danger">{{ error_custom_field[custom_field['custom_field_id']] }}</div>*/
/*              {% endif %}*/
/*             </div>*/
/*           </div>*/
/* {% endif %}*/
