<?php

/* journal2/template/extension/module/xtensions/account/register.twig */
class __TwigTemplate_c58ca62ebaa9599e583e6c288cafcd6d873509d572cdcb0539661d7e1abf25b2 extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = array(
        );
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 1
        echo (isset($context["header"]) ? $context["header"] : null);
        echo "
<div id=\"container\" class=\"container j-container\">
  <ul class=\"breadcrumb\">
    ";
        // line 4
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["breadcrumbs"]) ? $context["breadcrumbs"] : null));
        foreach ($context['_seq'] as $context["_key"] => $context["breadcrumb"]) {
            // line 5
            echo "      <li itemscope itemtype=\"http://data-vocabulary.org/Breadcrumb\"><a href=\"";
            echo $this->getAttribute($context["breadcrumb"], "href", array());
            echo "\" itemprop=\"url\"><span itemprop=\"title\">";
            echo $this->getAttribute($context["breadcrumb"], "text", array());
            echo "</span></a></li>
    ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['breadcrumb'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 7
        echo "  </ul>
  ";
        // line 8
        if ((isset($context["error_warning"]) ? $context["error_warning"] : null)) {
            // line 9
            echo "    <div class=\"alert alert-danger warning\"><i class=\"fa fa-exclamation-circle\"></i> ";
            echo (isset($context["error_warning"]) ? $context["error_warning"] : null);
            echo "</div>
  ";
        }
        // line 11
        echo "  <div class=\"row\">";
        echo (isset($context["column_left"]) ? $context["column_left"] : null);
        echo (isset($context["column_right"]) ? $context["column_right"] : null);
        echo "
    ";
        // line 12
        if (((isset($context["column_left"]) ? $context["column_left"] : null) && (isset($context["column_right"]) ? $context["column_right"] : null))) {
            // line 13
            echo "      ";
            $context["class"] = "col-sm-6";
            // line 14
            echo "    ";
        } elseif (((isset($context["column_left"]) ? $context["column_left"] : null) || (isset($context["column_right"]) ? $context["column_right"] : null))) {
            // line 15
            echo "      ";
            $context["class"] = "col-sm-9";
            // line 16
            echo "    ";
        } else {
            // line 17
            echo "      ";
            $context["class"] = "col-sm-12";
            // line 18
            echo "    ";
        }
        // line 19
        echo "    <div id=\"content\" class=\"";
        echo (isset($context["class"]) ? $context["class"] : null);
        echo "\">
      <h1 class=\"heading-title\">";
        // line 20
        echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
        echo "</h1>
      ";
        // line 21
        echo (isset($context["content_top"]) ? $context["content_top"] : null);
        echo "
      <p class=\"account-text\">";
        // line 22
        echo (isset($context["text_account_already"]) ? $context["text_account_already"] : null);
        echo "</p>
      <div class=\"content\">
      <form action=\"";
        // line 24
        echo (isset($context["action"]) ? $context["action"] : null);
        echo "\" method=\"post\" enctype=\"multipart/form-data\" class=\"form-horizontal\">
        ";
        // line 25
        if ( !(isset($context["single_box"]) ? $context["single_box"] : null)) {
            // line 26
            echo "        <fieldset id=\"account\">
        <h2 class=\"secondary-title\">";
            // line 27
            echo (isset($context["text_your_details"]) ? $context["text_your_details"] : null);
            echo "</h2>
          ";
            // line 28
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["fields"]) ? $context["fields"] : null), "account", array(), "array"));
            foreach ($context['_seq'] as $context["_key"] => $context["html"]) {
                // line 29
                echo "          ";
                echo $context["html"];
                echo "
          ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['html'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 31
            echo "        </fieldset>
        <fieldset id=\"password\">
        <h2 class=\"secondary-title\">";
            // line 33
            echo (isset($context["text_your_password"]) ? $context["text_your_password"] : null);
            echo "</h2>
          ";
            // line 34
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["fields"]) ? $context["fields"] : null), "password", array(), "array"));
            foreach ($context['_seq'] as $context["_key"] => $context["html"]) {
                // line 35
                echo "          ";
                echo $context["html"];
                echo "
          ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['html'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 37
            echo "        </fieldset>       
        ";
            // line 38
            if ((isset($context["display_newsletter"]) ? $context["display_newsletter"] : null)) {
                // line 39
                echo "        <fieldset id=\"newsletter\">
        <h2 class=\"secondary-title\">";
                // line 40
                echo (isset($context["text_newsletter"]) ? $context["text_newsletter"] : null);
                echo "</h2>
          <div class=\"form-group\">
            <label class=\"col-sm-2 control-label\">";
                // line 42
                echo (isset($context["entry_newsletter"]) ? $context["entry_newsletter"] : null);
                echo "</label>
            <div class=\"col-sm-10\">
              ";
                // line 44
                if ((isset($context["newsletter"]) ? $context["newsletter"] : null)) {
                    // line 45
                    echo "              <label class=\"radio-inline\">
                <input type=\"radio\" name=\"newsletter\" value=\"1\" checked=\"checked\" />
                ";
                    // line 47
                    echo (isset($context["text_yes"]) ? $context["text_yes"] : null);
                    echo "</label>
              <label class=\"radio-inline\">
                <input type=\"radio\" name=\"newsletter\" value=\"0\" />
                ";
                    // line 50
                    echo (isset($context["text_no"]) ? $context["text_no"] : null);
                    echo "</label>
              ";
                } else {
                    // line 52
                    echo "              <label class=\"radio-inline\">
                <input type=\"radio\" name=\"newsletter\" value=\"1\" />
                ";
                    // line 54
                    echo (isset($context["text_yes"]) ? $context["text_yes"] : null);
                    echo "</label>
              <label class=\"radio-inline\">
                <input type=\"radio\" name=\"newsletter\" value=\"0\" checked=\"checked\" />
                ";
                    // line 57
                    echo (isset($context["text_no"]) ? $context["text_no"] : null);
                    echo "</label>
              ";
                }
                // line 59
                echo "            </div>
          </div>
        </fieldset>
         ";
            }
            // line 63
            echo "         ";
        } else {
            // line 64
            echo "        <fieldset id=\"account\">
        <h2 class=\"secondary-title\">";
            // line 65
            echo (isset($context["text_your_details"]) ? $context["text_your_details"] : null);
            echo "</h2>
          ";
            // line 66
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["fields"]) ? $context["fields"] : null), "all", array(), "array"));
            foreach ($context['_seq'] as $context["_key"] => $context["html"]) {
                // line 67
                echo "          ";
                echo $context["html"];
                echo "
          ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['html'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 69
            echo "          ";
            if ((isset($context["display_newsletter"]) ? $context["display_newsletter"] : null)) {
                // line 70
                echo "          <div class=\"form-group\">
            <label class=\"col-sm-2 control-label\">";
                // line 71
                echo (isset($context["entry_newsletter"]) ? $context["entry_newsletter"] : null);
                echo "</label>
            <div class=\"col-sm-10\">
              ";
                // line 73
                if ((isset($context["newsletter"]) ? $context["newsletter"] : null)) {
                    // line 74
                    echo "              <label class=\"radio-inline\">
                <input type=\"radio\" name=\"newsletter\" value=\"1\" checked=\"checked\" />
                ";
                    // line 76
                    echo (isset($context["text_yes"]) ? $context["text_yes"] : null);
                    echo "</label>
              <label class=\"radio-inline\">
                <input type=\"radio\" name=\"newsletter\" value=\"0\" />
                ";
                    // line 79
                    echo (isset($context["text_no"]) ? $context["text_no"] : null);
                    echo "</label>
              ";
                } else {
                    // line 81
                    echo "              <label class=\"radio-inline\">
                <input type=\"radio\" name=\"newsletter\" value=\"1\" />
                ";
                    // line 83
                    echo (isset($context["text_yes"]) ? $context["text_yes"] : null);
                    echo "</label>
              <label class=\"radio-inline\">
                <input type=\"radio\" name=\"newsletter\" value=\"0\" checked=\"checked\" />
                ";
                    // line 86
                    echo (isset($context["text_no"]) ? $context["text_no"] : null);
                    echo "</label>
              ";
                }
                // line 88
                echo "            </div>
          </div>
        ";
            }
            // line 90
            echo " 
        </fieldset>
        ";
        }
        // line 92
        echo " 
        ";
        // line 93
        echo (isset($context["captcha"]) ? $context["captcha"] : null);
        echo "
        ";
        // line 94
        if ((isset($context["text_agree"]) ? $context["text_agree"] : null)) {
            // line 95
            echo "        <div class=\"buttons\">
          <div class=\"pull-right\">";
            // line 96
            echo (isset($context["text_agree"]) ? $context["text_agree"] : null);
            echo "
            ";
            // line 97
            if ((isset($context["agree"]) ? $context["agree"] : null)) {
                // line 98
                echo "            <input type=\"checkbox\" name=\"agree\" value=\"1\" checked=\"checked\" />
            ";
            } else {
                // line 100
                echo "            <input type=\"checkbox\" name=\"agree\" value=\"1\" />
            ";
            }
            // line 102
            echo "            &nbsp;
            <input type=\"submit\" value=\"";
            // line 103
            echo (isset($context["button_continue"]) ? $context["button_continue"] : null);
            echo "\" class=\"btn btn-primary\" />
          </div>
        </div>
         ";
        } else {
            // line 107
            echo "        <div class=\"buttons\">
          <div class=\"pull-right\">
            <input type=\"submit\" value=\"";
            // line 109
            echo (isset($context["button_continue"]) ? $context["button_continue"] : null);
            echo "\" class=\"btn btn-primary\" />
          </div>
        </div>
\t\t";
        }
        // line 112
        echo " 
      </form>
      </div>
      ";
        // line 115
        echo (isset($context["content_bottom"]) ? $context["content_bottom"] : null);
        echo "</div>
  </div>
</div>
";
        // line 118
        if ((isset($context["mask"]) ? $context["mask"] : null)) {
            // line 119
            echo "<script type=\"text/javascript\" src=\"catalog/view/javascript/xtensions/stylesheet/bs/js/jquery.maskedinput.min.js\"></script>
<script type=\"text/javascript\">
 jQuery(function(\$){
 ";
            // line 122
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["mask"]) ? $context["mask"] : null));
            foreach ($context['_seq'] as $context["key"] => $context["value"]) {
                echo "\t      
 \$(\"#";
                // line 123
                echo $context["key"];
                echo "\").mask(\"";
                echo $context["value"];
                echo "\");\t      
 ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['key'], $context['value'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 125
            echo " });
 </script>
";
        }
        // line 127
        echo " 
<script type=\"text/javascript\" src=\"catalog/view/javascript/xtensions/stylesheet/bs/js/xcustom.js\"></script>
<script type=\"text/javascript\">
\$('input[name=\\'customer_group_id\\']').on('change', function() {
\t\$.ajax({
\t\turl: 'index.php?route=account/register/customfield&customer_group_id=' + this.value,
\t\tdataType: 'json',
\t\tsuccess: function(json) {
\t\t\t\$('.custom-field').hide();
\t\t\t\$('.custom-field').removeClass('required');

\t\t\tfor (i = 0; i < json.length; i++) {
\t\t\t\tcustom_field = json[i];

\t\t\t\t\$('#custom-field' + custom_field.custom_field_id).show();

\t\t\t\tif (custom_field.required) {
\t\t\t\t\t\$('#custom-field' + custom_field.custom_field_id).addClass('required');
\t\t\t\t}
\t\t\t}
\t\t\t

\t\t},
\t\terror: function(xhr, ajaxOptions, thrownError) {
\t\t\talert(thrownError + \"\\r\\n\" + xhr.statusText + \"\\r\\n\" + xhr.responseText);
\t\t}
\t});
});

\$('input[name=\\'customer_group_id\\']:checked').trigger('change');
</script> 
<script type=\"text/javascript\">
\$('button[id^=\\'button-custom-field\\']').on('click', function() {
\tvar node = this;

\t\$('#form-upload').remove();

\t\$('body').prepend('<form enctype=\"multipart/form-data\" id=\"form-upload\" style=\"display: none;\"><input type=\"file\" name=\"file\" /></form>');

\t\$('#form-upload input[name=\\'file\\']').trigger('click');

\tif (typeof timer != 'undefined') {
    \tclearInterval(timer);
\t}
\t
\ttimer = setInterval(function() {
\t\tif (\$('#form-upload input[name=\\'file\\']').val() != '') {
\t\t\tclearInterval(timer);
\t\t\t
\t\t\t\$.ajax({
\t\t\t\turl: 'index.php?route=tool/upload',
\t\t\t\ttype: 'post',
\t\t\t\tdataType: 'json',
\t\t\t\tdata: new FormData(\$('#form-upload')[0]),
\t\t\t\tcache: false,
\t\t\t\tcontentType: false,
\t\t\t\tprocessData: false,
\t\t\t\tbeforeSend: function() {
\t\t\t\t\t\$(node).button('loading');
\t\t\t\t},
\t\t\t\tcomplete: function() {
\t\t\t\t\t\$(node).button('reset');
\t\t\t\t},
\t\t\t\tsuccess: function(json) {
\t\t\t\t\t\$(node).parent().find('.text-danger').remove();
\t\t\t\t\t
\t\t\t\t\tif (json['error']) {
\t\t\t\t\t\t\$(node).parent().find('input').after('<div class=\"text-danger\">' + json['error'] + '</div>');
\t\t\t\t\t}
\t
\t\t\t\t\tif (json['success']) {
\t\t\t\t\t\talert(json['success']);

\t\t\t\t\t\t\$(node).parent().find('input').val(json['code']);
\t\t\t\t\t}
\t\t\t\t},
\t\t\t\terror: function(xhr, ajaxOptions, thrownError) {
\t\t\t\t\talert(thrownError + \"\\r\\n\" + xhr.statusText + \"\\r\\n\" + xhr.responseText);
\t\t\t\t}
\t\t\t});
\t\t}
\t}, 500);
});
</script> 
<script type=\"text/javascript\">
\$('.date').datetimepicker({
\tlanguage: '";
        // line 213
        echo (isset($context["datepicker"]) ? $context["datepicker"] : null);
        echo "',
\tpickTime: false
});
\$('.datetime').datetimepicker({
\tlanguage: '";
        // line 217
        echo (isset($context["datepicker"]) ? $context["datepicker"] : null);
        echo "',
\tpickDate: true,
\tpickTime: true
});
\$('.time').datetimepicker({
\tlanguage: '";
        // line 222
        echo (isset($context["datepicker"]) ? $context["datepicker"] : null);
        echo "',
\tpickDate: false
});
</script>
<style type=\"text/css\">
label.control-label span:after {
\tfont-family: FontAwesome;
\tcolor: #1E91CF;
\tcontent: \"\\f059\";
\tmargin-left: 4px;
}
</style>
";
        // line 234
        echo (isset($context["footer"]) ? $context["footer"] : null);
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  478 => 234,  463 => 222,  455 => 217,  448 => 213,  360 => 127,  355 => 125,  345 => 123,  339 => 122,  334 => 119,  332 => 118,  326 => 115,  321 => 112,  314 => 109,  310 => 107,  303 => 103,  300 => 102,  296 => 100,  292 => 98,  290 => 97,  286 => 96,  283 => 95,  281 => 94,  277 => 93,  274 => 92,  269 => 90,  264 => 88,  259 => 86,  253 => 83,  249 => 81,  244 => 79,  238 => 76,  234 => 74,  232 => 73,  227 => 71,  224 => 70,  221 => 69,  212 => 67,  208 => 66,  204 => 65,  201 => 64,  198 => 63,  192 => 59,  187 => 57,  181 => 54,  177 => 52,  172 => 50,  166 => 47,  162 => 45,  160 => 44,  155 => 42,  150 => 40,  147 => 39,  145 => 38,  142 => 37,  133 => 35,  129 => 34,  125 => 33,  121 => 31,  112 => 29,  108 => 28,  104 => 27,  101 => 26,  99 => 25,  95 => 24,  90 => 22,  86 => 21,  82 => 20,  77 => 19,  74 => 18,  71 => 17,  68 => 16,  65 => 15,  62 => 14,  59 => 13,  57 => 12,  51 => 11,  45 => 9,  43 => 8,  40 => 7,  29 => 5,  25 => 4,  19 => 1,);
    }
}
/* {{ header }}*/
/* <div id="container" class="container j-container">*/
/*   <ul class="breadcrumb">*/
/*     {% for breadcrumb in breadcrumbs %}*/
/*       <li itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a href="{{ breadcrumb.href }}" itemprop="url"><span itemprop="title">{{ breadcrumb.text }}</span></a></li>*/
/*     {% endfor %}*/
/*   </ul>*/
/*   {% if error_warning %}*/
/*     <div class="alert alert-danger warning"><i class="fa fa-exclamation-circle"></i> {{ error_warning }}</div>*/
/*   {% endif %}*/
/*   <div class="row">{{ column_left }}{{ column_right }}*/
/*     {% if column_left and column_right %}*/
/*       {% set class = 'col-sm-6' %}*/
/*     {% elseif column_left or column_right %}*/
/*       {% set class = 'col-sm-9' %}*/
/*     {% else %}*/
/*       {% set class = 'col-sm-12' %}*/
/*     {% endif %}*/
/*     <div id="content" class="{{ class }}">*/
/*       <h1 class="heading-title">{{ heading_title }}</h1>*/
/*       {{ content_top }}*/
/*       <p class="account-text">{{ text_account_already }}</p>*/
/*       <div class="content">*/
/*       <form action="{{ action }}" method="post" enctype="multipart/form-data" class="form-horizontal">*/
/*         {% if not single_box %}*/
/*         <fieldset id="account">*/
/*         <h2 class="secondary-title">{{ text_your_details }}</h2>*/
/*           {% for html in fields['account'] %}*/
/*           {{ html }}*/
/*           {% endfor %}*/
/*         </fieldset>*/
/*         <fieldset id="password">*/
/*         <h2 class="secondary-title">{{ text_your_password }}</h2>*/
/*           {% for html in fields['password'] %}*/
/*           {{ html }}*/
/*           {% endfor %}*/
/*         </fieldset>       */
/*         {% if display_newsletter %}*/
/*         <fieldset id="newsletter">*/
/*         <h2 class="secondary-title">{{ text_newsletter }}</h2>*/
/*           <div class="form-group">*/
/*             <label class="col-sm-2 control-label">{{ entry_newsletter }}</label>*/
/*             <div class="col-sm-10">*/
/*               {% if   newsletter %}*/
/*               <label class="radio-inline">*/
/*                 <input type="radio" name="newsletter" value="1" checked="checked" />*/
/*                 {{ text_yes }}</label>*/
/*               <label class="radio-inline">*/
/*                 <input type="radio" name="newsletter" value="0" />*/
/*                 {{ text_no }}</label>*/
/*               {% else %}*/
/*               <label class="radio-inline">*/
/*                 <input type="radio" name="newsletter" value="1" />*/
/*                 {{ text_yes }}</label>*/
/*               <label class="radio-inline">*/
/*                 <input type="radio" name="newsletter" value="0" checked="checked" />*/
/*                 {{ text_no }}</label>*/
/*               {% endif %}*/
/*             </div>*/
/*           </div>*/
/*         </fieldset>*/
/*          {% endif %}*/
/*          {% else %}*/
/*         <fieldset id="account">*/
/*         <h2 class="secondary-title">{{ text_your_details }}</h2>*/
/*           {% for html in fields['all'] %}*/
/*           {{ html }}*/
/*           {% endfor %}*/
/*           {% if  display_newsletter%}*/
/*           <div class="form-group">*/
/*             <label class="col-sm-2 control-label">{{ entry_newsletter }}</label>*/
/*             <div class="col-sm-10">*/
/*               {% if   newsletter %}*/
/*               <label class="radio-inline">*/
/*                 <input type="radio" name="newsletter" value="1" checked="checked" />*/
/*                 {{ text_yes }}</label>*/
/*               <label class="radio-inline">*/
/*                 <input type="radio" name="newsletter" value="0" />*/
/*                 {{ text_no }}</label>*/
/*               {% else %}*/
/*               <label class="radio-inline">*/
/*                 <input type="radio" name="newsletter" value="1" />*/
/*                 {{ text_yes }}</label>*/
/*               <label class="radio-inline">*/
/*                 <input type="radio" name="newsletter" value="0" checked="checked" />*/
/*                 {{ text_no }}</label>*/
/*               {% endif %}*/
/*             </div>*/
/*           </div>*/
/*         {% endif %} */
/*         </fieldset>*/
/*         {% endif %} */
/*         {{ captcha }}*/
/*         {% if text_agree %}*/
/*         <div class="buttons">*/
/*           <div class="pull-right">{{ text_agree }}*/
/*             {% if   agree %}*/
/*             <input type="checkbox" name="agree" value="1" checked="checked" />*/
/*             {% else %}*/
/*             <input type="checkbox" name="agree" value="1" />*/
/*             {% endif %}*/
/*             &nbsp;*/
/*             <input type="submit" value="{{ button_continue }}" class="btn btn-primary" />*/
/*           </div>*/
/*         </div>*/
/*          {% else %}*/
/*         <div class="buttons">*/
/*           <div class="pull-right">*/
/*             <input type="submit" value="{{ button_continue }}" class="btn btn-primary" />*/
/*           </div>*/
/*         </div>*/
/* 		{% endif %} */
/*       </form>*/
/*       </div>*/
/*       {{ content_bottom }}</div>*/
/*   </div>*/
/* </div>*/
/* {% if mask %}*/
/* <script type="text/javascript" src="catalog/view/javascript/xtensions/stylesheet/bs/js/jquery.maskedinput.min.js"></script>*/
/* <script type="text/javascript">*/
/*  jQuery(function($){*/
/*  {% for key, value in mask %}	      */
/*  $("#{{ key }}").mask("{{ value }}");	      */
/*  {% endfor %}*/
/*  });*/
/*  </script>*/
/* {% endif %} */
/* <script type="text/javascript" src="catalog/view/javascript/xtensions/stylesheet/bs/js/xcustom.js"></script>*/
/* <script type="text/javascript">*/
/* $('input[name=\'customer_group_id\']').on('change', function() {*/
/* 	$.ajax({*/
/* 		url: 'index.php?route=account/register/customfield&customer_group_id=' + this.value,*/
/* 		dataType: 'json',*/
/* 		success: function(json) {*/
/* 			$('.custom-field').hide();*/
/* 			$('.custom-field').removeClass('required');*/
/* */
/* 			for (i = 0; i < json.length; i++) {*/
/* 				custom_field = json[i];*/
/* */
/* 				$('#custom-field' + custom_field.custom_field_id).show();*/
/* */
/* 				if (custom_field.required) {*/
/* 					$('#custom-field' + custom_field.custom_field_id).addClass('required');*/
/* 				}*/
/* 			}*/
/* 			*/
/* */
/* 		},*/
/* 		error: function(xhr, ajaxOptions, thrownError) {*/
/* 			alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);*/
/* 		}*/
/* 	});*/
/* });*/
/* */
/* $('input[name=\'customer_group_id\']:checked').trigger('change');*/
/* </script> */
/* <script type="text/javascript">*/
/* $('button[id^=\'button-custom-field\']').on('click', function() {*/
/* 	var node = this;*/
/* */
/* 	$('#form-upload').remove();*/
/* */
/* 	$('body').prepend('<form enctype="multipart/form-data" id="form-upload" style="display: none;"><input type="file" name="file" /></form>');*/
/* */
/* 	$('#form-upload input[name=\'file\']').trigger('click');*/
/* */
/* 	if (typeof timer != 'undefined') {*/
/*     	clearInterval(timer);*/
/* 	}*/
/* 	*/
/* 	timer = setInterval(function() {*/
/* 		if ($('#form-upload input[name=\'file\']').val() != '') {*/
/* 			clearInterval(timer);*/
/* 			*/
/* 			$.ajax({*/
/* 				url: 'index.php?route=tool/upload',*/
/* 				type: 'post',*/
/* 				dataType: 'json',*/
/* 				data: new FormData($('#form-upload')[0]),*/
/* 				cache: false,*/
/* 				contentType: false,*/
/* 				processData: false,*/
/* 				beforeSend: function() {*/
/* 					$(node).button('loading');*/
/* 				},*/
/* 				complete: function() {*/
/* 					$(node).button('reset');*/
/* 				},*/
/* 				success: function(json) {*/
/* 					$(node).parent().find('.text-danger').remove();*/
/* 					*/
/* 					if (json['error']) {*/
/* 						$(node).parent().find('input').after('<div class="text-danger">' + json['error'] + '</div>');*/
/* 					}*/
/* 	*/
/* 					if (json['success']) {*/
/* 						alert(json['success']);*/
/* */
/* 						$(node).parent().find('input').val(json['code']);*/
/* 					}*/
/* 				},*/
/* 				error: function(xhr, ajaxOptions, thrownError) {*/
/* 					alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);*/
/* 				}*/
/* 			});*/
/* 		}*/
/* 	}, 500);*/
/* });*/
/* </script> */
/* <script type="text/javascript">*/
/* $('.date').datetimepicker({*/
/* 	language: '{{ datepicker }}',*/
/* 	pickTime: false*/
/* });*/
/* $('.datetime').datetimepicker({*/
/* 	language: '{{ datepicker }}',*/
/* 	pickDate: true,*/
/* 	pickTime: true*/
/* });*/
/* $('.time').datetimepicker({*/
/* 	language: '{{ datepicker }}',*/
/* 	pickDate: false*/
/* });*/
/* </script>*/
/* <style type="text/css">*/
/* label.control-label span:after {*/
/* 	font-family: FontAwesome;*/
/* 	color: #1E91CF;*/
/* 	content: "\f059";*/
/* 	margin-left: 4px;*/
/* }*/
/* </style>*/
/* {{ footer }}*/
