<?php

/* extension/module/aqe/catalog/product_quick_form.twig */
class __TwigTemplate_4ef0caf16de359146696cfe4ab6ad91f718b74ab70ff6ee65487a3a7617848b8 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 "<input type=\"hidden\" name=\"p_id\" value=\"";
        echo (isset($context["product_id"]) ? $context["product_id"] : null);
        echo "\" />
";
        // line 2
        if (twig_in_filter((isset($context["parameter"]) ? $context["parameter"] : null), array(0 => "tag", 1 => "name"))) {
            // line 3
            echo "<div class=\"row-fluid\">
\t<div class=\"col-sm-12\">
\t\t";
            // line 5
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["languages"]) ? $context["languages"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["language"]) {
                // line 6
                echo "\t\t<div class=\"input-group multi-row\">
\t\t\t<span class=\"input-group-addon\" title=\"";
                // line 7
                echo $this->getAttribute($context["language"], "name", array());
                echo "\"><img src=\"language/";
                echo $this->getAttribute($context["language"], "code", array());
                echo "/";
                echo $this->getAttribute($context["language"], "code", array());
                echo ".png\" title=\"";
                echo $this->getAttribute($context["language"], "name", array());
                echo "\" /></span>
\t\t\t<input type=\"text\" name=\"value[";
                // line 8
                echo $this->getAttribute($context["language"], "language_id", array());
                echo "]\" class=\"form-control\" value=\"";
                echo $this->getAttribute((isset($context["value"]) ? $context["value"] : null), $this->getAttribute($context["language"], "language_id", array()), array(), "array");
                echo "\" />
\t\t</div>
\t\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['language'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 11
            echo "\t</div>
</div>
";
        } elseif (twig_in_filter(        // line 13
(isset($context["parameter"]) ? $context["parameter"] : null), array(0 => "seo", 1 => "keywords"))) {
            // line 14
            echo "<div class=\"table-responsive\">
<table class=\"table table-bordered table-hover\">
\t<thead>
\t\t<tr>
\t\t\t<td class=\"text-left\">";
            // line 18
            echo (isset($context["entry_store"]) ? $context["entry_store"] : null);
            echo "</td>
\t\t\t<td class=\"text-left\">";
            // line 19
            echo (isset($context["entry_keyword"]) ? $context["entry_keyword"] : null);
            echo "</td>
\t\t</tr>
\t</thead>
\t<tbody>
\t\t";
            // line 23
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["stores"]) ? $context["stores"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["store"]) {
                // line 24
                echo "\t\t<tr>
\t\t\t<td class=\"text-left\">";
                // line 25
                echo $this->getAttribute($context["store"], "name", array());
                echo "</td>
\t\t\t<td class=\"text-left\">
\t\t\t\t";
                // line 27
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable((isset($context["languages"]) ? $context["languages"] : null));
                foreach ($context['_seq'] as $context["_key"] => $context["language"]) {
                    // line 28
                    echo "\t\t\t\t<div class=\"input-group\"><span class=\"input-group-addon\"><img src=\"language/";
                    echo $this->getAttribute($context["language"], "code", array());
                    echo "/";
                    echo $this->getAttribute($context["language"], "code", array());
                    echo ".png\" title=\"";
                    echo $this->getAttribute($context["language"], "name", array());
                    echo "\" /></span>
\t\t\t\t\t<input type=\"text\" name=\"value[";
                    // line 29
                    echo $this->getAttribute($context["store"], "store_id", array());
                    echo "][";
                    echo $this->getAttribute($context["language"], "language_id", array());
                    echo "]\" value=\"";
                    echo $this->getAttribute($this->getAttribute((isset($context["value"]) ? $context["value"] : null), $this->getAttribute($context["store"], "store_id", array()), array(), "array"), $this->getAttribute($context["language"], "language_id", array()), array(), "array");
                    echo "\" placeholder=\"";
                    echo (isset($context["entry_keyword"]) ? $context["entry_keyword"] : null);
                    echo "\" class=\"form-control\" />
\t\t\t\t</div>
\t\t\t\t";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['language'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 32
                echo "\t\t\t</td>
\t\t</tr>
\t\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['store'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 35
            echo "\t</tbody>
</table>
";
        } elseif ((        // line 37
(isset($context["parameter"]) ? $context["parameter"] : null) == "category")) {
            // line 38
            echo "<div class=\"row\">
\t<div class=\"col-sm-12\">
\t\t<input type=\"text\" name=\"category\" value=\"\" placeholder=\"";
            // line 40
            echo (isset($context["entry_category"]) ? $context["entry_category"] : null);
            echo "\" id=\"input-category\" class=\"form-control\" />
\t\t<div id=\"product-category\" class=\"well well-sm\" style=\"height: 150px; overflow: auto;\">
\t\t\t";
            // line 42
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["product_categories"]) ? $context["product_categories"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["product_category"]) {
                // line 43
                echo "\t\t\t<div id=\"product-category";
                echo $this->getAttribute($context["product_category"], "category_id", array());
                echo "\"><i class=\"fa fa-minus-circle\" onclick=\"\$(this).parent().remove();\"></i> ";
                echo $this->getAttribute($context["product_category"], "name", array());
                echo "
\t\t\t\t\t<input type=\"hidden\" name=\"product_category[]\" value=\"";
                // line 44
                echo $this->getAttribute($context["product_category"], "category_id", array());
                echo "\" />
\t\t\t</div>
\t\t\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product_category'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 47
            echo "\t\t</div>
\t</div>
</div>
<script type=\"text/javascript\"><!--
\$('input[name=\\'category\\']').autocomplete({
\t'source': function(request, response) {
\t\t\$.ajax({
\t\t\turl: 'index.php?route=catalog/category/autocomplete&user_token=";
            // line 54
            echo (isset($context["user_token"]) ? $context["user_token"] : null);
            echo "&filter_name=' +  encodeURIComponent(request),
\t\t\tdataType: 'json',
\t\t\tsuccess: function(json) {
\t\t\t\tresponse(\$.map(json, function(item) {
\t\t\t\t\treturn {
\t\t\t\t\t\tlabel: item['name'],
\t\t\t\t\t\tvalue: item['category_id']
\t\t\t\t\t}
\t\t\t\t}));
\t\t\t}
\t\t});
\t},
\t'select': function(item) {
\t\t\$('input[name=\\'category\\']').val('');

\t\t\$('#product-category' + item['value']).remove();

\t\t\$('#product-category').append('<div id=\"product-category' + item['value'] + '\"><i class=\"fa fa-minus-circle\" onclick=\"\$(this).parent().remove();\"></i> ' + item['label'] + '<input type=\"hidden\" name=\"product_category[]\" value=\"' + item['value'] + '\" /></div>');
\t}
});
//--></script>
";
        } elseif ((        // line 75
(isset($context["parameter"]) ? $context["parameter"] : null) == "store")) {
            // line 76
            echo "<div class=\"row\">
\t<div class=\"col-sm-12\">
\t\t<div class=\"well well-sm\" style=\"height: 150px; overflow: auto;\">
\t\t\t";
            // line 79
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["stores"]) ? $context["stores"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["store"]) {
                // line 80
                echo "\t\t\t<div class=\"checkbox\">
\t\t\t\t<label>
\t\t\t\t\t<input type=\"checkbox\" name=\"product_store[]\" value=\"";
                // line 82
                echo $this->getAttribute($context["store"], "store_id", array());
                echo "\"";
                echo ((twig_in_filter($this->getAttribute($context["store"], "store_id", array()), (isset($context["product_store"]) ? $context["product_store"] : null))) ? (" checked=\"checked\"") : (""));
                echo "/>
\t\t\t\t\t";
                // line 83
                echo $this->getAttribute($context["store"], "name", array());
                echo "
\t\t\t\t</label>
\t\t\t</div>
\t\t\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['store'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 87
            echo "\t\t</div>
\t</div>
</div>
";
        } elseif (twig_in_filter(        // line 90
(isset($context["parameter"]) ? $context["parameter"] : null), array(0 => "filter", 1 => "filters"))) {
            // line 91
            echo "<div class=\"row\">
\t<div class=\"col-sm-12\">
\t\t<input type=\"text\" name=\"filter\" value=\"\" placeholder=\"";
            // line 93
            echo (isset($context["entry_filter"]) ? $context["entry_filter"] : null);
            echo "\" id=\"input-filter\" class=\"form-control\" />
\t\t<div id=\"product-filter\" class=\"well well-sm\" style=\"height: 150px; overflow: auto;\">
\t\t\t";
            // line 95
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["product_filters"]) ? $context["product_filters"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["product_filter"]) {
                // line 96
                echo "\t\t\t<div id=\"product-filter";
                echo $this->getAttribute($context["product_filter"], "filter_id", array());
                echo "\"><i class=\"fa fa-minus-circle\" onclick=\"\$(this).parent().remove();\"></i> ";
                echo $this->getAttribute($context["product_filter"], "name", array());
                echo "
\t\t\t\t\t<input type=\"hidden\" name=\"product_filter[]\" value=\"";
                // line 97
                echo $this->getAttribute($context["product_filter"], "filter_id", array());
                echo "\" />
\t\t\t</div>
\t\t\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product_filter'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 100
            echo "\t\t</div>
\t</div>
</div>
<script type=\"text/javascript\"><!--
\$('input[name=\\'filter\\']').autocomplete({
\t'source': function(request, response) {
\t\t\$.ajax({
\t\t\turl: 'index.php?route=catalog/filter/autocomplete&user_token=";
            // line 107
            echo (isset($context["user_token"]) ? $context["user_token"] : null);
            echo "&filter_name=' +  encodeURIComponent(request),
\t\t\tdataType: 'json',
\t\t\tsuccess: function(json) {
\t\t\t\tresponse(\$.map(json, function(item) {
\t\t\t\t\treturn {
\t\t\t\t\t\tlabel: item['name'],
\t\t\t\t\t\tvalue: item['filter_id']
\t\t\t\t\t}
\t\t\t\t}));
\t\t\t}
\t\t});
\t},
\t'select': function(item) {
\t\t\$('input[name=\\'filter\\']').val('');

\t\t\$('#product-filter' + item['value']).remove();

\t\t\$('#product-filter').append('<div id=\"product-filter' + item['value'] + '\"><i class=\"fa fa-minus-circle\" onclick=\"\$(this).parent().remove();\"></i> ' + item['label'] + '<input type=\"hidden\" name=\"product_filter[]\" value=\"' + item['value'] + '\" /></div>');
\t}
});
//--></script>
";
        } elseif ((        // line 128
(isset($context["parameter"]) ? $context["parameter"] : null) == "attributes")) {
            // line 129
            echo "<div class=\"table-responsive\">
\t<table class=\"table table-striped table-bordered table-hover\" id=\"attributes\">
\t\t<thead>
\t\t\t<tr>
\t\t\t\t<td class=\"text-left\">";
            // line 133
            echo (isset($context["entry_attribute"]) ? $context["entry_attribute"] : null);
            echo "</td>
\t\t\t\t<td class=\"text-left\">";
            // line 134
            echo (isset($context["entry_text"]) ? $context["entry_text"] : null);
            echo "</td>
\t\t\t\t<td width=\"1\"></td>
\t\t\t</tr>
\t\t</thead>
\t\t<tbody>
\t\t\t";
            // line 139
            $context["attribute_row"] = 0;
            // line 140
            echo "\t\t\t";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["product_attributes"]) ? $context["product_attributes"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["product_attribute"]) {
                // line 141
                echo "\t\t\t<tr id=\"attribute-row";
                echo (isset($context["attribute_row"]) ? $context["attribute_row"] : null);
                echo "\">
\t\t\t\t<td class=\"text-left\" style=\"width:25%;\"><input type=\"text\" name=\"product_attribute[";
                // line 142
                echo (isset($context["attribute_row"]) ? $context["attribute_row"] : null);
                echo "][name]\" value=\"";
                echo $this->getAttribute($context["product_attribute"], "name", array());
                echo "\" placeholder=\"";
                echo (isset($context["entry_attribute"]) ? $context["entry_attribute"] : null);
                echo "\" class=\"form-control\" />
\t\t\t\t\t<input type=\"hidden\" name=\"product_attribute[";
                // line 143
                echo (isset($context["attribute_row"]) ? $context["attribute_row"] : null);
                echo "][attribute_id]\" value=\"";
                echo $this->getAttribute($context["product_attribute"], "attribute_id", array());
                echo "\" /></td>
\t\t\t\t<td class=\"text-left\">";
                // line 144
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable((isset($context["languages"]) ? $context["languages"] : null));
                foreach ($context['_seq'] as $context["_key"] => $context["language"]) {
                    // line 145
                    echo "\t\t\t\t\t<div class=\"input-group\"><span class=\"input-group-addon\"><img src=\"language/";
                    echo $this->getAttribute($context["language"], "code", array());
                    echo "/";
                    echo $this->getAttribute($context["language"], "code", array());
                    echo ".png\" title=\"";
                    echo $this->getAttribute($context["language"], "name", array());
                    echo "\" /></span>
\t\t\t\t\t\t<textarea name=\"product_attribute[";
                    // line 146
                    echo (isset($context["attribute_row"]) ? $context["attribute_row"] : null);
                    echo "][product_attribute_description][";
                    echo $this->getAttribute($context["language"], "language_id", array());
                    echo "][text]\" rows=\"5\" placeholder=\"";
                    echo (isset($context["entry_text"]) ? $context["entry_text"] : null);
                    echo "\" class=\"form-control\">";
                    echo $this->getAttribute($this->getAttribute($this->getAttribute($context["product_attribute"], "product_attribute_description", array()), $this->getAttribute($context["language"], "language_id", array()), array(), "array"), "text", array());
                    echo "</textarea>
\t\t\t\t\t</div>
\t\t\t\t\t";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['language'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 148
                echo "</td>
\t\t\t\t<td class=\"text-left\"><button type=\"button\" onclick=\"\$(this).tooltip('destroy');\$('#attribute-row";
                // line 149
                echo (isset($context["attribute_row"]) ? $context["attribute_row"] : null);
                echo "').remove();\" data-toggle=\"tooltip\" title=\"";
                echo (isset($context["button_remove"]) ? $context["button_remove"] : null);
                echo "\" class=\"btn btn-danger\"><i class=\"fa fa-minus-circle\"></i></button></td>
\t\t\t</tr>
\t\t\t";
                // line 151
                $context["attribute_row"] = ((isset($context["attribute_row"]) ? $context["attribute_row"] : null) + 1);
                // line 152
                echo "\t\t\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product_attribute'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 153
            echo "\t\t</tbody>
\t\t<tfoot>
\t\t\t<tr>
\t\t\t\t<td colspan=\"2\"></td>
\t\t\t\t<td class=\"text-left\"><button type=\"button\" onclick=\"addAttribute();\" data-toggle=\"tooltip\" title=\"";
            // line 157
            echo (isset($context["button_attribute_add"]) ? $context["button_attribute_add"] : null);
            echo "\" class=\"btn btn-primary\"><i class=\"fa fa-plus-circle\"></i></button></td>
\t\t\t</tr>
\t\t</tfoot>
\t</table>
</div>
<script type=\"text/javascript\"><!--
var attribute_row = ";
            // line 163
            echo (isset($context["attribute_row"]) ? $context["attribute_row"] : null);
            echo ";

function addAttribute() {
\thtml  = '  <tr id=\"attribute-row' + attribute_row + '\">';
\thtml += '    <td class=\"text-left\" style=\"width:25%;\"><input type=\"text\" name=\"product_attribute[' + attribute_row + '][name]\" value=\"\" placeholder=\"";
            // line 167
            echo (isset($context["entry_attribute"]) ? $context["entry_attribute"] : null);
            echo "\" class=\"form-control\" /><input type=\"hidden\" name=\"product_attribute[' + attribute_row + '][attribute_id]\" value=\"\" /></td>';
\thtml += '    <td class=\"text-left\">';
\t";
            // line 169
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["languages"]) ? $context["languages"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["language"]) {
                // line 170
                echo "\thtml += '      <div class=\"input-group\"><span class=\"input-group-addon\"><img src=\"language/";
                echo $this->getAttribute($context["language"], "code", array());
                echo "/";
                echo $this->getAttribute($context["language"], "code", array());
                echo ".png\" title=\"";
                echo $this->getAttribute($context["language"], "name", array());
                echo "\" /></span><textarea name=\"product_attribute[' + attribute_row + '][product_attribute_description][";
                echo $this->getAttribute($context["language"], "language_id", array());
                echo "][text]\" rows=\"5\" placeholder=\"";
                echo (isset($context["entry_text"]) ? $context["entry_text"] : null);
                echo "\" class=\"form-control\"></textarea></div>';
\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['language'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 172
            echo "\thtml += '    </td>';
\thtml += '    <td class=\"text-left\"><button type=\"button\" onclick=\"\$(this).tooltip(\\'destroy\\');\$(\\'#attribute-row' + attribute_row + '\\').remove();\" data-toggle=\"tooltip\" title=\"";
            // line 173
            echo (isset($context["button_remove"]) ? $context["button_remove"] : null);
            echo "\" class=\"btn btn-danger\"><i class=\"fa fa-minus-circle\"></i></button></td>';
\thtml += '  </tr>';

\t\$('#attributes tbody').append(html);

\tattributeautocomplete(attribute_row);

\t\$('#attribute-row' + attribute_row + ' [data-toggle=\\'tooltip\\']').tooltip({container: 'body'});

\tattribute_row++;
}

function attributeautocomplete(attribute_row) {
\t\$('input[name=\\'product_attribute[' + attribute_row + '][name]\\']').autocomplete({
\t\tsource: function(request, response) {
\t\t\t\$.ajax({
\t\t\t\turl: 'index.php?route=catalog/attribute/autocomplete&user_token=";
            // line 189
            echo (isset($context["user_token"]) ? $context["user_token"] : null);
            echo "&filter_name=' +  encodeURIComponent(request),
\t\t\t\tdataType: 'json',
\t\t\t\tsuccess: function(json) {
\t\t\t\t\tresponse(\$.map(json, function(item) {
\t\t\t\t\t\treturn {
\t\t\t\t\t\t\tcategory: item.attribute_group,
\t\t\t\t\t\t\tlabel: item.name,
\t\t\t\t\t\t\tvalue: item.attribute_id
\t\t\t\t\t\t}
\t\t\t\t\t}));
\t\t\t\t}
\t\t\t});
\t\t},
\t\tselect: function(item) {
\t\t\t\$('input[name=\\'product_attribute[' + attribute_row + '][name]\\']').val(item['label']);
\t\t\t\$('input[name=\\'product_attribute[' + attribute_row + '][attribute_id]\\']').val(item['value']);
\t\t}
\t});
}

\$('#attributes tbody tr').each(function(index, element) {
\tattributeautocomplete(index);
});
//--></script>
";
        } elseif ((        // line 213
(isset($context["parameter"]) ? $context["parameter"] : null) == "discounts")) {
            // line 214
            echo "<div class=\"table-responsive\">
\t<table class=\"table table-striped table-bordered table-hover\" id=\"discounts\">
\t\t<thead>
\t\t\t<tr>
\t\t\t\t<td class=\"text-left\">";
            // line 218
            echo (isset($context["entry_customer_group"]) ? $context["entry_customer_group"] : null);
            echo "</td>
\t\t\t\t<td class=\"text-right\">";
            // line 219
            echo (isset($context["entry_quantity"]) ? $context["entry_quantity"] : null);
            echo "</td>
\t\t\t\t<td class=\"text-right\">";
            // line 220
            echo (isset($context["entry_priority"]) ? $context["entry_priority"] : null);
            echo "</td>
\t\t\t\t<td class=\"text-right\">";
            // line 221
            echo (isset($context["entry_price"]) ? $context["entry_price"] : null);
            echo "</td>
\t\t\t\t<td class=\"text-left\">";
            // line 222
            echo (isset($context["entry_date_start"]) ? $context["entry_date_start"] : null);
            echo "</td>
\t\t\t\t<td class=\"text-left\">";
            // line 223
            echo (isset($context["entry_date_end"]) ? $context["entry_date_end"] : null);
            echo "</td>
\t\t\t\t<td width=\"1\"></td>
\t\t\t</tr>
\t\t</thead>
\t\t<tbody>
\t\t\t";
            // line 228
            $context["discount_row"] = 0;
            // line 229
            echo "\t\t\t";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["product_discounts"]) ? $context["product_discounts"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["product_discount"]) {
                // line 230
                echo "\t\t\t<tr id=\"discount-row";
                echo (isset($context["discount_row"]) ? $context["discount_row"] : null);
                echo "\">
\t\t\t\t<td class=\"text-left\"><select name=\"product_discount[";
                // line 231
                echo (isset($context["discount_row"]) ? $context["discount_row"] : null);
                echo "][customer_group_id]\" class=\"form-control\">
\t\t\t\t\t\t";
                // line 232
                $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 233
                    echo "\t\t\t\t\t\t";
                    if (($this->getAttribute($context["customer_group"], "customer_group_id", array()) == $this->getAttribute($context["product_discount"], "customer_group_id", array()))) {
                        // line 234
                        echo "\t\t\t\t\t\t<option value=\"";
                        echo $this->getAttribute($context["customer_group"], "customer_group_id", array());
                        echo "\" selected=\"selected\">";
                        echo $this->getAttribute($context["customer_group"], "name", array());
                        echo "</option>
\t\t\t\t\t\t";
                    } else {
                        // line 236
                        echo "\t\t\t\t\t\t<option value=\"";
                        echo $this->getAttribute($context["customer_group"], "customer_group_id", array());
                        echo "\">";
                        echo $this->getAttribute($context["customer_group"], "name", array());
                        echo "</option>
\t\t\t\t\t\t";
                    }
                    // line 238
                    echo "\t\t\t\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 239
                echo "\t\t\t\t\t</select></td>
\t\t\t\t<td class=\"text-right\"><input type=\"text\" name=\"product_discount[";
                // line 240
                echo (isset($context["discount_row"]) ? $context["discount_row"] : null);
                echo "][quantity]\" value=\"";
                echo $this->getAttribute($context["product_discount"], "quantity", array());
                echo "\" placeholder=\"";
                echo (isset($context["entry_quantity"]) ? $context["entry_quantity"] : null);
                echo "\" class=\"form-control\" /></td>
\t\t\t\t<td class=\"text-right\"><input type=\"text\" name=\"product_discount[";
                // line 241
                echo (isset($context["discount_row"]) ? $context["discount_row"] : null);
                echo "][priority]\" value=\"";
                echo $this->getAttribute($context["product_discount"], "priority", array());
                echo "\" placeholder=\"";
                echo (isset($context["entry_priority"]) ? $context["entry_priority"] : null);
                echo "\" class=\"form-control\" /></td>
\t\t\t\t<td class=\"text-right\"><input type=\"text\" name=\"product_discount[";
                // line 242
                echo (isset($context["discount_row"]) ? $context["discount_row"] : null);
                echo "][price]\" value=\"";
                echo $this->getAttribute($context["product_discount"], "price", array());
                echo "\" placeholder=\"";
                echo (isset($context["entry_price"]) ? $context["entry_price"] : null);
                echo "\" class=\"form-control\" /></td>
\t\t\t\t<td class=\"text-left\" style=\"width: 20%;\"><div class=\"input-group date\">
\t\t\t\t\t\t<input type=\"text\" name=\"product_discount[";
                // line 244
                echo (isset($context["discount_row"]) ? $context["discount_row"] : null);
                echo "][date_start]\" value=\"";
                echo $this->getAttribute($context["product_discount"], "date_start", array());
                echo "\" placeholder=\"";
                echo (isset($context["entry_date_start"]) ? $context["entry_date_start"] : null);
                echo "\" data-date-format=\"YYYY-MM-DD\" class=\"form-control\" />
\t\t\t\t\t\t<span class=\"input-group-btn\">
\t\t\t\t\t\t<button class=\"btn btn-default\" type=\"button\"><i class=\"fa fa-calendar\"></i></button>
\t\t\t\t\t\t</span></div></td>
\t\t\t\t<td class=\"text-left\" style=\"width: 20%;\"><div class=\"input-group date\">
\t\t\t\t\t\t<input type=\"text\" name=\"product_discount[";
                // line 249
                echo (isset($context["discount_row"]) ? $context["discount_row"] : null);
                echo "][date_end]\" value=\"";
                echo $this->getAttribute($context["product_discount"], "date_end", array());
                echo "\" placeholder=\"";
                echo (isset($context["entry_date_end"]) ? $context["entry_date_end"] : null);
                echo "\" data-date-format=\"YYYY-MM-DD\" class=\"form-control\" />
\t\t\t\t\t\t<span class=\"input-group-btn\">
\t\t\t\t\t\t<button class=\"btn btn-default\" type=\"button\"><i class=\"fa fa-calendar\"></i></button>
\t\t\t\t\t\t</span></div></td>
\t\t\t\t<td class=\"text-left\">
\t\t\t\t\t<input type=\"hidden\" name=\"product_discount[";
                // line 254
                echo (isset($context["discount_row"]) ? $context["discount_row"] : null);
                echo "][discount_id]\" value=\"";
                echo $this->getAttribute($context["product_discount"], "discount_id", array());
                echo "\" />
\t\t\t\t\t<button type=\"button\" onclick=\"\$(this).tooltip('destroy');\$('#discount-row";
                // line 255
                echo (isset($context["discount_row"]) ? $context["discount_row"] : null);
                echo "').remove();\" data-toggle=\"tooltip\" title=\"";
                echo (isset($context["button_remove"]) ? $context["button_remove"] : null);
                echo "\" class=\"btn btn-danger\"><i class=\"fa fa-minus-circle\"></i></button>
\t\t\t\t</td>
\t\t\t</tr>
\t\t\t";
                // line 258
                $context["discount_row"] = ((isset($context["discount_row"]) ? $context["discount_row"] : null) + 1);
                // line 259
                echo "\t\t\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product_discount'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 260
            echo "\t\t</tbody>
\t\t<tfoot>
\t\t\t<tr>
\t\t\t\t<td colspan=\"6\"></td>
\t\t\t\t<td class=\"text-left\"><button type=\"button\" onclick=\"addDiscount();\" data-toggle=\"tooltip\" title=\"";
            // line 264
            echo (isset($context["button_discount_add"]) ? $context["button_discount_add"] : null);
            echo "\" class=\"btn btn-primary\"><i class=\"fa fa-plus-circle\"></i></button></td>
\t\t\t</tr>
\t\t</tfoot>
\t</table>
</div>
<script type=\"text/javascript\"><!--
var discount_row = ";
            // line 270
            echo (isset($context["discount_row"]) ? $context["discount_row"] : null);
            echo ";

function addDiscount() {
\thtml  = '  <tr id=\"discount-row' + discount_row + '\">';
\thtml += '    <td class=\"text-left\"><select name=\"product_discount[' + discount_row + '][customer_group_id]\" class=\"form-control\">';
\t";
            // line 275
            $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 276
                echo "\thtml += '      <option value=\"";
                echo $this->getAttribute($context["customer_group"], "customer_group_id", array());
                echo "\">";
                echo addslashes($this->getAttribute($context["customer_group"], "name", array()));
                echo "</option>';
\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 278
            echo "\thtml += '    </select></td>';
\thtml += '    <td class=\"text-right\"><input type=\"text\" name=\"product_discount[' + discount_row + '][quantity]\" value=\"\" placeholder=\"";
            // line 279
            echo (isset($context["entry_quantity"]) ? $context["entry_quantity"] : null);
            echo "\" class=\"form-control\" /></td>';
\thtml += '    <td class=\"text-right\"><input type=\"text\" name=\"product_discount[' + discount_row + '][priority]\" value=\"\" placeholder=\"";
            // line 280
            echo (isset($context["entry_priority"]) ? $context["entry_priority"] : null);
            echo "\" class=\"form-control\" /></td>';
\thtml += '    <td class=\"text-right\"><input type=\"text\" name=\"product_discount[' + discount_row + '][price]\" value=\"\" placeholder=\"";
            // line 281
            echo (isset($context["entry_price"]) ? $context["entry_price"] : null);
            echo "\" class=\"form-control\" /></td>';
\thtml += '    <td class=\"text-left\"><div class=\"input-group date\"><input type=\"text\" name=\"product_discount[' + discount_row + '][date_start]\" value=\"\" placeholder=\"";
            // line 282
            echo (isset($context["entry_date_start"]) ? $context["entry_date_start"] : null);
            echo "\" data-date-format=\"YYYY-MM-DD\" class=\"form-control\" /><span class=\"input-group-btn\"><button type=\"button\" class=\"btn btn-default\"><i class=\"fa fa-calendar\"></i></button></span></div></td>';
\thtml += '    <td class=\"text-left\"><div class=\"input-group date\"><input type=\"text\" name=\"product_discount[' + discount_row + '][date_end]\" value=\"\" placeholder=\"";
            // line 283
            echo (isset($context["entry_date_end"]) ? $context["entry_date_end"] : null);
            echo "\" data-date-format=\"YYYY-MM-DD\" class=\"form-control\" /><span class=\"input-group-btn\"><button type=\"button\" class=\"btn btn-default\"><i class=\"fa fa-calendar\"></i></button></span></div></td>';
\thtml += '    <td class=\"text-left\"><button type=\"button\" onclick=\"\$(this).tooltip(\\'destroy\\');\$(\\'#discount-row' + discount_row + '\\').remove();\" data-toggle=\"tooltip\" title=\"";
            // line 284
            echo (isset($context["button_remove"]) ? $context["button_remove"] : null);
            echo "\" class=\"btn btn-danger\"><i class=\"fa fa-minus-circle\"></i></button></td>';
\thtml += '  </tr>';

\t\$('#discounts tbody').append(html);

\t\$('#discount-row' + discount_row + ' .date').datetimepicker({pickTime: false});

\t\$('#discount-row' + discount_row + ' [data-toggle=\\'tooltip\\']').tooltip({container: 'body'});

\tdiscount_row++;
}
\$('#discounts tbody .date').datetimepicker({pickTime: false});
//--></script>
";
        } elseif ((        // line 297
(isset($context["parameter"]) ? $context["parameter"] : null) == "images")) {
            // line 298
            echo "<div class=\"table-responsive\">
\t<table id=\"images\" class=\"table table-striped table-bordered table-hover\">
\t\t<thead>
\t\t\t<tr>
\t\t\t\t<td class=\"text-left\">";
            // line 302
            echo (isset($context["entry_image"]) ? $context["entry_image"] : null);
            echo "</td>
\t\t\t\t<td class=\"text-right\">";
            // line 303
            echo (isset($context["entry_sort_order"]) ? $context["entry_sort_order"] : null);
            echo "</td>
\t\t\t\t<td width=\"1\"></td>
\t\t\t</tr>
\t\t</thead>
\t\t<tbody>
\t\t\t";
            // line 308
            $context["image_row"] = 0;
            // line 309
            echo "\t\t\t";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["product_images"]) ? $context["product_images"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["product_image"]) {
                // line 310
                echo "\t\t\t<tr id=\"image-row";
                echo (isset($context["image_row"]) ? $context["image_row"] : null);
                echo "\">
\t\t<td class=\"text-left\"><a href=\"\" id=\"thumb-image";
                // line 311
                echo (isset($context["image_row"]) ? $context["image_row"] : null);
                echo "\" data-toggle=\"image\" class=\"img-thumbnail\"><img src=\"";
                echo $this->getAttribute($context["product_image"], "thumb", array());
                echo "\" alt=\"\" title=\"\" data-placeholder=\"";
                echo (isset($context["placeholder"]) ? $context["placeholder"] : null);
                echo "\" /></a><input type=\"hidden\" name=\"product_image[";
                echo (isset($context["image_row"]) ? $context["image_row"] : null);
                echo "][image]\" value=\"";
                echo $this->getAttribute($context["product_image"], "image", array());
                echo "\" id=\"input-image";
                echo (isset($context["image_row"]) ? $context["image_row"] : null);
                echo "\" /></td>
\t\t<td class=\"text-right\"><input type=\"text\" name=\"product_image[";
                // line 312
                echo (isset($context["image_row"]) ? $context["image_row"] : null);
                echo "][sort_order]\" value=\"";
                echo $this->getAttribute($context["product_image"], "sort_order", array());
                echo "\" placeholder=\"";
                echo (isset($context["entry_sort_order"]) ? $context["entry_sort_order"] : null);
                echo "\" class=\"form-control\" /></td>
\t\t<td class=\"text-left\"><button type=\"button\" onclick=\"\$(this).tooltip('destroy');\$('#image-row";
                // line 313
                echo (isset($context["image_row"]) ? $context["image_row"] : null);
                echo "').remove();\" data-toggle=\"tooltip\" title=\"";
                echo (isset($context["button_remove"]) ? $context["button_remove"] : null);
                echo "\" class=\"btn btn-danger\"><i class=\"fa fa-minus-circle\"></i></button></td>
\t\t\t</tr>
\t\t\t";
                // line 315
                $context["image_row"] = ((isset($context["image_row"]) ? $context["image_row"] : null) + 1);
                // line 316
                echo "\t\t\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product_image'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 317
            echo "\t\t</tbody>
\t\t<tfoot>
\t\t\t<tr>
\t\t\t\t<td colspan=\"2\"></td>
\t\t<td class=\"text-left\"><button type=\"button\" onclick=\"addImage();\" data-toggle=\"tooltip\" title=\"";
            // line 321
            echo (isset($context["button_image_add"]) ? $context["button_image_add"] : null);
            echo "\" class=\"btn btn-primary\"><i class=\"fa fa-plus-circle\"></i></button></td>
\t\t\t</tr>
\t\t</tfoot>
\t</table>
</div>
<script type=\"text/javascript\"><!--
var image_row = ";
            // line 327
            echo (isset($context["image_row"]) ? $context["image_row"] : null);
            echo ";

function addImage() {
\thtml  = '<tr id=\"image-row' + image_row + '\">';
\thtml += '  <td class=\"text-left\"><a href=\"\" id=\"thumb-image' + image_row + '\"data-toggle=\"image\" class=\"img-thumbnail\"><img src=\"";
            // line 331
            echo (isset($context["placeholder"]) ? $context["placeholder"] : null);
            echo "\" alt=\"\" title=\"\" data-placeholder=\"";
            echo (isset($context["placeholder"]) ? $context["placeholder"] : null);
            echo "\" /><input type=\"hidden\" name=\"product_image[' + image_row + '][image]\" value=\"\" id=\"input-image' + image_row + '\" /></td>';
\thtml += '  <td class=\"text-right\"><input type=\"text\" name=\"product_image[' + image_row + '][sort_order]\" value=\"\" placeholder=\"";
            // line 332
            echo (isset($context["entry_sort_order"]) ? $context["entry_sort_order"] : null);
            echo "\" class=\"form-control\" /></td>';
\thtml += '  <td class=\"text-left\"><button type=\"button\" onclick=\"\$(this).tooltip(\\'destroy\\');\$(\\'#image-row' + image_row  + '\\').remove();\" data-toggle=\"tooltip\" title=\"";
            // line 333
            echo (isset($context["button_remove"]) ? $context["button_remove"] : null);
            echo "\" class=\"btn btn-danger\"><i class=\"fa fa-minus-circle\"></i></button></td>';
\thtml += '</tr>';

\t\$('#images tbody').append(html);

\t\$('#image-row' + image_row + ' [data-toggle=\\'tooltip\\']').tooltip({container: 'body'});

\timage_row++;
}
//--></script>
";
        } elseif ((        // line 343
(isset($context["parameter"]) ? $context["parameter"] : null) == "options")) {
            // line 344
            echo "<div class=\"row\" id=\"options-data\">
\t<div class=\"col-sm-3\">
\t\t<ul class=\"nav nav-pills nav-stacked\" id=\"option\">
\t\t\t";
            // line 347
            $context["option_row"] = 0;
            // line 348
            echo "\t\t\t";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["product_options"]) ? $context["product_options"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["product_option"]) {
                // line 349
                echo "\t\t\t<li><a href=\"#tab-option";
                echo (isset($context["option_row"]) ? $context["option_row"] : null);
                echo "\" data-toggle=\"tab\"><i class=\"fa fa-minus-circle\" onclick=\"\$('a[href=\\'#tab-option";
                echo (isset($context["option_row"]) ? $context["option_row"] : null);
                echo "\\']').parent().remove(); \$('#tab-option";
                echo (isset($context["option_row"]) ? $context["option_row"] : null);
                echo "').remove(); \$('#option a:first').tab('show');\"></i> ";
                echo $this->getAttribute($context["product_option"], "name", array());
                echo "</a></li>
\t\t\t";
                // line 350
                $context["option_row"] = ((isset($context["option_row"]) ? $context["option_row"] : null) + 1);
                // line 351
                echo "\t\t\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product_option'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 352
            echo "\t\t\t<li>
\t\t\t\t<input type=\"text\" name=\"option\" value=\"\" placeholder=\"";
            // line 353
            echo (isset($context["entry_option"]) ? $context["entry_option"] : null);
            echo "\" id=\"input-option\" class=\"form-control\" />
\t\t\t</li>
\t\t</ul>
\t</div>
\t<div class=\"col-sm-9\">
\t\t<div class=\"tab-content\">
\t\t\t";
            // line 359
            $context["option_row"] = 0;
            // line 360
            echo "\t\t\t";
            $context["option_value_row"] = 0;
            // line 361
            echo "\t\t\t";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["product_options"]) ? $context["product_options"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["product_option"]) {
                // line 362
                echo "\t\t\t<div class=\"tab-pane\" id=\"tab-option";
                echo (isset($context["option_row"]) ? $context["option_row"] : null);
                echo "\">
\t\t\t\t<input type=\"hidden\" name=\"product_option[";
                // line 363
                echo (isset($context["option_row"]) ? $context["option_row"] : null);
                echo "][product_option_id]\" value=\"";
                echo $this->getAttribute($context["product_option"], "product_option_id", array());
                echo "\" />
\t\t\t\t<input type=\"hidden\" name=\"product_option[";
                // line 364
                echo (isset($context["option_row"]) ? $context["option_row"] : null);
                echo "][name]\" value=\"";
                echo $this->getAttribute($context["product_option"], "name", array());
                echo "\" />
\t\t\t\t<input type=\"hidden\" name=\"product_option[";
                // line 365
                echo (isset($context["option_row"]) ? $context["option_row"] : null);
                echo "][option_id]\" value=\"";
                echo $this->getAttribute($context["product_option"], "option_id", array());
                echo "\" />
\t\t\t\t<input type=\"hidden\" name=\"product_option[";
                // line 366
                echo (isset($context["option_row"]) ? $context["option_row"] : null);
                echo "][type]\" value=\"";
                echo $this->getAttribute($context["product_option"], "type", array());
                echo "\" />
\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t<label class=\"col-sm-2 control-label\" for=\"input-required";
                // line 368
                echo (isset($context["option_row"]) ? $context["option_row"] : null);
                echo "\">";
                echo (isset($context["entry_required"]) ? $context["entry_required"] : null);
                echo "</label>
\t\t\t\t\t<div class=\"col-sm-10\">
\t\t\t\t\t\t<select name=\"product_option[";
                // line 370
                echo (isset($context["option_row"]) ? $context["option_row"] : null);
                echo "][required]\" id=\"input-required";
                echo (isset($context["option_row"]) ? $context["option_row"] : null);
                echo "\" class=\"form-control\">
\t\t\t\t\t\t\t";
                // line 371
                if ($this->getAttribute($context["product_option"], "required", array())) {
                    // line 372
                    echo "\t\t\t\t\t\t\t<option value=\"1\" selected=\"selected\">";
                    echo (isset($context["text_yes"]) ? $context["text_yes"] : null);
                    echo "</option>
\t\t\t\t\t\t\t<option value=\"0\">";
                    // line 373
                    echo (isset($context["text_no"]) ? $context["text_no"] : null);
                    echo "</option>
\t\t\t\t\t\t\t";
                } else {
                    // line 375
                    echo "\t\t\t\t\t\t\t<option value=\"1\">";
                    echo (isset($context["text_yes"]) ? $context["text_yes"] : null);
                    echo "</option>
\t\t\t\t\t\t\t<option value=\"0\" selected=\"selected\">";
                    // line 376
                    echo (isset($context["text_no"]) ? $context["text_no"] : null);
                    echo "</option>
\t\t\t\t\t\t\t";
                }
                // line 378
                echo "\t\t\t\t\t\t</select>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t";
                // line 381
                if (($this->getAttribute($context["product_option"], "type", array()) == "text")) {
                    // line 382
                    echo "\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t<label class=\"col-sm-2 control-label\" for=\"input-value";
                    // line 383
                    echo (isset($context["option_row"]) ? $context["option_row"] : null);
                    echo "\">";
                    echo (isset($context["entry_option_value"]) ? $context["entry_option_value"] : null);
                    echo "</label>
\t\t\t\t\t<div class=\"col-sm-10\">
\t\t\t\t\t\t<input type=\"text\" name=\"product_option[";
                    // line 385
                    echo (isset($context["option_row"]) ? $context["option_row"] : null);
                    echo "][value]\" value=\"";
                    echo $this->getAttribute($context["product_option"], "value", array());
                    echo "\" placeholder=\"";
                    echo (isset($context["entry_option_value"]) ? $context["entry_option_value"] : null);
                    echo "\" id=\"input-value";
                    echo (isset($context["option_row"]) ? $context["option_row"] : null);
                    echo "\" class=\"form-control\" />
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t";
                }
                // line 389
                echo "\t\t\t\t";
                if (($this->getAttribute($context["product_option"], "type", array()) == "textarea")) {
                    // line 390
                    echo "\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t<label class=\"col-sm-2 control-label\" for=\"input-value";
                    // line 391
                    echo (isset($context["option_row"]) ? $context["option_row"] : null);
                    echo "\">";
                    echo (isset($context["entry_option_value"]) ? $context["entry_option_value"] : null);
                    echo "</label>
\t\t\t\t\t<div class=\"col-sm-10\">
\t\t\t\t\t\t<textarea name=\"product_option[";
                    // line 393
                    echo (isset($context["option_row"]) ? $context["option_row"] : null);
                    echo "][value]\" rows=\"5\" placeholder=\"";
                    echo (isset($context["entry_option_value"]) ? $context["entry_option_value"] : null);
                    echo "\" id=\"input-value";
                    echo (isset($context["option_row"]) ? $context["option_row"] : null);
                    echo "\" class=\"form-control\">";
                    echo $this->getAttribute($context["product_option"], "value", array());
                    echo "</textarea>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t";
                }
                // line 397
                echo "\t\t\t\t";
                if (($this->getAttribute($context["product_option"], "type", array()) == "file")) {
                    // line 398
                    echo "\t\t\t\t<div class=\"form-group\" style=\"display: none;\">
\t\t\t\t\t<label class=\"col-sm-2 control-label\" for=\"input-value";
                    // line 399
                    echo (isset($context["option_row"]) ? $context["option_row"] : null);
                    echo "\">";
                    echo (isset($context["entry_option_value"]) ? $context["entry_option_value"] : null);
                    echo "</label>
\t\t\t\t\t<div class=\"col-sm-10\">
\t\t\t\t\t\t<input type=\"text\" name=\"product_option[";
                    // line 401
                    echo (isset($context["option_row"]) ? $context["option_row"] : null);
                    echo "][value]\" value=\"";
                    echo $this->getAttribute($context["product_option"], "value", array());
                    echo "\" placeholder=\"";
                    echo (isset($context["entry_option_value"]) ? $context["entry_option_value"] : null);
                    echo "\" id=\"input-value";
                    echo (isset($context["option_row"]) ? $context["option_row"] : null);
                    echo "\" class=\"form-control\" />
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t";
                }
                // line 405
                echo "\t\t\t\t";
                if (($this->getAttribute($context["product_option"], "type", array()) == "date")) {
                    // line 406
                    echo "\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t<label class=\"col-sm-2 control-label\" for=\"input-value";
                    // line 407
                    echo (isset($context["option_row"]) ? $context["option_row"] : null);
                    echo "\">";
                    echo (isset($context["entry_option_value"]) ? $context["entry_option_value"] : null);
                    echo "</label>
\t\t\t\t\t<div class=\"col-sm-3\">
\t\t\t\t\t\t<div class=\"input-group date\">
\t\t\t\t\t\t\t<input type=\"text\" name=\"product_option[";
                    // line 410
                    echo (isset($context["option_row"]) ? $context["option_row"] : null);
                    echo "][value]\" value=\"";
                    echo $this->getAttribute($context["product_option"], "value", array());
                    echo "\" placeholder=\"";
                    echo (isset($context["entry_option_value"]) ? $context["entry_option_value"] : null);
                    echo "\" data-date-format=\"YYYY-MM-DD\" id=\"input-value";
                    echo (isset($context["option_row"]) ? $context["option_row"] : null);
                    echo "\" class=\"form-control\" />
\t\t\t\t\t\t\t<span class=\"input-group-btn\">
\t\t\t\t\t\t\t<button class=\"btn btn-default\" type=\"button\"><i class=\"fa fa-calendar\"></i></button>
\t\t\t\t\t\t\t</span></div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t";
                }
                // line 417
                echo "\t\t\t\t";
                if (($this->getAttribute($context["product_option"], "type", array()) == "time")) {
                    // line 418
                    echo "\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t<label class=\"col-sm-2 control-label\" for=\"input-value";
                    // line 419
                    echo (isset($context["option_row"]) ? $context["option_row"] : null);
                    echo "\">";
                    echo (isset($context["entry_option_value"]) ? $context["entry_option_value"] : null);
                    echo "</label>
\t\t\t\t\t<div class=\"col-sm-10\">
\t\t\t\t\t\t<div class=\"input-group time\">
\t\t\t\t\t\t\t<input type=\"text\" name=\"product_option[";
                    // line 422
                    echo (isset($context["option_row"]) ? $context["option_row"] : null);
                    echo "][value]\" value=\"";
                    echo $this->getAttribute($context["product_option"], "value", array());
                    echo "\" placeholder=\"";
                    echo (isset($context["entry_option_value"]) ? $context["entry_option_value"] : null);
                    echo "\" data-date-format=\"HH:mm\" id=\"input-value";
                    echo (isset($context["option_row"]) ? $context["option_row"] : null);
                    echo "\" class=\"form-control\" />
\t\t\t\t\t\t\t<span class=\"input-group-btn\">
\t\t\t\t\t\t\t<button type=\"button\" class=\"btn btn-default\"><i class=\"fa fa-calendar\"></i></button>
\t\t\t\t\t\t\t</span></div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t";
                }
                // line 429
                echo "\t\t\t\t";
                if (($this->getAttribute($context["product_option"], "type", array()) == "datetime")) {
                    // line 430
                    echo "\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t<label class=\"col-sm-2 control-label\" for=\"input-value";
                    // line 431
                    echo (isset($context["option_row"]) ? $context["option_row"] : null);
                    echo "\">";
                    echo (isset($context["entry_option_value"]) ? $context["entry_option_value"] : null);
                    echo "</label>
\t\t\t\t\t<div class=\"col-sm-10\">
\t\t\t\t\t\t<div class=\"input-group datetime\">
\t\t\t\t\t\t\t<input type=\"text\" name=\"product_option[";
                    // line 434
                    echo (isset($context["option_row"]) ? $context["option_row"] : null);
                    echo "][value]\" value=\"";
                    echo $this->getAttribute($context["product_option"], "value", array());
                    echo "\" placeholder=\"";
                    echo (isset($context["entry_option_value"]) ? $context["entry_option_value"] : null);
                    echo "\" data-date-format=\"YYYY-MM-DD HH:mm\" id=\"input-value";
                    echo (isset($context["option_row"]) ? $context["option_row"] : null);
                    echo "\" class=\"form-control\" />
\t\t\t\t\t\t\t<span class=\"input-group-btn\">
\t\t\t\t\t\t\t<button type=\"button\" class=\"btn btn-default\"><i class=\"fa fa-calendar\"></i></button>
\t\t\t\t\t\t\t</span></div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t";
                }
                // line 441
                echo "\t\t\t\t";
                if ((((($this->getAttribute($context["product_option"], "type", array()) == "select") || ($this->getAttribute($context["product_option"], "type", array()) == "radio")) || ($this->getAttribute($context["product_option"], "type", array()) == "checkbox")) || ($this->getAttribute($context["product_option"], "type", array()) == "image"))) {
                    // line 442
                    echo "\t\t\t\t<div class=\"table-responsive\">
\t\t\t\t\t<table id=\"option-value";
                    // line 443
                    echo (isset($context["option_row"]) ? $context["option_row"] : null);
                    echo "\" class=\"table table-striped table-bordered table-hover\">
\t\t\t\t\t\t<thead>
\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t<td class=\"text-left\">";
                    // line 446
                    echo (isset($context["entry_option_value"]) ? $context["entry_option_value"] : null);
                    echo "</td>
\t\t\t\t\t\t\t\t<td class=\"text-right\">";
                    // line 447
                    echo (isset($context["entry_quantity"]) ? $context["entry_quantity"] : null);
                    echo "</td>
\t\t\t\t\t\t\t\t<td class=\"text-left\">";
                    // line 448
                    echo (isset($context["entry_subtract"]) ? $context["entry_subtract"] : null);
                    echo "</td>
\t\t\t\t\t\t\t\t<td class=\"text-right\">";
                    // line 449
                    echo (isset($context["entry_price"]) ? $context["entry_price"] : null);
                    echo "</td>
\t\t\t\t\t\t\t\t<td class=\"text-right\">";
                    // line 450
                    echo (isset($context["entry_option_points"]) ? $context["entry_option_points"] : null);
                    echo "</td>
\t\t\t\t\t\t\t\t<td class=\"text-right\">";
                    // line 451
                    echo (isset($context["entry_weight"]) ? $context["entry_weight"] : null);
                    echo "</td>
\t\t\t\t\t\t\t\t<td></td>
\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t</thead>
\t\t\t\t\t\t<tbody>
\t\t\t\t\t\t\t";
                    // line 456
                    $context['_parent'] = $context;
                    $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["product_option"], "product_option_value", array()));
                    foreach ($context['_seq'] as $context["_key"] => $context["product_option_value"]) {
                        // line 457
                        echo "\t\t\t\t\t\t\t<tr id=\"option-value-row";
                        echo (isset($context["option_value_row"]) ? $context["option_value_row"] : null);
                        echo "\">
\t\t\t\t\t\t\t\t<td class=\"text-left\"><select name=\"product_option[";
                        // line 458
                        echo (isset($context["option_row"]) ? $context["option_row"] : null);
                        echo "][product_option_value][";
                        echo (isset($context["option_value_row"]) ? $context["option_value_row"] : null);
                        echo "][option_value_id]\" class=\"form-control\">
\t\t\t\t\t\t\t\t\t\t";
                        // line 459
                        if ($this->getAttribute((isset($context["option_values"]) ? $context["option_values"] : null), $this->getAttribute($context["product_option"], "option_id", array()), array(), "array")) {
                            // line 460
                            echo "\t\t\t\t\t\t\t\t\t\t\t";
                            $context['_parent'] = $context;
                            $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["option_values"]) ? $context["option_values"] : null), $this->getAttribute($context["product_option"], "option_id", array()), array(), "array"));
                            foreach ($context['_seq'] as $context["_key"] => $context["option_value"]) {
                                // line 461
                                echo "\t\t\t\t\t\t\t\t\t\t\t\t";
                                if (($this->getAttribute($context["option_value"], "option_value_id", array()) == $this->getAttribute($context["product_option_value"], "option_value_id", array()))) {
                                    // line 462
                                    echo "\t\t\t\t\t\t\t\t\t\t<option value=\"";
                                    echo $this->getAttribute($context["option_value"], "option_value_id", array());
                                    echo "\" selected=\"selected\">";
                                    echo $this->getAttribute($context["option_value"], "name", array());
                                    echo "</option>
\t\t\t\t\t\t\t\t\t\t\t\t";
                                } else {
                                    // line 464
                                    echo "\t\t\t\t\t\t\t\t\t\t<option value=\"";
                                    echo $this->getAttribute($context["option_value"], "option_value_id", array());
                                    echo "\">";
                                    echo $this->getAttribute($context["option_value"], "name", array());
                                    echo "</option>
\t\t\t\t\t\t\t\t\t\t\t\t";
                                }
                                // line 466
                                echo "\t\t\t\t\t\t\t\t\t\t\t";
                            }
                            $_parent = $context['_parent'];
                            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['option_value'], $context['_parent'], $context['loop']);
                            $context = array_intersect_key($context, $_parent) + $_parent;
                            // line 467
                            echo "\t\t\t\t\t\t\t\t\t\t";
                        }
                        // line 468
                        echo "\t\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"product_option[";
                        // line 469
                        echo (isset($context["option_row"]) ? $context["option_row"] : null);
                        echo "][product_option_value][";
                        echo (isset($context["option_value_row"]) ? $context["option_value_row"] : null);
                        echo "][product_option_value_id]\" value=\"";
                        echo $this->getAttribute($context["product_option_value"], "product_option_value_id", array());
                        echo "\" /></td>
\t\t\t\t\t\t\t\t<td class=\"text-right\"><input type=\"text\" name=\"product_option[";
                        // line 470
                        echo (isset($context["option_row"]) ? $context["option_row"] : null);
                        echo "][product_option_value][";
                        echo (isset($context["option_value_row"]) ? $context["option_value_row"] : null);
                        echo "][quantity]\" value=\"";
                        echo $this->getAttribute($context["product_option_value"], "quantity", array());
                        echo "\" placeholder=\"";
                        echo (isset($context["entry_quantity"]) ? $context["entry_quantity"] : null);
                        echo "\" class=\"form-control\" /></td>
\t\t\t\t\t\t\t\t<td class=\"text-left\"><select name=\"product_option[";
                        // line 471
                        echo (isset($context["option_row"]) ? $context["option_row"] : null);
                        echo "][product_option_value][";
                        echo (isset($context["option_value_row"]) ? $context["option_value_row"] : null);
                        echo "][subtract]\" class=\"form-control\">
\t\t\t\t\t\t\t\t\t\t";
                        // line 472
                        if ($this->getAttribute($context["product_option_value"], "subtract", array())) {
                            // line 473
                            echo "\t\t\t\t\t\t\t\t\t\t<option value=\"1\" selected=\"selected\">";
                            echo (isset($context["text_yes"]) ? $context["text_yes"] : null);
                            echo "</option>
\t\t\t\t\t\t\t\t\t\t<option value=\"0\">";
                            // line 474
                            echo (isset($context["text_no"]) ? $context["text_no"] : null);
                            echo "</option>
\t\t\t\t\t\t\t\t\t\t";
                        } else {
                            // line 476
                            echo "\t\t\t\t\t\t\t\t\t\t<option value=\"1\">";
                            echo (isset($context["text_yes"]) ? $context["text_yes"] : null);
                            echo "</option>
\t\t\t\t\t\t\t\t\t\t<option value=\"0\" selected=\"selected\">";
                            // line 477
                            echo (isset($context["text_no"]) ? $context["text_no"] : null);
                            echo "</option>
\t\t\t\t\t\t\t\t\t\t";
                        }
                        // line 479
                        echo "\t\t\t\t\t\t\t\t\t</select></td>
\t\t\t\t\t\t\t\t<td class=\"text-right\"><select name=\"product_option[";
                        // line 480
                        echo (isset($context["option_row"]) ? $context["option_row"] : null);
                        echo "][product_option_value][";
                        echo (isset($context["option_value_row"]) ? $context["option_value_row"] : null);
                        echo "][price_prefix]\" class=\"form-control\">
\t\t\t\t\t\t\t\t\t\t";
                        // line 481
                        if (($this->getAttribute($context["product_option_value"], "price_prefix", array()) == "+")) {
                            // line 482
                            echo "\t\t\t\t\t\t\t\t\t\t<option value=\"+\" selected=\"selected\">+</option>
\t\t\t\t\t\t\t\t\t\t";
                        } else {
                            // line 484
                            echo "\t\t\t\t\t\t\t\t\t\t<option value=\"+\">+</option>
\t\t\t\t\t\t\t\t\t\t";
                        }
                        // line 486
                        echo "\t\t\t\t\t\t\t\t\t\t";
                        if (($this->getAttribute($context["product_option_value"], "price_prefix", array()) == "-")) {
                            // line 487
                            echo "\t\t\t\t\t\t\t\t\t\t<option value=\"-\" selected=\"selected\">-</option>
\t\t\t\t\t\t\t\t\t\t";
                        } else {
                            // line 489
                            echo "\t\t\t\t\t\t\t\t\t\t<option value=\"-\">-</option>
\t\t\t\t\t\t\t\t\t\t";
                        }
                        // line 491
                        echo "\t\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t\t<input type=\"text\" name=\"product_option[";
                        // line 492
                        echo (isset($context["option_row"]) ? $context["option_row"] : null);
                        echo "][product_option_value][";
                        echo (isset($context["option_value_row"]) ? $context["option_value_row"] : null);
                        echo "][price]\" value=\"";
                        echo $this->getAttribute($context["product_option_value"], "price", array());
                        echo "\" placeholder=\"";
                        echo (isset($context["entry_price"]) ? $context["entry_price"] : null);
                        echo "\" class=\"form-control\" /></td>
\t\t\t\t\t\t\t\t<td class=\"text-right\"><select name=\"product_option[";
                        // line 493
                        echo (isset($context["option_row"]) ? $context["option_row"] : null);
                        echo "][product_option_value][";
                        echo (isset($context["option_value_row"]) ? $context["option_value_row"] : null);
                        echo "][points_prefix]\" class=\"form-control\">
\t\t\t\t\t\t\t\t\t\t";
                        // line 494
                        if (($this->getAttribute($context["product_option_value"], "points_prefix", array()) == "+")) {
                            // line 495
                            echo "\t\t\t\t\t\t\t\t\t\t<option value=\"+\" selected=\"selected\">+</option>
\t\t\t\t\t\t\t\t\t\t";
                        } else {
                            // line 497
                            echo "\t\t\t\t\t\t\t\t\t\t<option value=\"+\">+</option>
\t\t\t\t\t\t\t\t\t\t";
                        }
                        // line 499
                        echo "\t\t\t\t\t\t\t\t\t\t";
                        if (($this->getAttribute($context["product_option_value"], "points_prefix", array()) == "-")) {
                            // line 500
                            echo "\t\t\t\t\t\t\t\t\t\t<option value=\"-\" selected=\"selected\">-</option>
\t\t\t\t\t\t\t\t\t\t";
                        } else {
                            // line 502
                            echo "\t\t\t\t\t\t\t\t\t\t<option value=\"-\">-</option>
\t\t\t\t\t\t\t\t\t\t";
                        }
                        // line 504
                        echo "\t\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t\t<input type=\"text\" name=\"product_option[";
                        // line 505
                        echo (isset($context["option_row"]) ? $context["option_row"] : null);
                        echo "][product_option_value][";
                        echo (isset($context["option_value_row"]) ? $context["option_value_row"] : null);
                        echo "][points]\" value=\"";
                        echo $this->getAttribute($context["product_option_value"], "points", array());
                        echo "\" placeholder=\"";
                        echo (isset($context["entry_points"]) ? $context["entry_points"] : null);
                        echo "\" class=\"form-control\" /></td>
\t\t\t\t\t\t\t\t<td class=\"text-right\"><select name=\"product_option[";
                        // line 506
                        echo (isset($context["option_row"]) ? $context["option_row"] : null);
                        echo "][product_option_value][";
                        echo (isset($context["option_value_row"]) ? $context["option_value_row"] : null);
                        echo "][weight_prefix]\" class=\"form-control\">
\t\t\t\t\t\t\t\t\t\t";
                        // line 507
                        if (($this->getAttribute($context["product_option_value"], "weight_prefix", array()) == "+")) {
                            // line 508
                            echo "\t\t\t\t\t\t\t\t\t\t<option value=\"+\" selected=\"selected\">+</option>
\t\t\t\t\t\t\t\t\t\t";
                        } else {
                            // line 510
                            echo "\t\t\t\t\t\t\t\t\t\t<option value=\"+\">+</option>
\t\t\t\t\t\t\t\t\t\t";
                        }
                        // line 512
                        echo "\t\t\t\t\t\t\t\t\t\t";
                        if (($this->getAttribute($context["product_option_value"], "weight_prefix", array()) == "-")) {
                            // line 513
                            echo "\t\t\t\t\t\t\t\t\t\t<option value=\"-\" selected=\"selected\">-</option>
\t\t\t\t\t\t\t\t\t\t";
                        } else {
                            // line 515
                            echo "\t\t\t\t\t\t\t\t\t\t<option value=\"-\">-</option>
\t\t\t\t\t\t\t\t\t\t";
                        }
                        // line 517
                        echo "\t\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t\t<input type=\"text\" name=\"product_option[";
                        // line 518
                        echo (isset($context["option_row"]) ? $context["option_row"] : null);
                        echo "][product_option_value][";
                        echo (isset($context["option_value_row"]) ? $context["option_value_row"] : null);
                        echo "][weight]\" value=\"";
                        echo $this->getAttribute($context["product_option_value"], "weight", array());
                        echo "\" placeholder=\"";
                        echo (isset($context["entry_weight"]) ? $context["entry_weight"] : null);
                        echo "\" class=\"form-control\" /></td>
\t\t\t\t\t\t\t\t<td class=\"text-left\"><button type=\"button\" onclick=\"\$(this).tooltip('destroy');\$('#option-value-row";
                        // line 519
                        echo (isset($context["option_value_row"]) ? $context["option_value_row"] : null);
                        echo "').remove();\" data-toggle=\"tooltip\" title=\"";
                        echo (isset($context["button_remove"]) ? $context["button_remove"] : null);
                        echo "\" class=\"btn btn-danger\"><i class=\"fa fa-minus-circle\"></i></button></td>
\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t";
                        // line 521
                        $context["option_value_row"] = ((isset($context["option_value_row"]) ? $context["option_value_row"] : null) + 1);
                        // line 522
                        echo "\t\t\t\t\t\t\t";
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product_option_value'], $context['_parent'], $context['loop']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    // line 523
                    echo "\t\t\t\t\t\t</tbody>
\t\t\t\t\t\t<tfoot>
\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t<td colspan=\"6\"></td>
\t\t\t\t\t\t\t\t<td class=\"text-left\"><button type=\"button\" onclick=\"addOptionValue('";
                    // line 527
                    echo (isset($context["option_row"]) ? $context["option_row"] : null);
                    echo "');\" data-toggle=\"tooltip\" title=\"";
                    echo (isset($context["button_option_value_add"]) ? $context["button_option_value_add"] : null);
                    echo "\" class=\"btn btn-primary\"><i class=\"fa fa-plus-circle\"></i></button></td>
\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t</tfoot>
\t\t\t\t\t</table>
\t\t\t\t</div>
\t\t\t\t<select id=\"option-values";
                    // line 532
                    echo (isset($context["option_row"]) ? $context["option_row"] : null);
                    echo "\" style=\"display: none;\">
\t\t\t\t\t";
                    // line 533
                    if ($this->getAttribute((isset($context["option_values"]) ? $context["option_values"] : null), $this->getAttribute($context["product_option"], "option_id", array()), array(), "array")) {
                        // line 534
                        echo "\t\t\t\t\t";
                        $context['_parent'] = $context;
                        $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["option_values"]) ? $context["option_values"] : null), $this->getAttribute($context["product_option"], "option_id", array()), array(), "array"));
                        foreach ($context['_seq'] as $context["_key"] => $context["option_value"]) {
                            // line 535
                            echo "\t\t\t\t\t<option value=\"";
                            echo $this->getAttribute($context["option_value"], "option_value_id", array());
                            echo "\">";
                            echo $this->getAttribute($context["option_value"], "name", array());
                            echo "</option>
\t\t\t\t\t";
                        }
                        $_parent = $context['_parent'];
                        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['option_value'], $context['_parent'], $context['loop']);
                        $context = array_intersect_key($context, $_parent) + $_parent;
                        // line 537
                        echo "\t\t\t\t\t";
                    }
                    // line 538
                    echo "\t\t\t\t</select>
\t\t\t\t";
                }
                // line 540
                echo "\t\t\t</div>
\t\t\t";
                // line 541
                $context["option_row"] = ((isset($context["option_row"]) ? $context["option_row"] : null) + 1);
                // line 542
                echo "\t\t\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product_option'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 543
            echo "\t\t</div>
\t</div>
</div>
<script type=\"text/javascript\"><!--
var option_row = ";
            // line 547
            echo (isset($context["option_row"]) ? $context["option_row"] : null);
            echo ";

\$('input[name=\\'option\\']').autocomplete({
\t'source': function(request, response) {
\t\t\$.ajax({
\t\t\turl: 'index.php?route=catalog/option/autocomplete&user_token=";
            // line 552
            echo (isset($context["user_token"]) ? $context["user_token"] : null);
            echo "&filter_name=' +  encodeURIComponent(request),
\t\t\tdataType: 'json',
\t\t\tsuccess: function(json) {
\t\t\t\tresponse(\$.map(json, function(item) {
\t\t\t\t\treturn {
\t\t\t\t\t\tcategory: item['category'],
\t\t\t\t\t\tlabel: item['name'],
\t\t\t\t\t\tvalue: item['option_id'],
\t\t\t\t\t\ttype: item['type'],
\t\t\t\t\t\toption_value: item['option_value']
\t\t\t\t\t}
\t\t\t\t}));
\t\t\t}
\t\t});
\t},
\t'select': function(item) {
\t\thtml  = '<div class=\"tab-pane\" id=\"tab-option' + option_row + '\">';
\t\thtml += '\t<input type=\"hidden\" name=\"product_option[' + option_row + '][product_option_id]\" value=\"\" />';
\t\thtml += '\t<input type=\"hidden\" name=\"product_option[' + option_row + '][name]\" value=\"' + item['label'] + '\" />';
\t\thtml += '\t<input type=\"hidden\" name=\"product_option[' + option_row + '][option_id]\" value=\"' + item['value'] + '\" />';
\t\thtml += '\t<input type=\"hidden\" name=\"product_option[' + option_row + '][type]\" value=\"' + item['type'] + '\" />';
\t\thtml += '\t<div class=\"form-group\">';
\t\thtml += '\t  <label class=\"col-sm-2 control-label\" for=\"input-required' + option_row + '\">";
            // line 574
            echo (isset($context["entry_required"]) ? $context["entry_required"] : null);
            echo "</label>';
\t\thtml += '\t  <div class=\"col-sm-10\"><select name=\"product_option[' + option_row + '][required]\" id=\"input-required' + option_row + '\" class=\"form-control\">';
\t\thtml += '\t      <option value=\"1\">";
            // line 576
            echo (isset($context["text_yes"]) ? $context["text_yes"] : null);
            echo "</option>';
\t\thtml += '\t      <option value=\"0\">";
            // line 577
            echo (isset($context["text_no"]) ? $context["text_no"] : null);
            echo "</option>';
\t\thtml += '\t  </select></div>';
\t\thtml += '\t</div>';

\t\tif (item['type'] == 'text') {
\t\t\thtml += '\t<div class=\"form-group\">';
\t\t\thtml += '\t  <label class=\"col-sm-2 control-label\" for=\"input-value' + option_row + '\">";
            // line 583
            echo (isset($context["entry_option_value"]) ? $context["entry_option_value"] : null);
            echo "</label>';
\t\t\thtml += '\t  <div class=\"col-sm-10\"><input type=\"text\" name=\"product_option[' + option_row + '][value]\" value=\"\" placeholder=\"";
            // line 584
            echo (isset($context["entry_option_value"]) ? $context["entry_option_value"] : null);
            echo "\" id=\"input-value' + option_row + '\" class=\"form-control\" /></div>';
\t\t\thtml += '\t</div>';
\t\t}

\t\tif (item['type'] == 'textarea') {
\t\t\thtml += '\t<div class=\"form-group\">';
\t\t\thtml += '\t  <label class=\"col-sm-2 control-label\" for=\"input-value' + option_row + '\">";
            // line 590
            echo (isset($context["entry_option_value"]) ? $context["entry_option_value"] : null);
            echo "</label>';
\t\t\thtml += '\t  <div class=\"col-sm-10\"><textarea name=\"product_option[' + option_row + '][value]\" rows=\"5\" placeholder=\"";
            // line 591
            echo (isset($context["entry_option_value"]) ? $context["entry_option_value"] : null);
            echo "\" id=\"input-value' + option_row + '\" class=\"form-control\"></textarea></div>';
\t\t\thtml += '\t</div>';
\t\t}

\t\tif (item['type'] == 'file') {
\t\t\thtml += '\t<div class=\"form-group\" style=\"display: none;\">';
\t\t\thtml += '\t  <label class=\"col-sm-2 control-label\" for=\"input-value' + option_row + '\">";
            // line 597
            echo (isset($context["entry_option_value"]) ? $context["entry_option_value"] : null);
            echo "</label>';
\t\t\thtml += '\t  <div class=\"col-sm-10\"><input type=\"text\" name=\"product_option[' + option_row + '][value]\" value=\"\" placeholder=\"";
            // line 598
            echo (isset($context["entry_option_value"]) ? $context["entry_option_value"] : null);
            echo "\" id=\"input-value' + option_row + '\" class=\"form-control\" /></div>';
\t\t\thtml += '\t</div>';
\t\t}

\t\tif (item['type'] == 'date') {
\t\t\thtml += '\t<div class=\"form-group\">';
\t\t\thtml += '\t  <label class=\"col-sm-2 control-label\" for=\"input-value' + option_row + '\">";
            // line 604
            echo (isset($context["entry_option_value"]) ? $context["entry_option_value"] : null);
            echo "</label>';
\t\t\thtml += '\t  <div class=\"col-sm-3\"><div class=\"input-group date\"><input type=\"text\" name=\"product_option[' + option_row + '][value]\" value=\"\" placeholder=\"";
            // line 605
            echo (isset($context["entry_option_value"]) ? $context["entry_option_value"] : null);
            echo "\" data-date-format=\"YYYY-MM-DD\" id=\"input-value' + option_row + '\" class=\"form-control\" /><span class=\"input-group-btn\"><button type=\"button\" class=\"btn btn-default\"><i class=\"fa fa-calendar\"></i></button></span></div></div>';
\t\t\thtml += '\t</div>';
\t\t}

\t\tif (item['type'] == 'time') {
\t\t\thtml += '\t<div class=\"form-group\">';
\t\t\thtml += '\t  <label class=\"col-sm-2 control-label\" for=\"input-value' + option_row + '\">";
            // line 611
            echo (isset($context["entry_option_value"]) ? $context["entry_option_value"] : null);
            echo "</label>';
\t\t\thtml += '\t  <div class=\"col-sm-10\"><div class=\"input-group time\"><input type=\"text\" name=\"product_option[' + option_row + '][value]\" value=\"\" placeholder=\"";
            // line 612
            echo (isset($context["entry_option_value"]) ? $context["entry_option_value"] : null);
            echo "\" data-date-format=\"HH:mm\" id=\"input-value' + option_row + '\" class=\"form-control\" /><span class=\"input-group-btn\"><button type=\"button\" class=\"btn btn-default\"><i class=\"fa fa-calendar\"></i></button></span></div></div>';
\t\t\thtml += '\t</div>';
\t\t}

\t\tif (item['type'] == 'datetime') {
\t\t\thtml += '\t<div class=\"form-group\">';
\t\t\thtml += '\t  <label class=\"col-sm-2 control-label\" for=\"input-value' + option_row + '\">";
            // line 618
            echo (isset($context["entry_option_value"]) ? $context["entry_option_value"] : null);
            echo "</label>';
\t\t\thtml += '\t  <div class=\"col-sm-10\"><div class=\"input-group datetime\"><input type=\"text\" name=\"product_option[' + option_row + '][value]\" value=\"\" placeholder=\"";
            // line 619
            echo (isset($context["entry_option_value"]) ? $context["entry_option_value"] : null);
            echo "\" data-date-format=\"YYYY-MM-DD HH:mm\" id=\"input-value' + option_row + '\" class=\"form-control\" /><span class=\"input-group-btn\"><button type=\"button\" class=\"btn btn-default\"><i class=\"fa fa-calendar\"></i></button></span></div></div>';
\t\t\thtml += '\t</div>';
\t\t}

\t\tif (item['type'] == 'select' || item['type'] == 'radio' || item['type'] == 'checkbox' || item['type'] == 'image') {
\t\t\thtml += '<div class=\"table-responsive\">';
\t\t\thtml += '  <table id=\"option-value' + option_row + '\" class=\"table table-striped table-bordered table-hover\">';
\t\t\thtml += '  \t <thead>';
\t\t\thtml += '      <tr>';
\t\t\thtml += '        <td class=\"text-left\">";
            // line 628
            echo (isset($context["entry_option_value"]) ? $context["entry_option_value"] : null);
            echo "</td>';
\t\t\thtml += '        <td class=\"text-right\">";
            // line 629
            echo (isset($context["entry_quantity"]) ? $context["entry_quantity"] : null);
            echo "</td>';
\t\t\thtml += '        <td class=\"text-left\">";
            // line 630
            echo (isset($context["entry_subtract"]) ? $context["entry_subtract"] : null);
            echo "</td>';
\t\t\thtml += '        <td class=\"text-right\">";
            // line 631
            echo (isset($context["entry_price"]) ? $context["entry_price"] : null);
            echo "</td>';
\t\t\thtml += '        <td class=\"text-right\">";
            // line 632
            echo (isset($context["entry_option_points"]) ? $context["entry_option_points"] : null);
            echo "</td>';
\t\t\thtml += '        <td class=\"text-right\">";
            // line 633
            echo (isset($context["entry_weight"]) ? $context["entry_weight"] : null);
            echo "</td>';
\t\t\thtml += '        <td></td>';
\t\t\thtml += '      </tr>';
\t\t\thtml += '  \t </thead>';
\t\t\thtml += '  \t <tbody>';
\t\t\thtml += '    </tbody>';
\t\t\thtml += '    <tfoot>';
\t\t\thtml += '      <tr>';
\t\t\thtml += '        <td colspan=\"6\"></td>';
\t\t\thtml += '        <td class=\"text-left\"><button type=\"button\" onclick=\"addOptionValue(' + option_row + ');\" data-toggle=\"tooltip\" title=\"";
            // line 642
            echo (isset($context["button_option_value_add"]) ? $context["button_option_value_add"] : null);
            echo "\" class=\"btn btn-primary\"><i class=\"fa fa-plus-circle\"></i></button></td>';
\t\t\thtml += '      </tr>';
\t\t\thtml += '    </tfoot>';
\t\t\thtml += '  </table>';
\t\t\thtml += '</div>';
\t\t\thtml += '  <select id=\"option-values' + option_row + '\" style=\"display: none;\">';

\t\t\tfor (i = 0; i < item['option_value'].length; i++) {
\t\t\t\thtml += '  <option value=\"' + item['option_value'][i]['option_value_id'] + '\">' + item['option_value'][i]['name'] + '</option>';
\t\t\t}

\t\t\thtml += '  </select>';
\t\t\thtml += '</div>';
\t\t}

\t\t\$('#options-data .tab-content').append(html);

\t\t\$('#option > li:last-child').before('<li><a href=\"#tab-option' + option_row + '\" data-toggle=\"tab\"><i class=\"fa fa-minus-circle\" onclick=\"\$(\\'a[href=\\\\\\'#tab-option' + option_row + '\\\\\\']\\').parent().remove(); \$(\\'#tab-option' + option_row + '\\').remove(); \$(\\'#option a:first\\').tab(\\'show\\')\"></i> ' + item['label'] + '</li>');

\t\t\$('#option a[href=\\'#tab-option' + option_row + '\\']').tab('show');

\t\t\$('.date').datetimepicker({
\t\t\tpickTime: false
\t\t});

\t\t\$('.time').datetimepicker({
\t\t\tpickDate: false
\t\t});

\t\t\$('.datetime').datetimepicker({
\t\t\tpickDate: true,
\t\t\tpickTime: true
\t\t});

\t\t\$('#tab-option' + option_row + ' [data-toggle=\\'tooltip\\']').tooltip({container: 'body'});

\t\toption_row++;
\t}
});

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

function addOptionValue(option_row) {
\thtml  = '<tr id=\"option-value-row' + option_value_row + '\">';
\thtml += '  <td class=\"text-left\"><select name=\"product_option[' + option_row + '][product_option_value][' + option_value_row + '][option_value_id]\" class=\"form-control\">';
\thtml += \$('#option-values' + option_row).html();
\thtml += '  </select><input type=\"hidden\" name=\"product_option[' + option_row + '][product_option_value][' + option_value_row + '][product_option_value_id]\" value=\"\" /></td>';
\thtml += '  <td class=\"text-right\"><input type=\"text\" name=\"product_option[' + option_row + '][product_option_value][' + option_value_row + '][quantity]\" value=\"\" placeholder=\"";
            // line 689
            echo (isset($context["entry_quantity"]) ? $context["entry_quantity"] : null);
            echo "\" class=\"form-control\" /></td>';
\thtml += '  <td class=\"text-left\"><select name=\"product_option[' + option_row + '][product_option_value][' + option_value_row + '][subtract]\" class=\"form-control\">';
\thtml += '    <option value=\"1\">";
            // line 691
            echo (isset($context["text_yes"]) ? $context["text_yes"] : null);
            echo "</option>';
\thtml += '    <option value=\"0\">";
            // line 692
            echo (isset($context["text_no"]) ? $context["text_no"] : null);
            echo "</option>';
\thtml += '  </select></td>';
\thtml += '  <td class=\"text-right\"><select name=\"product_option[' + option_row + '][product_option_value][' + option_value_row + '][price_prefix]\" class=\"form-control\">';
\thtml += '    <option value=\"+\">+</option>';
\thtml += '    <option value=\"-\">-</option>';
\thtml += '  </select>';
\thtml += '  <input type=\"text\" name=\"product_option[' + option_row + '][product_option_value][' + option_value_row + '][price]\" value=\"\" placeholder=\"";
            // line 698
            echo (isset($context["entry_price"]) ? $context["entry_price"] : null);
            echo "\" class=\"form-control\" /></td>';
\thtml += '  <td class=\"text-right\"><select name=\"product_option[' + option_row + '][product_option_value][' + option_value_row + '][points_prefix]\" class=\"form-control\">';
\thtml += '    <option value=\"+\">+</option>';
\thtml += '    <option value=\"-\">-</option>';
\thtml += '  </select>';
\thtml += '  <input type=\"text\" name=\"product_option[' + option_row + '][product_option_value][' + option_value_row + '][points]\" value=\"\" placeholder=\"";
            // line 703
            echo (isset($context["entry_points"]) ? $context["entry_points"] : null);
            echo "\" class=\"form-control\" /></td>';
\thtml += '  <td class=\"text-right\"><select name=\"product_option[' + option_row + '][product_option_value][' + option_value_row + '][weight_prefix]\" class=\"form-control\">';
\thtml += '    <option value=\"+\">+</option>';
\thtml += '    <option value=\"-\">-</option>';
\thtml += '  </select>';
\thtml += '  <input type=\"text\" name=\"product_option[' + option_row + '][product_option_value][' + option_value_row + '][weight]\" value=\"\" placeholder=\"";
            // line 708
            echo (isset($context["entry_weight"]) ? $context["entry_weight"] : null);
            echo "\" class=\"form-control\" /></td>';
\thtml += '  <td class=\"text-left\"><button type=\"button\" onclick=\"\$(this).tooltip(\\'destroy\\');\$(\\'#option-value-row' + option_value_row + '\\').remove();\" data-toggle=\"tooltip\" title=\"";
            // line 709
            echo (isset($context["button_remove"]) ? $context["button_remove"] : null);
            echo "\" class=\"btn btn-danger\"><i class=\"fa fa-minus-circle\"></i></button></td>';
\thtml += '</tr>';

\t\$('#option-value' + option_row + ' tbody').append(html);

\t\$('#option-value-row' + option_value_row + ' [data-toggle=\\'tooltip\\']').tooltip({container: 'body'});

\toption_value_row++;
}
\$('#option a:first').trigger('click');
\$('#options-data .date').datetimepicker({
\tpickTime: false
});

\$('#options-data .time').datetimepicker({
\tpickDate: false
});

\$('#options-data .datetime').datetimepicker({
\tpickDate: true,
\tpickTime: true
});
//--></script>
";
        } elseif ((        // line 732
(isset($context["parameter"]) ? $context["parameter"] : null) == "recurrings")) {
            // line 733
            echo "<div class=\"table-responsive\">
\t<table class=\"table table-striped table-bordered table-hover\" id=\"recurrings\">
\t\t<thead>
\t\t\t<tr>
\t\t\t\t<td class=\"text-left\">";
            // line 737
            echo (isset($context["entry_recurring"]) ? $context["entry_recurring"] : null);
            echo "</td>
\t\t\t\t<td class=\"text-left\">";
            // line 738
            echo (isset($context["entry_customer_group"]) ? $context["entry_customer_group"] : null);
            echo "</td>
\t\t\t\t<td width=\"1\"></td>
\t\t\t</tr>
\t\t</thead>
\t\t<tbody>
\t\t\t";
            // line 743
            $context["recurring_row"] = 0;
            // line 744
            echo "\t\t\t";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["product_recurrings"]) ? $context["product_recurrings"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["product_recurring"]) {
                // line 745
                echo "\t\t\t<tr id=\"recurring-row";
                echo (isset($context["recurring_row"]) ? $context["recurring_row"] : null);
                echo "\">
\t\t\t\t\t<td class=\"text-left\"><select name=\"product_recurrings[";
                // line 746
                echo (isset($context["recurring_row"]) ? $context["recurring_row"] : null);
                echo "][recurring_id]\" class=\"form-control\">
\t\t\t\t\t\t\t\t\t";
                // line 747
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable((isset($context["recurrings"]) ? $context["recurrings"] : null));
                foreach ($context['_seq'] as $context["_key"] => $context["recurring"]) {
                    // line 748
                    echo "\t\t\t\t\t\t\t\t\t\t";
                    if (($this->getAttribute($context["recurring"], "recurring_id", array()) == $this->getAttribute($context["product_recurring"], "recurring_id", array()))) {
                        // line 749
                        echo "\t\t\t\t\t\t\t\t\t<option value=\"";
                        echo $this->getAttribute($context["recurring"], "recurring_id", array());
                        echo "\" selected=\"selected\">";
                        echo $this->getAttribute($context["recurring"], "name", array());
                        echo "</option>
\t\t\t\t\t\t\t\t\t\t";
                    } else {
                        // line 751
                        echo "\t\t\t\t\t\t\t\t\t<option value=\"";
                        echo $this->getAttribute($context["recurring"], "recurring_id", array());
                        echo "\">";
                        echo $this->getAttribute($context["recurring"], "name", array());
                        echo "</option>
\t\t\t\t\t\t\t\t\t\t";
                    }
                    // line 753
                    echo "\t\t\t\t\t\t\t\t\t";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['recurring'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 754
                echo "\t\t\t\t\t\t\t</select></td>
\t\t\t\t\t<td class=\"text-left\"><select name=\"product_recurrings[";
                // line 755
                echo (isset($context["recurring_row"]) ? $context["recurring_row"] : null);
                echo "][customer_group_id]\" class=\"form-control\">
\t\t\t\t\t\t\t\t\t";
                // line 756
                $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 757
                    echo "\t\t\t\t\t\t\t\t\t\t";
                    if (($this->getAttribute($context["customer_group"], "customer_group_id", array()) == $this->getAttribute($context["product_recurring"], "customer_group_id", array()))) {
                        // line 758
                        echo "\t\t\t\t\t\t\t\t\t<option value=\"";
                        echo $this->getAttribute($context["customer_group"], "customer_group_id", array());
                        echo "\" selected=\"selected\">";
                        echo $this->getAttribute($context["customer_group"], "name", array());
                        echo "</option>
\t\t\t\t\t\t\t\t\t\t";
                    } else {
                        // line 760
                        echo "\t\t\t\t\t\t\t\t\t<option value=\"";
                        echo $this->getAttribute($context["customer_group"], "customer_group_id", array());
                        echo "\">";
                        echo $this->getAttribute($context["customer_group"], "name", array());
                        echo "</option>
\t\t\t\t\t\t\t\t\t\t";
                    }
                    // line 762
                    echo "\t\t\t\t\t\t\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 763
                echo "\t\t\t\t\t\t\t</select></td>
\t\t\t\t\t<td class=\"text-left\"><button type=\"button\" onclick=\"\$(this).tooltip('destroy');\$('#recurring-row";
                // line 764
                echo (isset($context["recurring_row"]) ? $context["recurring_row"] : null);
                echo "').remove()\" data-toggle=\"tooltip\" title=\"";
                echo (isset($context["button_remove"]) ? $context["button_remove"] : null);
                echo "\" class=\"btn btn-danger\"><i class=\"fa fa-minus-circle\"></i></button></td>
\t\t\t</tr>
\t\t\t";
                // line 766
                $context["recurring_row"] = ((isset($context["recurring_row"]) ? $context["recurring_row"] : null) + 1);
                // line 767
                echo "\t\t\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product_recurring'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 768
            echo "\t\t</tbody>
\t\t<tfoot>
\t\t\t<tr>
\t\t\t\t<td colspan=\"2\"></td>
\t\t\t\t<td class=\"text-left\"><button type=\"button\" onclick=\"addRecurring()\" data-toggle=\"tooltip\" title=\"";
            // line 772
            echo (isset($context["button_recurring_add"]) ? $context["button_recurring_add"] : null);
            echo "\" class=\"btn btn-primary\"><i class=\"fa fa-plus-circle\"></i></button></td>
\t\t\t</tr>
\t\t</tfoot>
\t</table>
</div>
<script type=\"text/javascript\"><!--
var recurring_row = ";
            // line 778
            echo (isset($context["recurring_row"]) ? $context["recurring_row"] : null);
            echo ";

function addRecurring() {
\thtml  = '<tr id=\"recurring-row' + recurring_row + '\">';
\thtml += '  <td class=\"text-left\">';
\thtml += '    <select name=\"product_recurrings[' + recurring_row + '][recurring_id]\" class=\"form-control\">>';
\t";
            // line 784
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["recurrings"]) ? $context["recurrings"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["recurring"]) {
                // line 785
                echo "\thtml += '      <option value=\"";
                echo $this->getAttribute($context["recurring"], "recurring_id", array());
                echo "\">";
                echo $this->getAttribute($context["recurring"], "name", array());
                echo "</option>';
\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['recurring'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 787
            echo "\thtml += '    </select>';
\thtml += '  </td>';
\thtml += '  <td class=\"text-left\">';
\thtml += '    <select name=\"product_recurrings[' + recurring_row + '][customer_group_id]\" class=\"form-control\">>';
\t";
            // line 791
            $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 792
                echo "\thtml += '      <option value=\"";
                echo $this->getAttribute($context["customer_group"], "customer_group_id", array());
                echo "\">";
                echo $this->getAttribute($context["customer_group"], "name", array());
                echo "</option>';
\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 794
            echo "\thtml += '    <select>';
\thtml += '  </td>';
\thtml += '  <td class=\"text-left\"><button type=\"button\" onclick=\"\$(this).tooltip(\\'destroy\\');\$(\\'#recurring-row' + recurring_row + '\\').remove()\" data-toggle=\"tooltip\" title=\"";
            // line 796
            echo (isset($context["button_remove"]) ? $context["button_remove"] : null);
            echo "\" class=\"btn btn-danger\"><i class=\"fa fa-minus-circle\"></i></button></td>';
\thtml += '</tr>';

\t\$('#recurrings tbody').append(html);

\t\$('#recurring-row' + recurring_row + ' [data-toggle=\\'tooltip\\']').tooltip({container: 'body'});

\trecurring_row++;
}
//--></script>
";
        } elseif ((        // line 806
(isset($context["parameter"]) ? $context["parameter"] : null) == "specials")) {
            // line 807
            echo "<div class=\"table-responsive\">
\t<table class=\"table table-striped table-bordered table-hover\" id=\"specials\">
\t\t<thead>
\t\t\t<tr>
\t\t\t\t<td class=\"text-left\">";
            // line 811
            echo (isset($context["entry_customer_group"]) ? $context["entry_customer_group"] : null);
            echo "</td>
\t\t\t\t<td class=\"text-right\">";
            // line 812
            echo (isset($context["entry_priority"]) ? $context["entry_priority"] : null);
            echo "</td>
\t\t\t\t<td class=\"text-right\">";
            // line 813
            echo (isset($context["entry_price"]) ? $context["entry_price"] : null);
            echo "</td>
\t\t\t\t<td class=\"text-left\">";
            // line 814
            echo (isset($context["entry_date_start"]) ? $context["entry_date_start"] : null);
            echo "</td>
\t\t\t\t<td class=\"text-left\">";
            // line 815
            echo (isset($context["entry_date_end"]) ? $context["entry_date_end"] : null);
            echo "</td>
\t\t\t\t<td width=\"1\"></td>
\t\t\t</tr>
\t\t</thead>
\t\t<tbody>
\t\t\t";
            // line 820
            $context["special_row"] = 0;
            // line 821
            echo "\t\t\t";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["product_specials"]) ? $context["product_specials"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["product_special"]) {
                // line 822
                echo "\t\t\t<tr id=\"special-row";
                echo (isset($context["special_row"]) ? $context["special_row"] : null);
                echo "\">
\t\t\t\t<td class=\"text-left\"><select name=\"product_special[";
                // line 823
                echo (isset($context["special_row"]) ? $context["special_row"] : null);
                echo "][customer_group_id]\" class=\"form-control\">
\t\t\t\t\t\t";
                // line 824
                $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 825
                    echo "\t\t\t\t\t\t\t";
                    if (($this->getAttribute($context["customer_group"], "customer_group_id", array()) == $this->getAttribute($context["product_special"], "customer_group_id", array()))) {
                        // line 826
                        echo "\t\t\t\t\t\t<option value=\"";
                        echo $this->getAttribute($context["customer_group"], "customer_group_id", array());
                        echo "\" selected=\"selected\">";
                        echo $this->getAttribute($context["customer_group"], "name", array());
                        echo "</option>
\t\t\t\t\t\t\t";
                    } else {
                        // line 828
                        echo "\t\t\t\t\t\t<option value=\"";
                        echo $this->getAttribute($context["customer_group"], "customer_group_id", array());
                        echo "\">";
                        echo $this->getAttribute($context["customer_group"], "name", array());
                        echo "</option>
\t\t\t\t\t\t\t";
                    }
                    // line 830
                    echo "\t\t\t\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 831
                echo "\t\t\t\t\t</select></td>
\t\t\t\t<td class=\"text-right\"><input type=\"text\" name=\"product_special[";
                // line 832
                echo (isset($context["special_row"]) ? $context["special_row"] : null);
                echo "][priority]\" value=\"";
                echo $this->getAttribute($context["product_special"], "priority", array());
                echo "\" placeholder=\"";
                echo (isset($context["entry_priority"]) ? $context["entry_priority"] : null);
                echo "\" class=\"form-control\" /></td>
\t\t\t\t<td class=\"text-right\"><input type=\"text\" name=\"product_special[";
                // line 833
                echo (isset($context["special_row"]) ? $context["special_row"] : null);
                echo "][price]\" value=\"";
                echo $this->getAttribute($context["product_special"], "price", array());
                echo "\" placeholder=\"";
                echo (isset($context["entry_price"]) ? $context["entry_price"] : null);
                echo "\" class=\"form-control\" /></td>
\t\t\t\t<td class=\"text-left\" style=\"width: 20%;\"><div class=\"input-group date\">
\t\t\t\t\t<input type=\"text\" name=\"product_special[";
                // line 835
                echo (isset($context["special_row"]) ? $context["special_row"] : null);
                echo "][date_start]\" value=\"";
                echo $this->getAttribute($context["product_special"], "date_start", array());
                echo "\" placeholder=\"";
                echo (isset($context["entry_date_start"]) ? $context["entry_date_start"] : null);
                echo "\" data-date-format=\"YYYY-MM-DD\" class=\"form-control\" />
\t\t\t\t\t<span class=\"input-group-btn\">
\t\t\t\t\t<button class=\"btn btn-default\" type=\"button\"><i class=\"fa fa-calendar\"></i></button>
\t\t\t\t\t</span></div></td>
\t\t\t\t<td class=\"text-left\" style=\"width: 20%;\"><div class=\"input-group date\">
\t\t\t\t\t<input type=\"text\" name=\"product_special[";
                // line 840
                echo (isset($context["special_row"]) ? $context["special_row"] : null);
                echo "][date_end]\" value=\"";
                echo $this->getAttribute($context["product_special"], "date_end", array());
                echo "\" placeholder=\"";
                echo (isset($context["entry_date_end"]) ? $context["entry_date_end"] : null);
                echo "\" data-date-format=\"YYYY-MM-DD\" class=\"form-control\" />
\t\t\t\t\t<span class=\"input-group-btn\">
\t\t\t\t\t<button class=\"btn btn-default\" type=\"button\"><i class=\"fa fa-calendar\"></i></button>
\t\t\t\t\t</span></div></td>
\t\t\t\t<td class=\"text-left\">
\t\t\t\t\t<input type=\"hidden\" name=\"product_special[";
                // line 845
                echo (isset($context["special_row"]) ? $context["special_row"] : null);
                echo "][special_id]\" value=\"";
                echo $this->getAttribute($context["product_special"], "special_id", array());
                echo "\" />
\t\t\t\t\t<button type=\"button\" onclick=\"\$(this).tooltip('destroy');\$('#special-row";
                // line 846
                echo (isset($context["special_row"]) ? $context["special_row"] : null);
                echo "').remove();\" data-toggle=\"tooltip\" title=\"";
                echo (isset($context["button_remove"]) ? $context["button_remove"] : null);
                echo "\" class=\"btn btn-danger\"><i class=\"fa fa-minus-circle\"></i></button>
\t\t\t\t</td>
\t\t\t</tr>
\t\t\t";
                // line 849
                $context["special_row"] = ((isset($context["special_row"]) ? $context["special_row"] : null) + 1);
                // line 850
                echo "\t\t\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product_special'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 851
            echo "\t\t</tbody>
\t\t<tfoot>
\t\t\t<tr>
\t\t\t\t<td colspan=\"5\"></td>
\t\t\t\t<td class=\"text-left\"><button type=\"button\" onclick=\"addSpecial();\" data-toggle=\"tooltip\" title=\"";
            // line 855
            echo (isset($context["button_special_add"]) ? $context["button_special_add"] : null);
            echo "\" class=\"btn btn-primary\"><i class=\"fa fa-plus-circle\"></i></button></td>
\t\t\t</tr>
\t\t</tfoot>
\t</table>
</div>
<script type=\"text/javascript\"><!--
var special_row = ";
            // line 861
            echo (isset($context["special_row"]) ? $context["special_row"] : null);
            echo ";

function addSpecial() {
\thtml  = '<tr id=\"special-row' + special_row + '\">';
\thtml += '  <td class=\"text-left\"><select name=\"product_special[' + special_row + '][customer_group_id]\" class=\"form-control\">';
\t";
            // line 866
            $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 867
                echo "\thtml += '      <option value=\"";
                echo $this->getAttribute($context["customer_group"], "customer_group_id", array());
                echo "\">";
                echo addslashes($this->getAttribute($context["customer_group"], "name", array()));
                echo "</option>';
\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 869
            echo "\thtml += '  </select></td>';
\thtml += '  <td class=\"text-right\"><input type=\"text\" name=\"product_special[' + special_row + '][priority]\" value=\"\" placeholder=\"";
            // line 870
            echo (isset($context["entry_priority"]) ? $context["entry_priority"] : null);
            echo "\" class=\"form-control\" /></td>';
\thtml += '  <td class=\"text-right\"><input type=\"text\" name=\"product_special[' + special_row + '][price]\" value=\"\" placeholder=\"";
            // line 871
            echo (isset($context["entry_price"]) ? $context["entry_price"] : null);
            echo "\" class=\"form-control\" /></td>';
\thtml += '  <td class=\"text-left\" style=\"width: 20%;\"><div class=\"input-group date\"><input type=\"text\" name=\"product_special[' + special_row + '][date_start]\" value=\"\" placeholder=\"";
            // line 872
            echo (isset($context["entry_date_start"]) ? $context["entry_date_start"] : null);
            echo "\" data-date-format=\"YYYY-MM-DD\" class=\"form-control\" /><span class=\"input-group-btn\"><button type=\"button\" class=\"btn btn-default\"><i class=\"fa fa-calendar\"></i></button></span></div></td>';
\thtml += '  <td class=\"text-left\" style=\"width: 20%;\"><div class=\"input-group date\"><input type=\"text\" name=\"product_special[' + special_row + '][date_end]\" value=\"\" placeholder=\"";
            // line 873
            echo (isset($context["entry_date_end"]) ? $context["entry_date_end"] : null);
            echo "\" data-date-format=\"YYYY-MM-DD\" class=\"form-control\" /><span class=\"input-group-btn\"><button type=\"button\" class=\"btn btn-default\"><i class=\"fa fa-calendar\"></i></button></span></div></td>';
\thtml += '  <td class=\"text-left\"><button type=\"button\" onclick=\"\$(\\'#special-row' + special_row + '\\').remove();\" data-toggle=\"tooltip\" title=\"";
            // line 874
            echo (isset($context["button_remove"]) ? $context["button_remove"] : null);
            echo "\" class=\"btn btn-danger\"><i class=\"fa fa-minus-circle\"></i></button></td>';
\thtml += '</tr>';

\t\$('#specials tbody').append(html);

\t\$('#special-row' + special_row + ' .date').datetimepicker({pickTime: false\t});

\t\$('#special-row' + special_row + ' [data-toggle=\\'tooltip\\']').tooltip({container: 'body'});

\tspecial_row++;
}

\$('#specials tbody .date').datetimepicker({pickTime: false});
//--></script>
";
        } elseif (twig_in_filter(        // line 888
(isset($context["parameter"]) ? $context["parameter"] : null), array(0 => "download", 1 => "downloads"))) {
            // line 889
            echo "<div class=\"row\">
\t<div class=\"col-sm-12\">
\t\t<input type=\"text\" name=\"download\" value=\"\" placeholder=\"";
            // line 891
            echo (isset($context["entry_download"]) ? $context["entry_download"] : null);
            echo "\" id=\"input-download\" class=\"form-control\" />
\t\t<div id=\"product-download\" class=\"well well-sm\" style=\"height: 150px; overflow: auto;\">
\t\t\t";
            // line 893
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["product_downloads"]) ? $context["product_downloads"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["product_download"]) {
                // line 894
                echo "\t\t\t<div id=\"product-download";
                echo $this->getAttribute($context["product_download"], "download_id", array());
                echo "\"><i class=\"fa fa-minus-circle\" onclick=\"\$(this).parent().remove();\"></i> ";
                echo $this->getAttribute($context["product_download"], "name", array());
                echo "
\t\t\t\t\t<input type=\"hidden\" name=\"product_download[]\" value=\"";
                // line 895
                echo $this->getAttribute($context["product_download"], "download_id", array());
                echo "\" />
\t\t\t</div>
\t\t\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product_download'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 898
            echo "\t\t</div>
\t</div>
</div>
<script type=\"text/javascript\"><!--
\$('input[name=\\'download\\']').autocomplete({
\t'source': function(request, response) {
\t\t\$.ajax({
\t\t\turl: 'index.php?route=catalog/download/autocomplete&user_token=";
            // line 905
            echo (isset($context["user_token"]) ? $context["user_token"] : null);
            echo "&filter_name=' +  encodeURIComponent(request),
\t\t\tdataType: 'json',
\t\t\tsuccess: function(json) {
\t\t\t\tresponse(\$.map(json, function(item) {
\t\t\t\t\treturn {
\t\t\t\t\t\tlabel: item['name'],
\t\t\t\t\t\tvalue: item['download_id']
\t\t\t\t\t}
\t\t\t\t}));
\t\t\t}
\t\t});
\t},
\t'select': function(item) {
\t\t\$('input[name=\\'download\\']').val('');

\t\t\$('#product-download' + item['value']).remove();

\t\t\$('#product-download').append('<div id=\"product-download' + item['value'] + '\"><i class=\"fa fa-minus-circle\" onclick=\"\$(this).parent().remove();\"></i> ' + item['label'] + '<input type=\"hidden\" name=\"product_download[]\" value=\"' + item['value'] + '\" /></div>');
\t}
});
//--></script>
";
        } elseif ((        // line 926
(isset($context["parameter"]) ? $context["parameter"] : null) == "related")) {
            // line 927
            echo "<div class=\"row\">
\t<div class=\"col-sm-12\">
\t\t<input type=\"text\" name=\"related\" value=\"\" placeholder=\"";
            // line 929
            echo (isset($context["entry_related"]) ? $context["entry_related"] : null);
            echo "\" id=\"input-related\" class=\"form-control\" />
\t\t<div id=\"product-related\" class=\"well well-sm\" style=\"height: 150px; overflow: auto;\">
\t\t\t";
            // line 931
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["product_relateds"]) ? $context["product_relateds"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["product_related"]) {
                // line 932
                echo "\t\t\t<div id=\"product-related";
                echo $this->getAttribute($context["product_related"], "product_id", array());
                echo "\"><i class=\"fa fa-minus-circle\" onclick=\"\$(this).parent().remove();\"></i> ";
                echo $this->getAttribute($context["product_related"], "name", array());
                echo "
\t\t\t\t\t<input type=\"hidden\" name=\"product_related[]\" value=\"";
                // line 933
                echo $this->getAttribute($context["product_related"], "product_id", array());
                echo "\" />
\t\t\t</div>
\t\t\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product_related'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 936
            echo "\t\t</div>
\t</div>
</div>
<script type=\"text/javascript\"><!--
\$('input[name=\\'related\\']').autocomplete({
\t'source': function(request, response) {
\t\t\$.ajax({
\t\t\turl: 'index.php?route=catalog/product/autocomplete&user_token=";
            // line 943
            echo (isset($context["user_token"]) ? $context["user_token"] : null);
            echo "&filter_name=' +  encodeURIComponent(request),
\t\t\tdataType: 'json',
\t\t\tsuccess: function(json) {
\t\t\t\tresponse(\$.map(json, function(item) {
\t\t\t\t\treturn {
\t\t\t\t\t\tlabel: item['name'],
\t\t\t\t\t\tvalue: item['product_id']
\t\t\t\t\t}
\t\t\t\t}));
\t\t\t}
\t\t});
\t},
\t'select': function(item) {
\t\t\$('input[name=\\'related\\']').val('');

\t\t\$('#product-related' + item['value']).remove();

\t\t\$('#product-related').append('<div id=\"product-related' + item['value'] + '\"><i class=\"fa fa-minus-circle\" onclick=\"\$(this).parent().remove();\"></i> ' + item['label'] + '<input type=\"hidden\" name=\"product_related[]\" value=\"' + item['value'] + '\" /></div>');
\t}
});
//--></script>
";
        } elseif ((        // line 964
(isset($context["parameter"]) ? $context["parameter"] : null) == "descriptions")) {
            // line 965
            echo "<ul class=\"nav nav-tabs\" id=\"language\">
\t";
            // line 966
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["languages"]) ? $context["languages"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["language"]) {
                // line 967
                echo "\t<li><a href=\"#language";
                echo $this->getAttribute($context["language"], "language_id", array());
                echo "\" data-toggle=\"tab\"><img src=\"language/";
                echo $this->getAttribute($context["language"], "code", array());
                echo "/";
                echo $this->getAttribute($context["language"], "code", array());
                echo ".png\" title=\"";
                echo $this->getAttribute($context["language"], "name", array());
                echo "\" /> ";
                echo $this->getAttribute($context["language"], "name", array());
                echo "</a></li>
\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['language'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 969
            echo "</ul>
<div class=\"tab-content\">
\t";
            // line 971
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["languages"]) ? $context["languages"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["language"]) {
                // line 972
                echo "\t<div class=\"tab-pane\" id=\"language";
                echo $this->getAttribute($context["language"], "language_id", array());
                echo "\">
\t\t<div class=\"form-group\">
\t\t\t<label class=\"control-label\" for=\"input-description";
                // line 974
                echo $this->getAttribute($context["language"], "language_id", array());
                echo "\">";
                echo (isset($context["entry_description"]) ? $context["entry_description"] : null);
                echo "</label>
\t\t\t<textarea name=\"product_description[";
                // line 975
                echo $this->getAttribute($context["language"], "language_id", array());
                echo "][description]\" placeholder=\"";
                echo (isset($context["entry_description"]) ? $context["entry_description"] : null);
                echo "\" id=\"input-description";
                echo $this->getAttribute($context["language"], "language_id", array());
                echo "\" class=\"form-control\" data-toggle=\"summernote\" data-lang=\"";
                echo (isset($context["summernote"]) ? $context["summernote"] : null);
                echo "\">";
                echo $this->getAttribute($this->getAttribute((isset($context["product_description"]) ? $context["product_description"] : null), $this->getAttribute($context["language"], "language_id", array()), array(), "array"), "description", array());
                echo "</textarea>
\t\t</div>
\t\t<div class=\"form-group required\">
\t\t\t<label class=\"control-label\" for=\"input-meta-title";
                // line 978
                echo $this->getAttribute($context["language"], "language_id", array());
                echo "\">";
                echo (isset($context["entry_meta_title"]) ? $context["entry_meta_title"] : null);
                echo "</label>
\t\t\t<input type=\"text\" name=\"product_description[";
                // line 979
                echo $this->getAttribute($context["language"], "language_id", array());
                echo "][meta_title]\" value=\"";
                echo $this->getAttribute($this->getAttribute((isset($context["product_description"]) ? $context["product_description"] : null), $this->getAttribute($context["language"], "language_id", array()), array(), "array"), "meta_title", array());
                echo "\" placeholder=\"";
                echo (isset($context["entry_meta_title"]) ? $context["entry_meta_title"] : null);
                echo "\" id=\"input-meta-title";
                echo $this->getAttribute($context["language"], "language_id", array());
                echo "\" class=\"form-control\" />
\t\t\t";
                // line 980
                if ($this->getAttribute((isset($context["error_meta_title"]) ? $context["error_meta_title"] : null), $this->getAttribute($context["language"], "language_id", array()), array(), "array")) {
                    // line 981
                    echo "\t\t\t<div class=\"text-danger\">";
                    echo $this->getAttribute((isset($context["error_meta_title"]) ? $context["error_meta_title"] : null), $this->getAttribute($context["language"], "language_id", array()), array(), "array");
                    echo "</div>
\t\t\t";
                }
                // line 983
                echo "\t\t</div>
\t\t<div class=\"form-group\">
\t\t\t<label class=\"control-label\" for=\"input-meta-description";
                // line 985
                echo $this->getAttribute($context["language"], "language_id", array());
                echo "\">";
                echo (isset($context["entry_meta_description"]) ? $context["entry_meta_description"] : null);
                echo "</label>
\t\t\t<textarea name=\"product_description[";
                // line 986
                echo $this->getAttribute($context["language"], "language_id", array());
                echo "][meta_description]\" rows=\"5\" placeholder=\"";
                echo (isset($context["entry_meta_description"]) ? $context["entry_meta_description"] : null);
                echo "\" id=\"input-meta-description";
                echo $this->getAttribute($context["language"], "language_id", array());
                echo "\" class=\"form-control\">";
                echo $this->getAttribute($this->getAttribute((isset($context["product_description"]) ? $context["product_description"] : null), $this->getAttribute($context["language"], "language_id", array()), array(), "array"), "meta_description", array());
                echo "</textarea>
\t\t</div>
\t\t<div class=\"form-group\">
\t\t\t<label class=\"control-label\" for=\"input-meta-keyword";
                // line 989
                echo $this->getAttribute($context["language"], "language_id", array());
                echo "\">";
                echo (isset($context["entry_meta_keyword"]) ? $context["entry_meta_keyword"] : null);
                echo "</label>
\t\t\t<textarea name=\"product_description[";
                // line 990
                echo $this->getAttribute($context["language"], "language_id", array());
                echo "][meta_keyword]\" rows=\"5\" placeholder=\"";
                echo (isset($context["entry_meta_keyword"]) ? $context["entry_meta_keyword"] : null);
                echo "\" id=\"input-meta-keyword";
                echo $this->getAttribute($context["language"], "language_id", array());
                echo "\" class=\"form-control\">";
                echo $this->getAttribute($this->getAttribute((isset($context["product_description"]) ? $context["product_description"] : null), $this->getAttribute($context["language"], "language_id", array()), array(), "array"), "meta_keyword", array());
                echo "</textarea>
\t\t</div>
\t</div>
\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['language'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 994
            echo "</div>
<link href=\"view/javascript/codemirror/lib/codemirror.css\" rel=\"stylesheet\" />
<link href=\"view/javascript/codemirror/theme/monokai.css\" rel=\"stylesheet\" />
<script type=\"text/javascript\" src=\"view/javascript/codemirror/lib/codemirror.js\"></script>
<script type=\"text/javascript\" src=\"view/javascript/codemirror/lib/xml.js\"></script>
<script type=\"text/javascript\" src=\"view/javascript/codemirror/lib/formatting.js\"></script>
<script type=\"text/javascript\" src=\"view/javascript/summernote/summernote.js\"></script>
<link href=\"view/javascript/summernote/summernote.css\" rel=\"stylesheet\" />
<script type=\"text/javascript\" src=\"view/javascript/summernote/summernote-image-attributes.js\"></script>
<script type=\"text/javascript\" src=\"view/javascript/summernote/opencart.js\"></script>
<script type=\"text/javascript\"><!--
";
            // line 1005
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["languages"]) ? $context["languages"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["language"]) {
                // line 1006
                echo "\$('#input-description";
                echo $this->getAttribute($context["language"], "language_id", array());
                echo "').on('summernote.change', function(we, contents, \$editable) {
\t\$('#input-description";
                // line 1007
                echo $this->getAttribute($context["language"], "language_id", array());
                echo "').val(contents);
});
";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['language'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 1010
            echo "\$(\"#language a:first\").trigger('click');
//--></script>
";
        }
    }

    public function getTemplateName()
    {
        return "extension/module/aqe/catalog/product_quick_form.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  2444 => 1010,  2435 => 1007,  2430 => 1006,  2426 => 1005,  2413 => 994,  2397 => 990,  2391 => 989,  2379 => 986,  2373 => 985,  2369 => 983,  2363 => 981,  2361 => 980,  2351 => 979,  2345 => 978,  2331 => 975,  2325 => 974,  2319 => 972,  2315 => 971,  2311 => 969,  2294 => 967,  2290 => 966,  2287 => 965,  2285 => 964,  2261 => 943,  2252 => 936,  2243 => 933,  2236 => 932,  2232 => 931,  2227 => 929,  2223 => 927,  2221 => 926,  2197 => 905,  2188 => 898,  2179 => 895,  2172 => 894,  2168 => 893,  2163 => 891,  2159 => 889,  2157 => 888,  2140 => 874,  2136 => 873,  2132 => 872,  2128 => 871,  2124 => 870,  2121 => 869,  2110 => 867,  2106 => 866,  2098 => 861,  2089 => 855,  2083 => 851,  2077 => 850,  2075 => 849,  2067 => 846,  2061 => 845,  2049 => 840,  2037 => 835,  2028 => 833,  2020 => 832,  2017 => 831,  2011 => 830,  2003 => 828,  1995 => 826,  1992 => 825,  1988 => 824,  1984 => 823,  1979 => 822,  1974 => 821,  1972 => 820,  1964 => 815,  1960 => 814,  1956 => 813,  1952 => 812,  1948 => 811,  1942 => 807,  1940 => 806,  1927 => 796,  1923 => 794,  1912 => 792,  1908 => 791,  1902 => 787,  1891 => 785,  1887 => 784,  1878 => 778,  1869 => 772,  1863 => 768,  1857 => 767,  1855 => 766,  1848 => 764,  1845 => 763,  1839 => 762,  1831 => 760,  1823 => 758,  1820 => 757,  1816 => 756,  1812 => 755,  1809 => 754,  1803 => 753,  1795 => 751,  1787 => 749,  1784 => 748,  1780 => 747,  1776 => 746,  1771 => 745,  1766 => 744,  1764 => 743,  1756 => 738,  1752 => 737,  1746 => 733,  1744 => 732,  1718 => 709,  1714 => 708,  1706 => 703,  1698 => 698,  1689 => 692,  1685 => 691,  1680 => 689,  1670 => 682,  1627 => 642,  1615 => 633,  1611 => 632,  1607 => 631,  1603 => 630,  1599 => 629,  1595 => 628,  1583 => 619,  1579 => 618,  1570 => 612,  1566 => 611,  1557 => 605,  1553 => 604,  1544 => 598,  1540 => 597,  1531 => 591,  1527 => 590,  1518 => 584,  1514 => 583,  1505 => 577,  1501 => 576,  1496 => 574,  1471 => 552,  1463 => 547,  1457 => 543,  1451 => 542,  1449 => 541,  1446 => 540,  1442 => 538,  1439 => 537,  1428 => 535,  1423 => 534,  1421 => 533,  1417 => 532,  1407 => 527,  1401 => 523,  1395 => 522,  1393 => 521,  1386 => 519,  1376 => 518,  1373 => 517,  1369 => 515,  1365 => 513,  1362 => 512,  1358 => 510,  1354 => 508,  1352 => 507,  1346 => 506,  1336 => 505,  1333 => 504,  1329 => 502,  1325 => 500,  1322 => 499,  1318 => 497,  1314 => 495,  1312 => 494,  1306 => 493,  1296 => 492,  1293 => 491,  1289 => 489,  1285 => 487,  1282 => 486,  1278 => 484,  1274 => 482,  1272 => 481,  1266 => 480,  1263 => 479,  1258 => 477,  1253 => 476,  1248 => 474,  1243 => 473,  1241 => 472,  1235 => 471,  1225 => 470,  1217 => 469,  1214 => 468,  1211 => 467,  1205 => 466,  1197 => 464,  1189 => 462,  1186 => 461,  1181 => 460,  1179 => 459,  1173 => 458,  1168 => 457,  1164 => 456,  1156 => 451,  1152 => 450,  1148 => 449,  1144 => 448,  1140 => 447,  1136 => 446,  1130 => 443,  1127 => 442,  1124 => 441,  1108 => 434,  1100 => 431,  1097 => 430,  1094 => 429,  1078 => 422,  1070 => 419,  1067 => 418,  1064 => 417,  1048 => 410,  1040 => 407,  1037 => 406,  1034 => 405,  1021 => 401,  1014 => 399,  1011 => 398,  1008 => 397,  995 => 393,  988 => 391,  985 => 390,  982 => 389,  969 => 385,  962 => 383,  959 => 382,  957 => 381,  952 => 378,  947 => 376,  942 => 375,  937 => 373,  932 => 372,  930 => 371,  924 => 370,  917 => 368,  910 => 366,  904 => 365,  898 => 364,  892 => 363,  887 => 362,  882 => 361,  879 => 360,  877 => 359,  868 => 353,  865 => 352,  859 => 351,  857 => 350,  846 => 349,  841 => 348,  839 => 347,  834 => 344,  832 => 343,  819 => 333,  815 => 332,  809 => 331,  802 => 327,  793 => 321,  787 => 317,  781 => 316,  779 => 315,  772 => 313,  764 => 312,  750 => 311,  745 => 310,  740 => 309,  738 => 308,  730 => 303,  726 => 302,  720 => 298,  718 => 297,  702 => 284,  698 => 283,  694 => 282,  690 => 281,  686 => 280,  682 => 279,  679 => 278,  668 => 276,  664 => 275,  656 => 270,  647 => 264,  641 => 260,  635 => 259,  633 => 258,  625 => 255,  619 => 254,  607 => 249,  595 => 244,  586 => 242,  578 => 241,  570 => 240,  567 => 239,  561 => 238,  553 => 236,  545 => 234,  542 => 233,  538 => 232,  534 => 231,  529 => 230,  524 => 229,  522 => 228,  514 => 223,  510 => 222,  506 => 221,  502 => 220,  498 => 219,  494 => 218,  488 => 214,  486 => 213,  459 => 189,  440 => 173,  437 => 172,  420 => 170,  416 => 169,  411 => 167,  404 => 163,  395 => 157,  389 => 153,  383 => 152,  381 => 151,  374 => 149,  371 => 148,  356 => 146,  347 => 145,  343 => 144,  337 => 143,  329 => 142,  324 => 141,  319 => 140,  317 => 139,  309 => 134,  305 => 133,  299 => 129,  297 => 128,  273 => 107,  264 => 100,  255 => 97,  248 => 96,  244 => 95,  239 => 93,  235 => 91,  233 => 90,  228 => 87,  218 => 83,  212 => 82,  208 => 80,  204 => 79,  199 => 76,  197 => 75,  173 => 54,  164 => 47,  155 => 44,  148 => 43,  144 => 42,  139 => 40,  135 => 38,  133 => 37,  129 => 35,  121 => 32,  106 => 29,  97 => 28,  93 => 27,  88 => 25,  85 => 24,  81 => 23,  74 => 19,  70 => 18,  64 => 14,  62 => 13,  58 => 11,  47 => 8,  37 => 7,  34 => 6,  30 => 5,  26 => 3,  24 => 2,  19 => 1,);
    }
}
/* <input type="hidden" name="p_id" value="{{ product_id }}" />*/
/* {% if parameter in ['tag', 'name'] %}*/
/* <div class="row-fluid">*/
/* 	<div class="col-sm-12">*/
/* 		{% for language in languages %}*/
/* 		<div class="input-group multi-row">*/
/* 			<span class="input-group-addon" title="{{ language.name }}"><img src="language/{{ language.code }}/{{ language.code }}.png" title="{{ language.name }}" /></span>*/
/* 			<input type="text" name="value[{{ language.language_id }}]" class="form-control" value="{{ value[language.language_id] }}" />*/
/* 		</div>*/
/* 		{% endfor %}*/
/* 	</div>*/
/* </div>*/
/* {% elseif parameter in ['seo', 'keywords'] %}*/
/* <div class="table-responsive">*/
/* <table class="table table-bordered table-hover">*/
/* 	<thead>*/
/* 		<tr>*/
/* 			<td class="text-left">{{ entry_store }}</td>*/
/* 			<td class="text-left">{{ entry_keyword }}</td>*/
/* 		</tr>*/
/* 	</thead>*/
/* 	<tbody>*/
/* 		{% for store in stores %}*/
/* 		<tr>*/
/* 			<td class="text-left">{{ store.name }}</td>*/
/* 			<td class="text-left">*/
/* 				{% for language in languages %}*/
/* 				<div class="input-group"><span class="input-group-addon"><img src="language/{{ language.code }}/{{ language.code }}.png" title="{{ language.name }}" /></span>*/
/* 					<input type="text" name="value[{{ store.store_id }}][{{ language.language_id }}]" value="{{ value[store.store_id][language.language_id] }}" placeholder="{{ entry_keyword }}" class="form-control" />*/
/* 				</div>*/
/* 				{% endfor %}*/
/* 			</td>*/
/* 		</tr>*/
/* 		{% endfor %}*/
/* 	</tbody>*/
/* </table>*/
/* {% elseif parameter == 'category' %}*/
/* <div class="row">*/
/* 	<div class="col-sm-12">*/
/* 		<input type="text" name="category" value="" placeholder="{{ entry_category }}" id="input-category" class="form-control" />*/
/* 		<div id="product-category" class="well well-sm" style="height: 150px; overflow: auto;">*/
/* 			{% for product_category in product_categories %}*/
/* 			<div id="product-category{{ product_category.category_id }}"><i class="fa fa-minus-circle" onclick="$(this).parent().remove();"></i> {{ product_category.name }}*/
/* 					<input type="hidden" name="product_category[]" value="{{ product_category.category_id }}" />*/
/* 			</div>*/
/* 			{% endfor %}*/
/* 		</div>*/
/* 	</div>*/
/* </div>*/
/* <script type="text/javascript"><!--*/
/* $('input[name=\'category\']').autocomplete({*/
/* 	'source': function(request, response) {*/
/* 		$.ajax({*/
/* 			url: 'index.php?route=catalog/category/autocomplete&user_token={{ user_token }}&filter_name=' +  encodeURIComponent(request),*/
/* 			dataType: 'json',*/
/* 			success: function(json) {*/
/* 				response($.map(json, function(item) {*/
/* 					return {*/
/* 						label: item['name'],*/
/* 						value: item['category_id']*/
/* 					}*/
/* 				}));*/
/* 			}*/
/* 		});*/
/* 	},*/
/* 	'select': function(item) {*/
/* 		$('input[name=\'category\']').val('');*/
/* */
/* 		$('#product-category' + item['value']).remove();*/
/* */
/* 		$('#product-category').append('<div id="product-category' + item['value'] + '"><i class="fa fa-minus-circle" onclick="$(this).parent().remove();"></i> ' + item['label'] + '<input type="hidden" name="product_category[]" value="' + item['value'] + '" /></div>');*/
/* 	}*/
/* });*/
/* //--></script>*/
/* {% elseif parameter == 'store' %}*/
/* <div class="row">*/
/* 	<div class="col-sm-12">*/
/* 		<div class="well well-sm" style="height: 150px; overflow: auto;">*/
/* 			{% for store in stores %}*/
/* 			<div class="checkbox">*/
/* 				<label>*/
/* 					<input type="checkbox" name="product_store[]" value="{{ store.store_id }}"{{ store.store_id in product_store ? ' checked="checked"' : '' }}/>*/
/* 					{{ store.name }}*/
/* 				</label>*/
/* 			</div>*/
/* 			{% endfor %}*/
/* 		</div>*/
/* 	</div>*/
/* </div>*/
/* {% elseif parameter in ['filter', 'filters'] %}*/
/* <div class="row">*/
/* 	<div class="col-sm-12">*/
/* 		<input type="text" name="filter" value="" placeholder="{{ entry_filter }}" id="input-filter" class="form-control" />*/
/* 		<div id="product-filter" class="well well-sm" style="height: 150px; overflow: auto;">*/
/* 			{% for product_filter in product_filters %}*/
/* 			<div id="product-filter{{ product_filter.filter_id }}"><i class="fa fa-minus-circle" onclick="$(this).parent().remove();"></i> {{ product_filter.name }}*/
/* 					<input type="hidden" name="product_filter[]" value="{{ product_filter.filter_id }}" />*/
/* 			</div>*/
/* 			{% endfor %}*/
/* 		</div>*/
/* 	</div>*/
/* </div>*/
/* <script type="text/javascript"><!--*/
/* $('input[name=\'filter\']').autocomplete({*/
/* 	'source': function(request, response) {*/
/* 		$.ajax({*/
/* 			url: 'index.php?route=catalog/filter/autocomplete&user_token={{ user_token }}&filter_name=' +  encodeURIComponent(request),*/
/* 			dataType: 'json',*/
/* 			success: function(json) {*/
/* 				response($.map(json, function(item) {*/
/* 					return {*/
/* 						label: item['name'],*/
/* 						value: item['filter_id']*/
/* 					}*/
/* 				}));*/
/* 			}*/
/* 		});*/
/* 	},*/
/* 	'select': function(item) {*/
/* 		$('input[name=\'filter\']').val('');*/
/* */
/* 		$('#product-filter' + item['value']).remove();*/
/* */
/* 		$('#product-filter').append('<div id="product-filter' + item['value'] + '"><i class="fa fa-minus-circle" onclick="$(this).parent().remove();"></i> ' + item['label'] + '<input type="hidden" name="product_filter[]" value="' + item['value'] + '" /></div>');*/
/* 	}*/
/* });*/
/* //--></script>*/
/* {% elseif parameter == 'attributes' %}*/
/* <div class="table-responsive">*/
/* 	<table class="table table-striped table-bordered table-hover" id="attributes">*/
/* 		<thead>*/
/* 			<tr>*/
/* 				<td class="text-left">{{ entry_attribute }}</td>*/
/* 				<td class="text-left">{{ entry_text }}</td>*/
/* 				<td width="1"></td>*/
/* 			</tr>*/
/* 		</thead>*/
/* 		<tbody>*/
/* 			{% set attribute_row = 0 %}*/
/* 			{% for product_attribute in product_attributes %}*/
/* 			<tr id="attribute-row{{ attribute_row }}">*/
/* 				<td class="text-left" style="width:25%;"><input type="text" name="product_attribute[{{ attribute_row }}][name]" value="{{ product_attribute.name }}" placeholder="{{ entry_attribute }}" class="form-control" />*/
/* 					<input type="hidden" name="product_attribute[{{ attribute_row }}][attribute_id]" value="{{ product_attribute.attribute_id }}" /></td>*/
/* 				<td class="text-left">{% for language in languages %}*/
/* 					<div class="input-group"><span class="input-group-addon"><img src="language/{{ language.code }}/{{ language.code }}.png" title="{{ language.name }}" /></span>*/
/* 						<textarea name="product_attribute[{{ attribute_row }}][product_attribute_description][{{ language.language_id }}][text]" rows="5" placeholder="{{ entry_text }}" class="form-control">{{ product_attribute.product_attribute_description[language.language_id].text }}</textarea>*/
/* 					</div>*/
/* 					{% endfor %}</td>*/
/* 				<td class="text-left"><button type="button" onclick="$(this).tooltip('destroy');$('#attribute-row{{ attribute_row }}').remove();" data-toggle="tooltip" title="{{ button_remove }}" class="btn btn-danger"><i class="fa fa-minus-circle"></i></button></td>*/
/* 			</tr>*/
/* 			{% set attribute_row = attribute_row + 1 %}*/
/* 			{% endfor %}*/
/* 		</tbody>*/
/* 		<tfoot>*/
/* 			<tr>*/
/* 				<td colspan="2"></td>*/
/* 				<td class="text-left"><button type="button" onclick="addAttribute();" data-toggle="tooltip" title="{{ button_attribute_add }}" class="btn btn-primary"><i class="fa fa-plus-circle"></i></button></td>*/
/* 			</tr>*/
/* 		</tfoot>*/
/* 	</table>*/
/* </div>*/
/* <script type="text/javascript"><!--*/
/* var attribute_row = {{ attribute_row }};*/
/* */
/* function addAttribute() {*/
/* 	html  = '  <tr id="attribute-row' + attribute_row + '">';*/
/* 	html += '    <td class="text-left" style="width:25%;"><input type="text" name="product_attribute[' + attribute_row + '][name]" value="" placeholder="{{ entry_attribute }}" class="form-control" /><input type="hidden" name="product_attribute[' + attribute_row + '][attribute_id]" value="" /></td>';*/
/* 	html += '    <td class="text-left">';*/
/* 	{% for language in languages %}*/
/* 	html += '      <div class="input-group"><span class="input-group-addon"><img src="language/{{ language.code }}/{{ language.code }}.png" title="{{ language.name }}" /></span><textarea name="product_attribute[' + attribute_row + '][product_attribute_description][{{ language.language_id }}][text]" rows="5" placeholder="{{ entry_text }}" class="form-control"></textarea></div>';*/
/* 	{% endfor %}*/
/* 	html += '    </td>';*/
/* 	html += '    <td class="text-left"><button type="button" onclick="$(this).tooltip(\'destroy\');$(\'#attribute-row' + attribute_row + '\').remove();" data-toggle="tooltip" title="{{ button_remove }}" class="btn btn-danger"><i class="fa fa-minus-circle"></i></button></td>';*/
/* 	html += '  </tr>';*/
/* */
/* 	$('#attributes tbody').append(html);*/
/* */
/* 	attributeautocomplete(attribute_row);*/
/* */
/* 	$('#attribute-row' + attribute_row + ' [data-toggle=\'tooltip\']').tooltip({container: 'body'});*/
/* */
/* 	attribute_row++;*/
/* }*/
/* */
/* function attributeautocomplete(attribute_row) {*/
/* 	$('input[name=\'product_attribute[' + attribute_row + '][name]\']').autocomplete({*/
/* 		source: function(request, response) {*/
/* 			$.ajax({*/
/* 				url: 'index.php?route=catalog/attribute/autocomplete&user_token={{ user_token }}&filter_name=' +  encodeURIComponent(request),*/
/* 				dataType: 'json',*/
/* 				success: function(json) {*/
/* 					response($.map(json, function(item) {*/
/* 						return {*/
/* 							category: item.attribute_group,*/
/* 							label: item.name,*/
/* 							value: item.attribute_id*/
/* 						}*/
/* 					}));*/
/* 				}*/
/* 			});*/
/* 		},*/
/* 		select: function(item) {*/
/* 			$('input[name=\'product_attribute[' + attribute_row + '][name]\']').val(item['label']);*/
/* 			$('input[name=\'product_attribute[' + attribute_row + '][attribute_id]\']').val(item['value']);*/
/* 		}*/
/* 	});*/
/* }*/
/* */
/* $('#attributes tbody tr').each(function(index, element) {*/
/* 	attributeautocomplete(index);*/
/* });*/
/* //--></script>*/
/* {% elseif parameter == 'discounts' %}*/
/* <div class="table-responsive">*/
/* 	<table class="table table-striped table-bordered table-hover" id="discounts">*/
/* 		<thead>*/
/* 			<tr>*/
/* 				<td class="text-left">{{ entry_customer_group }}</td>*/
/* 				<td class="text-right">{{ entry_quantity }}</td>*/
/* 				<td class="text-right">{{ entry_priority }}</td>*/
/* 				<td class="text-right">{{ entry_price }}</td>*/
/* 				<td class="text-left">{{ entry_date_start }}</td>*/
/* 				<td class="text-left">{{ entry_date_end }}</td>*/
/* 				<td width="1"></td>*/
/* 			</tr>*/
/* 		</thead>*/
/* 		<tbody>*/
/* 			{% set discount_row = 0 %}*/
/* 			{% for product_discount in product_discounts %}*/
/* 			<tr id="discount-row{{ discount_row }}">*/
/* 				<td class="text-left"><select name="product_discount[{{ discount_row }}][customer_group_id]" class="form-control">*/
/* 						{% for customer_group in customer_groups %}*/
/* 						{% if customer_group.customer_group_id == product_discount.customer_group_id %}*/
/* 						<option value="{{ customer_group.customer_group_id }}" selected="selected">{{ customer_group.name }}</option>*/
/* 						{% else %}*/
/* 						<option value="{{ customer_group.customer_group_id }}">{{ customer_group.name }}</option>*/
/* 						{% endif %}*/
/* 						{% endfor %}*/
/* 					</select></td>*/
/* 				<td class="text-right"><input type="text" name="product_discount[{{ discount_row }}][quantity]" value="{{ product_discount.quantity }}" placeholder="{{ entry_quantity }}" class="form-control" /></td>*/
/* 				<td class="text-right"><input type="text" name="product_discount[{{ discount_row }}][priority]" value="{{ product_discount.priority }}" placeholder="{{ entry_priority }}" class="form-control" /></td>*/
/* 				<td class="text-right"><input type="text" name="product_discount[{{ discount_row }}][price]" value="{{ product_discount.price }}" placeholder="{{ entry_price }}" class="form-control" /></td>*/
/* 				<td class="text-left" style="width: 20%;"><div class="input-group date">*/
/* 						<input type="text" name="product_discount[{{ discount_row }}][date_start]" value="{{ product_discount.date_start }}" placeholder="{{ entry_date_start }}" data-date-format="YYYY-MM-DD" class="form-control" />*/
/* 						<span class="input-group-btn">*/
/* 						<button class="btn btn-default" type="button"><i class="fa fa-calendar"></i></button>*/
/* 						</span></div></td>*/
/* 				<td class="text-left" style="width: 20%;"><div class="input-group date">*/
/* 						<input type="text" name="product_discount[{{ discount_row }}][date_end]" value="{{ product_discount.date_end }}" placeholder="{{ entry_date_end }}" data-date-format="YYYY-MM-DD" class="form-control" />*/
/* 						<span class="input-group-btn">*/
/* 						<button class="btn btn-default" type="button"><i class="fa fa-calendar"></i></button>*/
/* 						</span></div></td>*/
/* 				<td class="text-left">*/
/* 					<input type="hidden" name="product_discount[{{ discount_row }}][discount_id]" value="{{ product_discount.discount_id }}" />*/
/* 					<button type="button" onclick="$(this).tooltip('destroy');$('#discount-row{{ discount_row }}').remove();" data-toggle="tooltip" title="{{ button_remove }}" class="btn btn-danger"><i class="fa fa-minus-circle"></i></button>*/
/* 				</td>*/
/* 			</tr>*/
/* 			{% set discount_row = discount_row + 1 %}*/
/* 			{% endfor %}*/
/* 		</tbody>*/
/* 		<tfoot>*/
/* 			<tr>*/
/* 				<td colspan="6"></td>*/
/* 				<td class="text-left"><button type="button" onclick="addDiscount();" data-toggle="tooltip" title="{{ button_discount_add }}" class="btn btn-primary"><i class="fa fa-plus-circle"></i></button></td>*/
/* 			</tr>*/
/* 		</tfoot>*/
/* 	</table>*/
/* </div>*/
/* <script type="text/javascript"><!--*/
/* var discount_row = {{ discount_row }};*/
/* */
/* function addDiscount() {*/
/* 	html  = '  <tr id="discount-row' + discount_row + '">';*/
/* 	html += '    <td class="text-left"><select name="product_discount[' + discount_row + '][customer_group_id]" class="form-control">';*/
/* 	{% for customer_group in customer_groups %}*/
/* 	html += '      <option value="{{ customer_group.customer_group_id }}">{{ customer_group.name|addslashes() }}</option>';*/
/* 	{% endfor %}*/
/* 	html += '    </select></td>';*/
/* 	html += '    <td class="text-right"><input type="text" name="product_discount[' + discount_row + '][quantity]" value="" placeholder="{{ entry_quantity }}" class="form-control" /></td>';*/
/* 	html += '    <td class="text-right"><input type="text" name="product_discount[' + discount_row + '][priority]" value="" placeholder="{{ entry_priority }}" class="form-control" /></td>';*/
/* 	html += '    <td class="text-right"><input type="text" name="product_discount[' + discount_row + '][price]" value="" placeholder="{{ entry_price }}" class="form-control" /></td>';*/
/* 	html += '    <td class="text-left"><div class="input-group date"><input type="text" name="product_discount[' + discount_row + '][date_start]" value="" placeholder="{{ entry_date_start }}" data-date-format="YYYY-MM-DD" class="form-control" /><span class="input-group-btn"><button type="button" class="btn btn-default"><i class="fa fa-calendar"></i></button></span></div></td>';*/
/* 	html += '    <td class="text-left"><div class="input-group date"><input type="text" name="product_discount[' + discount_row + '][date_end]" value="" placeholder="{{ entry_date_end }}" data-date-format="YYYY-MM-DD" class="form-control" /><span class="input-group-btn"><button type="button" class="btn btn-default"><i class="fa fa-calendar"></i></button></span></div></td>';*/
/* 	html += '    <td class="text-left"><button type="button" onclick="$(this).tooltip(\'destroy\');$(\'#discount-row' + discount_row + '\').remove();" data-toggle="tooltip" title="{{ button_remove }}" class="btn btn-danger"><i class="fa fa-minus-circle"></i></button></td>';*/
/* 	html += '  </tr>';*/
/* */
/* 	$('#discounts tbody').append(html);*/
/* */
/* 	$('#discount-row' + discount_row + ' .date').datetimepicker({pickTime: false});*/
/* */
/* 	$('#discount-row' + discount_row + ' [data-toggle=\'tooltip\']').tooltip({container: 'body'});*/
/* */
/* 	discount_row++;*/
/* }*/
/* $('#discounts tbody .date').datetimepicker({pickTime: false});*/
/* //--></script>*/
/* {% elseif parameter == 'images' %}*/
/* <div class="table-responsive">*/
/* 	<table id="images" class="table table-striped table-bordered table-hover">*/
/* 		<thead>*/
/* 			<tr>*/
/* 				<td class="text-left">{{ entry_image }}</td>*/
/* 				<td class="text-right">{{ entry_sort_order }}</td>*/
/* 				<td width="1"></td>*/
/* 			</tr>*/
/* 		</thead>*/
/* 		<tbody>*/
/* 			{% set image_row = 0 %}*/
/* 			{% for product_image in product_images %}*/
/* 			<tr id="image-row{{ image_row }}">*/
/* 		<td class="text-left"><a href="" id="thumb-image{{ image_row }}" data-toggle="image" class="img-thumbnail"><img src="{{ product_image.thumb }}" alt="" title="" data-placeholder="{{ placeholder }}" /></a><input type="hidden" name="product_image[{{ image_row }}][image]" value="{{ product_image.image }}" id="input-image{{ image_row }}" /></td>*/
/* 		<td class="text-right"><input type="text" name="product_image[{{ image_row }}][sort_order]" value="{{ product_image.sort_order }}" placeholder="{{ entry_sort_order }}" class="form-control" /></td>*/
/* 		<td class="text-left"><button type="button" onclick="$(this).tooltip('destroy');$('#image-row{{ image_row }}').remove();" data-toggle="tooltip" title="{{ button_remove }}" class="btn btn-danger"><i class="fa fa-minus-circle"></i></button></td>*/
/* 			</tr>*/
/* 			{% set image_row = image_row + 1 %}*/
/* 			{% endfor %}*/
/* 		</tbody>*/
/* 		<tfoot>*/
/* 			<tr>*/
/* 				<td colspan="2"></td>*/
/* 		<td class="text-left"><button type="button" onclick="addImage();" data-toggle="tooltip" title="{{ button_image_add }}" class="btn btn-primary"><i class="fa fa-plus-circle"></i></button></td>*/
/* 			</tr>*/
/* 		</tfoot>*/
/* 	</table>*/
/* </div>*/
/* <script type="text/javascript"><!--*/
/* var image_row = {{ image_row }};*/
/* */
/* function addImage() {*/
/* 	html  = '<tr id="image-row' + image_row + '">';*/
/* 	html += '  <td class="text-left"><a href="" id="thumb-image' + image_row + '"data-toggle="image" class="img-thumbnail"><img src="{{ placeholder }}" alt="" title="" data-placeholder="{{ placeholder }}" /><input type="hidden" name="product_image[' + image_row + '][image]" value="" id="input-image' + image_row + '" /></td>';*/
/* 	html += '  <td class="text-right"><input type="text" name="product_image[' + image_row + '][sort_order]" value="" placeholder="{{ entry_sort_order }}" class="form-control" /></td>';*/
/* 	html += '  <td class="text-left"><button type="button" onclick="$(this).tooltip(\'destroy\');$(\'#image-row' + image_row  + '\').remove();" data-toggle="tooltip" title="{{ button_remove }}" class="btn btn-danger"><i class="fa fa-minus-circle"></i></button></td>';*/
/* 	html += '</tr>';*/
/* */
/* 	$('#images tbody').append(html);*/
/* */
/* 	$('#image-row' + image_row + ' [data-toggle=\'tooltip\']').tooltip({container: 'body'});*/
/* */
/* 	image_row++;*/
/* }*/
/* //--></script>*/
/* {% elseif parameter == 'options' %}*/
/* <div class="row" id="options-data">*/
/* 	<div class="col-sm-3">*/
/* 		<ul class="nav nav-pills nav-stacked" id="option">*/
/* 			{% set option_row = 0 %}*/
/* 			{% for product_option in product_options %}*/
/* 			<li><a href="#tab-option{{ option_row }}" data-toggle="tab"><i class="fa fa-minus-circle" onclick="$('a[href=\'#tab-option{{ option_row }}\']').parent().remove(); $('#tab-option{{ option_row }}').remove(); $('#option a:first').tab('show');"></i> {{ product_option.name }}</a></li>*/
/* 			{% set option_row = option_row + 1 %}*/
/* 			{% endfor %}*/
/* 			<li>*/
/* 				<input type="text" name="option" value="" placeholder="{{ entry_option }}" id="input-option" class="form-control" />*/
/* 			</li>*/
/* 		</ul>*/
/* 	</div>*/
/* 	<div class="col-sm-9">*/
/* 		<div class="tab-content">*/
/* 			{% set option_row = 0 %}*/
/* 			{% set option_value_row = 0 %}*/
/* 			{% for product_option in product_options %}*/
/* 			<div class="tab-pane" id="tab-option{{ option_row }}">*/
/* 				<input type="hidden" name="product_option[{{ option_row }}][product_option_id]" value="{{ product_option.product_option_id }}" />*/
/* 				<input type="hidden" name="product_option[{{ option_row }}][name]" value="{{ product_option.name }}" />*/
/* 				<input type="hidden" name="product_option[{{ option_row }}][option_id]" value="{{ product_option.option_id }}" />*/
/* 				<input type="hidden" name="product_option[{{ option_row }}][type]" value="{{ product_option.type }}" />*/
/* 				<div class="form-group">*/
/* 					<label class="col-sm-2 control-label" for="input-required{{ option_row }}">{{ entry_required }}</label>*/
/* 					<div class="col-sm-10">*/
/* 						<select name="product_option[{{ option_row }}][required]" id="input-required{{ option_row }}" class="form-control">*/
/* 							{% if product_option.required %}*/
/* 							<option value="1" selected="selected">{{ text_yes }}</option>*/
/* 							<option value="0">{{ text_no }}</option>*/
/* 							{% else %}*/
/* 							<option value="1">{{ text_yes }}</option>*/
/* 							<option value="0" selected="selected">{{ text_no }}</option>*/
/* 							{% endif %}*/
/* 						</select>*/
/* 					</div>*/
/* 				</div>*/
/* 				{% if product_option.type == "text" %}*/
/* 				<div class="form-group">*/
/* 					<label class="col-sm-2 control-label" for="input-value{{ option_row }}">{{ entry_option_value }}</label>*/
/* 					<div class="col-sm-10">*/
/* 						<input type="text" name="product_option[{{ option_row }}][value]" value="{{ product_option.value }}" placeholder="{{ entry_option_value }}" id="input-value{{ option_row }}" class="form-control" />*/
/* 					</div>*/
/* 				</div>*/
/* 				{% endif %}*/
/* 				{% if product_option.type == "textarea" %}*/
/* 				<div class="form-group">*/
/* 					<label class="col-sm-2 control-label" for="input-value{{ option_row }}">{{ entry_option_value }}</label>*/
/* 					<div class="col-sm-10">*/
/* 						<textarea name="product_option[{{ option_row }}][value]" rows="5" placeholder="{{ entry_option_value }}" id="input-value{{ option_row }}" class="form-control">{{ product_option.value }}</textarea>*/
/* 					</div>*/
/* 				</div>*/
/* 				{% endif %}*/
/* 				{% if product_option.type == "file" %}*/
/* 				<div class="form-group" style="display: none;">*/
/* 					<label class="col-sm-2 control-label" for="input-value{{ option_row }}">{{ entry_option_value }}</label>*/
/* 					<div class="col-sm-10">*/
/* 						<input type="text" name="product_option[{{ option_row }}][value]" value="{{ product_option.value }}" placeholder="{{ entry_option_value }}" id="input-value{{ option_row }}" class="form-control" />*/
/* 					</div>*/
/* 				</div>*/
/* 				{% endif %}*/
/* 				{% if product_option.type == "date" %}*/
/* 				<div class="form-group">*/
/* 					<label class="col-sm-2 control-label" for="input-value{{ option_row }}">{{ entry_option_value }}</label>*/
/* 					<div class="col-sm-3">*/
/* 						<div class="input-group date">*/
/* 							<input type="text" name="product_option[{{ option_row }}][value]" value="{{ product_option.value }}" placeholder="{{ entry_option_value }}" data-date-format="YYYY-MM-DD" id="input-value{{ option_row }}" class="form-control" />*/
/* 							<span class="input-group-btn">*/
/* 							<button class="btn btn-default" type="button"><i class="fa fa-calendar"></i></button>*/
/* 							</span></div>*/
/* 					</div>*/
/* 				</div>*/
/* 				{% endif %}*/
/* 				{% if product_option.type == "time" %}*/
/* 				<div class="form-group">*/
/* 					<label class="col-sm-2 control-label" for="input-value{{ option_row }}">{{ entry_option_value }}</label>*/
/* 					<div class="col-sm-10">*/
/* 						<div class="input-group time">*/
/* 							<input type="text" name="product_option[{{ option_row }}][value]" value="{{ product_option.value }}" placeholder="{{ entry_option_value }}" data-date-format="HH:mm" id="input-value{{ option_row }}" class="form-control" />*/
/* 							<span class="input-group-btn">*/
/* 							<button type="button" class="btn btn-default"><i class="fa fa-calendar"></i></button>*/
/* 							</span></div>*/
/* 					</div>*/
/* 				</div>*/
/* 				{% endif %}*/
/* 				{% if product_option.type == "datetime" %}*/
/* 				<div class="form-group">*/
/* 					<label class="col-sm-2 control-label" for="input-value{{ option_row }}">{{ entry_option_value }}</label>*/
/* 					<div class="col-sm-10">*/
/* 						<div class="input-group datetime">*/
/* 							<input type="text" name="product_option[{{ option_row }}][value]" value="{{ product_option.value }}" placeholder="{{ entry_option_value }}" data-date-format="YYYY-MM-DD HH:mm" id="input-value{{ option_row }}" class="form-control" />*/
/* 							<span class="input-group-btn">*/
/* 							<button type="button" class="btn btn-default"><i class="fa fa-calendar"></i></button>*/
/* 							</span></div>*/
/* 					</div>*/
/* 				</div>*/
/* 				{% endif %}*/
/* 				{% if product_option.type == "select" or product_option.type == "radio" or product_option.type == "checkbox" or product_option.type == "image" %}*/
/* 				<div class="table-responsive">*/
/* 					<table id="option-value{{ option_row }}" class="table table-striped table-bordered table-hover">*/
/* 						<thead>*/
/* 							<tr>*/
/* 								<td class="text-left">{{ entry_option_value }}</td>*/
/* 								<td class="text-right">{{ entry_quantity }}</td>*/
/* 								<td class="text-left">{{ entry_subtract }}</td>*/
/* 								<td class="text-right">{{ entry_price }}</td>*/
/* 								<td class="text-right">{{ entry_option_points }}</td>*/
/* 								<td class="text-right">{{ entry_weight }}</td>*/
/* 								<td></td>*/
/* 							</tr>*/
/* 						</thead>*/
/* 						<tbody>*/
/* 							{% for product_option_value in product_option.product_option_value %}*/
/* 							<tr id="option-value-row{{ option_value_row }}">*/
/* 								<td class="text-left"><select name="product_option[{{ option_row }}][product_option_value][{{ option_value_row }}][option_value_id]" class="form-control">*/
/* 										{% if option_values[product_option.option_id] %}*/
/* 											{% for option_value in option_values[product_option.option_id] %}*/
/* 												{% if option_value.option_value_id == product_option_value.option_value_id %}*/
/* 										<option value="{{ option_value.option_value_id }}" selected="selected">{{ option_value.name }}</option>*/
/* 												{% else %}*/
/* 										<option value="{{ option_value.option_value_id }}">{{ option_value.name }}</option>*/
/* 												{% endif %}*/
/* 											{% endfor %}*/
/* 										{% endif %}*/
/* 									</select>*/
/* 									<input type="hidden" name="product_option[{{ option_row }}][product_option_value][{{ option_value_row }}][product_option_value_id]" value="{{ product_option_value.product_option_value_id }}" /></td>*/
/* 								<td class="text-right"><input type="text" name="product_option[{{ option_row }}][product_option_value][{{ option_value_row }}][quantity]" value="{{ product_option_value.quantity }}" placeholder="{{ entry_quantity }}" class="form-control" /></td>*/
/* 								<td class="text-left"><select name="product_option[{{ option_row }}][product_option_value][{{ option_value_row }}][subtract]" class="form-control">*/
/* 										{% if product_option_value.subtract %}*/
/* 										<option value="1" selected="selected">{{ text_yes }}</option>*/
/* 										<option value="0">{{ text_no }}</option>*/
/* 										{% else %}*/
/* 										<option value="1">{{ text_yes }}</option>*/
/* 										<option value="0" selected="selected">{{ text_no }}</option>*/
/* 										{% endif %}*/
/* 									</select></td>*/
/* 								<td class="text-right"><select name="product_option[{{ option_row }}][product_option_value][{{ option_value_row }}][price_prefix]" class="form-control">*/
/* 										{% if product_option_value.price_prefix == "+" %}*/
/* 										<option value="+" selected="selected">+</option>*/
/* 										{% else %}*/
/* 										<option value="+">+</option>*/
/* 										{% endif %}*/
/* 										{% if product_option_value.price_prefix == "-" %}*/
/* 										<option value="-" selected="selected">-</option>*/
/* 										{% else %}*/
/* 										<option value="-">-</option>*/
/* 										{% endif %}*/
/* 									</select>*/
/* 									<input type="text" name="product_option[{{ option_row }}][product_option_value][{{ option_value_row }}][price]" value="{{ product_option_value.price }}" placeholder="{{ entry_price }}" class="form-control" /></td>*/
/* 								<td class="text-right"><select name="product_option[{{ option_row }}][product_option_value][{{ option_value_row }}][points_prefix]" class="form-control">*/
/* 										{% if product_option_value.points_prefix == "+" %}*/
/* 										<option value="+" selected="selected">+</option>*/
/* 										{% else %}*/
/* 										<option value="+">+</option>*/
/* 										{% endif %}*/
/* 										{% if product_option_value.points_prefix == "-" %}*/
/* 										<option value="-" selected="selected">-</option>*/
/* 										{% else %}*/
/* 										<option value="-">-</option>*/
/* 										{% endif %}*/
/* 									</select>*/
/* 									<input type="text" name="product_option[{{ option_row }}][product_option_value][{{ option_value_row }}][points]" value="{{ product_option_value.points }}" placeholder="{{ entry_points }}" class="form-control" /></td>*/
/* 								<td class="text-right"><select name="product_option[{{ option_row }}][product_option_value][{{ option_value_row }}][weight_prefix]" class="form-control">*/
/* 										{% if product_option_value.weight_prefix == "+" %}*/
/* 										<option value="+" selected="selected">+</option>*/
/* 										{% else %}*/
/* 										<option value="+">+</option>*/
/* 										{% endif %}*/
/* 										{% if product_option_value.weight_prefix == "-" %}*/
/* 										<option value="-" selected="selected">-</option>*/
/* 										{% else %}*/
/* 										<option value="-">-</option>*/
/* 										{% endif %}*/
/* 									</select>*/
/* 									<input type="text" name="product_option[{{ option_row }}][product_option_value][{{ option_value_row }}][weight]" value="{{ product_option_value.weight }}" placeholder="{{ entry_weight }}" class="form-control" /></td>*/
/* 								<td class="text-left"><button type="button" onclick="$(this).tooltip('destroy');$('#option-value-row{{ option_value_row }}').remove();" data-toggle="tooltip" title="{{ button_remove }}" class="btn btn-danger"><i class="fa fa-minus-circle"></i></button></td>*/
/* 							</tr>*/
/* 							{% set option_value_row = option_value_row + 1 %}*/
/* 							{% endfor %}*/
/* 						</tbody>*/
/* 						<tfoot>*/
/* 							<tr>*/
/* 								<td colspan="6"></td>*/
/* 								<td class="text-left"><button type="button" onclick="addOptionValue('{{ option_row }}');" data-toggle="tooltip" title="{{ button_option_value_add }}" class="btn btn-primary"><i class="fa fa-plus-circle"></i></button></td>*/
/* 							</tr>*/
/* 						</tfoot>*/
/* 					</table>*/
/* 				</div>*/
/* 				<select id="option-values{{ option_row }}" style="display: none;">*/
/* 					{% if option_values[product_option.option_id] %}*/
/* 					{% for option_value in option_values[product_option.option_id] %}*/
/* 					<option value="{{ option_value.option_value_id }}">{{ option_value.name }}</option>*/
/* 					{% endfor %}*/
/* 					{% endif %}*/
/* 				</select>*/
/* 				{% endif %}*/
/* 			</div>*/
/* 			{% set option_row = option_row + 1 %}*/
/* 			{% endfor %}*/
/* 		</div>*/
/* 	</div>*/
/* </div>*/
/* <script type="text/javascript"><!--*/
/* var option_row = {{ option_row }};*/
/* */
/* $('input[name=\'option\']').autocomplete({*/
/* 	'source': function(request, response) {*/
/* 		$.ajax({*/
/* 			url: 'index.php?route=catalog/option/autocomplete&user_token={{ user_token }}&filter_name=' +  encodeURIComponent(request),*/
/* 			dataType: 'json',*/
/* 			success: function(json) {*/
/* 				response($.map(json, function(item) {*/
/* 					return {*/
/* 						category: item['category'],*/
/* 						label: item['name'],*/
/* 						value: item['option_id'],*/
/* 						type: item['type'],*/
/* 						option_value: item['option_value']*/
/* 					}*/
/* 				}));*/
/* 			}*/
/* 		});*/
/* 	},*/
/* 	'select': function(item) {*/
/* 		html  = '<div class="tab-pane" id="tab-option' + option_row + '">';*/
/* 		html += '	<input type="hidden" name="product_option[' + option_row + '][product_option_id]" value="" />';*/
/* 		html += '	<input type="hidden" name="product_option[' + option_row + '][name]" value="' + item['label'] + '" />';*/
/* 		html += '	<input type="hidden" name="product_option[' + option_row + '][option_id]" value="' + item['value'] + '" />';*/
/* 		html += '	<input type="hidden" name="product_option[' + option_row + '][type]" value="' + item['type'] + '" />';*/
/* 		html += '	<div class="form-group">';*/
/* 		html += '	  <label class="col-sm-2 control-label" for="input-required' + option_row + '">{{ entry_required }}</label>';*/
/* 		html += '	  <div class="col-sm-10"><select name="product_option[' + option_row + '][required]" id="input-required' + option_row + '" class="form-control">';*/
/* 		html += '	      <option value="1">{{ text_yes }}</option>';*/
/* 		html += '	      <option value="0">{{ text_no }}</option>';*/
/* 		html += '	  </select></div>';*/
/* 		html += '	</div>';*/
/* */
/* 		if (item['type'] == 'text') {*/
/* 			html += '	<div class="form-group">';*/
/* 			html += '	  <label class="col-sm-2 control-label" for="input-value' + option_row + '">{{ entry_option_value }}</label>';*/
/* 			html += '	  <div class="col-sm-10"><input type="text" name="product_option[' + option_row + '][value]" value="" placeholder="{{ entry_option_value }}" id="input-value' + option_row + '" class="form-control" /></div>';*/
/* 			html += '	</div>';*/
/* 		}*/
/* */
/* 		if (item['type'] == 'textarea') {*/
/* 			html += '	<div class="form-group">';*/
/* 			html += '	  <label class="col-sm-2 control-label" for="input-value' + option_row + '">{{ entry_option_value }}</label>';*/
/* 			html += '	  <div class="col-sm-10"><textarea name="product_option[' + option_row + '][value]" rows="5" placeholder="{{ entry_option_value }}" id="input-value' + option_row + '" class="form-control"></textarea></div>';*/
/* 			html += '	</div>';*/
/* 		}*/
/* */
/* 		if (item['type'] == 'file') {*/
/* 			html += '	<div class="form-group" style="display: none;">';*/
/* 			html += '	  <label class="col-sm-2 control-label" for="input-value' + option_row + '">{{ entry_option_value }}</label>';*/
/* 			html += '	  <div class="col-sm-10"><input type="text" name="product_option[' + option_row + '][value]" value="" placeholder="{{ entry_option_value }}" id="input-value' + option_row + '" class="form-control" /></div>';*/
/* 			html += '	</div>';*/
/* 		}*/
/* */
/* 		if (item['type'] == 'date') {*/
/* 			html += '	<div class="form-group">';*/
/* 			html += '	  <label class="col-sm-2 control-label" for="input-value' + option_row + '">{{ entry_option_value }}</label>';*/
/* 			html += '	  <div class="col-sm-3"><div class="input-group date"><input type="text" name="product_option[' + option_row + '][value]" value="" placeholder="{{ entry_option_value }}" data-date-format="YYYY-MM-DD" id="input-value' + option_row + '" class="form-control" /><span class="input-group-btn"><button type="button" class="btn btn-default"><i class="fa fa-calendar"></i></button></span></div></div>';*/
/* 			html += '	</div>';*/
/* 		}*/
/* */
/* 		if (item['type'] == 'time') {*/
/* 			html += '	<div class="form-group">';*/
/* 			html += '	  <label class="col-sm-2 control-label" for="input-value' + option_row + '">{{ entry_option_value }}</label>';*/
/* 			html += '	  <div class="col-sm-10"><div class="input-group time"><input type="text" name="product_option[' + option_row + '][value]" value="" placeholder="{{ entry_option_value }}" data-date-format="HH:mm" id="input-value' + option_row + '" class="form-control" /><span class="input-group-btn"><button type="button" class="btn btn-default"><i class="fa fa-calendar"></i></button></span></div></div>';*/
/* 			html += '	</div>';*/
/* 		}*/
/* */
/* 		if (item['type'] == 'datetime') {*/
/* 			html += '	<div class="form-group">';*/
/* 			html += '	  <label class="col-sm-2 control-label" for="input-value' + option_row + '">{{ entry_option_value }}</label>';*/
/* 			html += '	  <div class="col-sm-10"><div class="input-group datetime"><input type="text" name="product_option[' + option_row + '][value]" value="" placeholder="{{ entry_option_value }}" data-date-format="YYYY-MM-DD HH:mm" id="input-value' + option_row + '" class="form-control" /><span class="input-group-btn"><button type="button" class="btn btn-default"><i class="fa fa-calendar"></i></button></span></div></div>';*/
/* 			html += '	</div>';*/
/* 		}*/
/* */
/* 		if (item['type'] == 'select' || item['type'] == 'radio' || item['type'] == 'checkbox' || item['type'] == 'image') {*/
/* 			html += '<div class="table-responsive">';*/
/* 			html += '  <table id="option-value' + option_row + '" class="table table-striped table-bordered table-hover">';*/
/* 			html += '  	 <thead>';*/
/* 			html += '      <tr>';*/
/* 			html += '        <td class="text-left">{{ entry_option_value }}</td>';*/
/* 			html += '        <td class="text-right">{{ entry_quantity }}</td>';*/
/* 			html += '        <td class="text-left">{{ entry_subtract }}</td>';*/
/* 			html += '        <td class="text-right">{{ entry_price }}</td>';*/
/* 			html += '        <td class="text-right">{{ entry_option_points }}</td>';*/
/* 			html += '        <td class="text-right">{{ entry_weight }}</td>';*/
/* 			html += '        <td></td>';*/
/* 			html += '      </tr>';*/
/* 			html += '  	 </thead>';*/
/* 			html += '  	 <tbody>';*/
/* 			html += '    </tbody>';*/
/* 			html += '    <tfoot>';*/
/* 			html += '      <tr>';*/
/* 			html += '        <td colspan="6"></td>';*/
/* 			html += '        <td class="text-left"><button type="button" onclick="addOptionValue(' + option_row + ');" data-toggle="tooltip" title="{{ button_option_value_add }}" class="btn btn-primary"><i class="fa fa-plus-circle"></i></button></td>';*/
/* 			html += '      </tr>';*/
/* 			html += '    </tfoot>';*/
/* 			html += '  </table>';*/
/* 			html += '</div>';*/
/* 			html += '  <select id="option-values' + option_row + '" style="display: none;">';*/
/* */
/* 			for (i = 0; i < item['option_value'].length; i++) {*/
/* 				html += '  <option value="' + item['option_value'][i]['option_value_id'] + '">' + item['option_value'][i]['name'] + '</option>';*/
/* 			}*/
/* */
/* 			html += '  </select>';*/
/* 			html += '</div>';*/
/* 		}*/
/* */
/* 		$('#options-data .tab-content').append(html);*/
/* */
/* 		$('#option > li:last-child').before('<li><a href="#tab-option' + option_row + '" data-toggle="tab"><i class="fa fa-minus-circle" onclick="$(\'a[href=\\\'#tab-option' + option_row + '\\\']\').parent().remove(); $(\'#tab-option' + option_row + '\').remove(); $(\'#option a:first\').tab(\'show\')"></i> ' + item['label'] + '</li>');*/
/* */
/* 		$('#option a[href=\'#tab-option' + option_row + '\']').tab('show');*/
/* */
/* 		$('.date').datetimepicker({*/
/* 			pickTime: false*/
/* 		});*/
/* */
/* 		$('.time').datetimepicker({*/
/* 			pickDate: false*/
/* 		});*/
/* */
/* 		$('.datetime').datetimepicker({*/
/* 			pickDate: true,*/
/* 			pickTime: true*/
/* 		});*/
/* */
/* 		$('#tab-option' + option_row + ' [data-toggle=\'tooltip\']').tooltip({container: 'body'});*/
/* */
/* 		option_row++;*/
/* 	}*/
/* });*/
/* */
/* var option_value_row = {{ option_value_row }};*/
/* */
/* function addOptionValue(option_row) {*/
/* 	html  = '<tr id="option-value-row' + option_value_row + '">';*/
/* 	html += '  <td class="text-left"><select name="product_option[' + option_row + '][product_option_value][' + option_value_row + '][option_value_id]" class="form-control">';*/
/* 	html += $('#option-values' + option_row).html();*/
/* 	html += '  </select><input type="hidden" name="product_option[' + option_row + '][product_option_value][' + option_value_row + '][product_option_value_id]" value="" /></td>';*/
/* 	html += '  <td class="text-right"><input type="text" name="product_option[' + option_row + '][product_option_value][' + option_value_row + '][quantity]" value="" placeholder="{{ entry_quantity }}" class="form-control" /></td>';*/
/* 	html += '  <td class="text-left"><select name="product_option[' + option_row + '][product_option_value][' + option_value_row + '][subtract]" class="form-control">';*/
/* 	html += '    <option value="1">{{ text_yes }}</option>';*/
/* 	html += '    <option value="0">{{ text_no }}</option>';*/
/* 	html += '  </select></td>';*/
/* 	html += '  <td class="text-right"><select name="product_option[' + option_row + '][product_option_value][' + option_value_row + '][price_prefix]" class="form-control">';*/
/* 	html += '    <option value="+">+</option>';*/
/* 	html += '    <option value="-">-</option>';*/
/* 	html += '  </select>';*/
/* 	html += '  <input type="text" name="product_option[' + option_row + '][product_option_value][' + option_value_row + '][price]" value="" placeholder="{{ entry_price }}" class="form-control" /></td>';*/
/* 	html += '  <td class="text-right"><select name="product_option[' + option_row + '][product_option_value][' + option_value_row + '][points_prefix]" class="form-control">';*/
/* 	html += '    <option value="+">+</option>';*/
/* 	html += '    <option value="-">-</option>';*/
/* 	html += '  </select>';*/
/* 	html += '  <input type="text" name="product_option[' + option_row + '][product_option_value][' + option_value_row + '][points]" value="" placeholder="{{ entry_points }}" class="form-control" /></td>';*/
/* 	html += '  <td class="text-right"><select name="product_option[' + option_row + '][product_option_value][' + option_value_row + '][weight_prefix]" class="form-control">';*/
/* 	html += '    <option value="+">+</option>';*/
/* 	html += '    <option value="-">-</option>';*/
/* 	html += '  </select>';*/
/* 	html += '  <input type="text" name="product_option[' + option_row + '][product_option_value][' + option_value_row + '][weight]" value="" placeholder="{{ entry_weight }}" class="form-control" /></td>';*/
/* 	html += '  <td class="text-left"><button type="button" onclick="$(this).tooltip(\'destroy\');$(\'#option-value-row' + option_value_row + '\').remove();" data-toggle="tooltip" title="{{ button_remove }}" class="btn btn-danger"><i class="fa fa-minus-circle"></i></button></td>';*/
/* 	html += '</tr>';*/
/* */
/* 	$('#option-value' + option_row + ' tbody').append(html);*/
/* */
/* 	$('#option-value-row' + option_value_row + ' [data-toggle=\'tooltip\']').tooltip({container: 'body'});*/
/* */
/* 	option_value_row++;*/
/* }*/
/* $('#option a:first').trigger('click');*/
/* $('#options-data .date').datetimepicker({*/
/* 	pickTime: false*/
/* });*/
/* */
/* $('#options-data .time').datetimepicker({*/
/* 	pickDate: false*/
/* });*/
/* */
/* $('#options-data .datetime').datetimepicker({*/
/* 	pickDate: true,*/
/* 	pickTime: true*/
/* });*/
/* //--></script>*/
/* {% elseif parameter == 'recurrings' %}*/
/* <div class="table-responsive">*/
/* 	<table class="table table-striped table-bordered table-hover" id="recurrings">*/
/* 		<thead>*/
/* 			<tr>*/
/* 				<td class="text-left">{{ entry_recurring }}</td>*/
/* 				<td class="text-left">{{ entry_customer_group }}</td>*/
/* 				<td width="1"></td>*/
/* 			</tr>*/
/* 		</thead>*/
/* 		<tbody>*/
/* 			{% set recurring_row = 0 %}*/
/* 			{% for product_recurring in product_recurrings %}*/
/* 			<tr id="recurring-row{{ recurring_row }}">*/
/* 					<td class="text-left"><select name="product_recurrings[{{ recurring_row }}][recurring_id]" class="form-control">*/
/* 									{% for recurring in recurrings %}*/
/* 										{% if recurring.recurring_id == product_recurring.recurring_id %}*/
/* 									<option value="{{ recurring.recurring_id }}" selected="selected">{{ recurring.name }}</option>*/
/* 										{% else %}*/
/* 									<option value="{{ recurring.recurring_id }}">{{ recurring.name }}</option>*/
/* 										{% endif %}*/
/* 									{% endfor %}*/
/* 							</select></td>*/
/* 					<td class="text-left"><select name="product_recurrings[{{ recurring_row }}][customer_group_id]" class="form-control">*/
/* 									{% for customer_group in customer_groups %}*/
/* 										{% if customer_group.customer_group_id == product_recurring.customer_group_id %}*/
/* 									<option value="{{ customer_group.customer_group_id }}" selected="selected">{{ customer_group.name }}</option>*/
/* 										{% else %}*/
/* 									<option value="{{ customer_group.customer_group_id }}">{{ customer_group.name }}</option>*/
/* 										{% endif %}*/
/* 									{% endfor %}*/
/* 							</select></td>*/
/* 					<td class="text-left"><button type="button" onclick="$(this).tooltip('destroy');$('#recurring-row{{ recurring_row }}').remove()" data-toggle="tooltip" title="{{ button_remove }}" class="btn btn-danger"><i class="fa fa-minus-circle"></i></button></td>*/
/* 			</tr>*/
/* 			{% set recurring_row = recurring_row + 1 %}*/
/* 			{% endfor %}*/
/* 		</tbody>*/
/* 		<tfoot>*/
/* 			<tr>*/
/* 				<td colspan="2"></td>*/
/* 				<td class="text-left"><button type="button" onclick="addRecurring()" data-toggle="tooltip" title="{{ button_recurring_add }}" class="btn btn-primary"><i class="fa fa-plus-circle"></i></button></td>*/
/* 			</tr>*/
/* 		</tfoot>*/
/* 	</table>*/
/* </div>*/
/* <script type="text/javascript"><!--*/
/* var recurring_row = {{ recurring_row }};*/
/* */
/* function addRecurring() {*/
/* 	html  = '<tr id="recurring-row' + recurring_row + '">';*/
/* 	html += '  <td class="text-left">';*/
/* 	html += '    <select name="product_recurrings[' + recurring_row + '][recurring_id]" class="form-control">>';*/
/* 	{% for recurring in recurrings %}*/
/* 	html += '      <option value="{{ recurring.recurring_id }}">{{ recurring.name }}</option>';*/
/* 	{% endfor %}*/
/* 	html += '    </select>';*/
/* 	html += '  </td>';*/
/* 	html += '  <td class="text-left">';*/
/* 	html += '    <select name="product_recurrings[' + recurring_row + '][customer_group_id]" class="form-control">>';*/
/* 	{% for customer_group in customer_groups %}*/
/* 	html += '      <option value="{{ customer_group.customer_group_id }}">{{ customer_group.name }}</option>';*/
/* 	{% endfor %}*/
/* 	html += '    <select>';*/
/* 	html += '  </td>';*/
/* 	html += '  <td class="text-left"><button type="button" onclick="$(this).tooltip(\'destroy\');$(\'#recurring-row' + recurring_row + '\').remove()" data-toggle="tooltip" title="{{ button_remove }}" class="btn btn-danger"><i class="fa fa-minus-circle"></i></button></td>';*/
/* 	html += '</tr>';*/
/* */
/* 	$('#recurrings tbody').append(html);*/
/* */
/* 	$('#recurring-row' + recurring_row + ' [data-toggle=\'tooltip\']').tooltip({container: 'body'});*/
/* */
/* 	recurring_row++;*/
/* }*/
/* //--></script>*/
/* {% elseif parameter == 'specials' %}*/
/* <div class="table-responsive">*/
/* 	<table class="table table-striped table-bordered table-hover" id="specials">*/
/* 		<thead>*/
/* 			<tr>*/
/* 				<td class="text-left">{{ entry_customer_group }}</td>*/
/* 				<td class="text-right">{{ entry_priority }}</td>*/
/* 				<td class="text-right">{{ entry_price }}</td>*/
/* 				<td class="text-left">{{ entry_date_start }}</td>*/
/* 				<td class="text-left">{{ entry_date_end }}</td>*/
/* 				<td width="1"></td>*/
/* 			</tr>*/
/* 		</thead>*/
/* 		<tbody>*/
/* 			{% set special_row = 0 %}*/
/* 			{% for product_special in product_specials %}*/
/* 			<tr id="special-row{{ special_row }}">*/
/* 				<td class="text-left"><select name="product_special[{{ special_row }}][customer_group_id]" class="form-control">*/
/* 						{% for customer_group in customer_groups %}*/
/* 							{% if customer_group.customer_group_id == product_special.customer_group_id %}*/
/* 						<option value="{{ customer_group.customer_group_id }}" selected="selected">{{ customer_group.name }}</option>*/
/* 							{% else %}*/
/* 						<option value="{{ customer_group.customer_group_id }}">{{ customer_group.name }}</option>*/
/* 							{% endif %}*/
/* 						{% endfor %}*/
/* 					</select></td>*/
/* 				<td class="text-right"><input type="text" name="product_special[{{ special_row }}][priority]" value="{{ product_special.priority }}" placeholder="{{ entry_priority }}" class="form-control" /></td>*/
/* 				<td class="text-right"><input type="text" name="product_special[{{ special_row }}][price]" value="{{ product_special.price }}" placeholder="{{ entry_price }}" class="form-control" /></td>*/
/* 				<td class="text-left" style="width: 20%;"><div class="input-group date">*/
/* 					<input type="text" name="product_special[{{ special_row }}][date_start]" value="{{ product_special.date_start }}" placeholder="{{ entry_date_start }}" data-date-format="YYYY-MM-DD" class="form-control" />*/
/* 					<span class="input-group-btn">*/
/* 					<button class="btn btn-default" type="button"><i class="fa fa-calendar"></i></button>*/
/* 					</span></div></td>*/
/* 				<td class="text-left" style="width: 20%;"><div class="input-group date">*/
/* 					<input type="text" name="product_special[{{ special_row }}][date_end]" value="{{ product_special.date_end }}" placeholder="{{ entry_date_end }}" data-date-format="YYYY-MM-DD" class="form-control" />*/
/* 					<span class="input-group-btn">*/
/* 					<button class="btn btn-default" type="button"><i class="fa fa-calendar"></i></button>*/
/* 					</span></div></td>*/
/* 				<td class="text-left">*/
/* 					<input type="hidden" name="product_special[{{ special_row }}][special_id]" value="{{ product_special.special_id }}" />*/
/* 					<button type="button" onclick="$(this).tooltip('destroy');$('#special-row{{ special_row }}').remove();" data-toggle="tooltip" title="{{ button_remove }}" class="btn btn-danger"><i class="fa fa-minus-circle"></i></button>*/
/* 				</td>*/
/* 			</tr>*/
/* 			{% set special_row = special_row + 1 %}*/
/* 			{% endfor %}*/
/* 		</tbody>*/
/* 		<tfoot>*/
/* 			<tr>*/
/* 				<td colspan="5"></td>*/
/* 				<td class="text-left"><button type="button" onclick="addSpecial();" data-toggle="tooltip" title="{{ button_special_add }}" class="btn btn-primary"><i class="fa fa-plus-circle"></i></button></td>*/
/* 			</tr>*/
/* 		</tfoot>*/
/* 	</table>*/
/* </div>*/
/* <script type="text/javascript"><!--*/
/* var special_row = {{ special_row }};*/
/* */
/* function addSpecial() {*/
/* 	html  = '<tr id="special-row' + special_row + '">';*/
/* 	html += '  <td class="text-left"><select name="product_special[' + special_row + '][customer_group_id]" class="form-control">';*/
/* 	{% for customer_group in customer_groups %}*/
/* 	html += '      <option value="{{ customer_group.customer_group_id }}">{{ customer_group.name|addslashes() }}</option>';*/
/* 	{% endfor %}*/
/* 	html += '  </select></td>';*/
/* 	html += '  <td class="text-right"><input type="text" name="product_special[' + special_row + '][priority]" value="" placeholder="{{ entry_priority }}" class="form-control" /></td>';*/
/* 	html += '  <td class="text-right"><input type="text" name="product_special[' + special_row + '][price]" value="" placeholder="{{ entry_price }}" class="form-control" /></td>';*/
/* 	html += '  <td class="text-left" style="width: 20%;"><div class="input-group date"><input type="text" name="product_special[' + special_row + '][date_start]" value="" placeholder="{{ entry_date_start }}" data-date-format="YYYY-MM-DD" class="form-control" /><span class="input-group-btn"><button type="button" class="btn btn-default"><i class="fa fa-calendar"></i></button></span></div></td>';*/
/* 	html += '  <td class="text-left" style="width: 20%;"><div class="input-group date"><input type="text" name="product_special[' + special_row + '][date_end]" value="" placeholder="{{ entry_date_end }}" data-date-format="YYYY-MM-DD" class="form-control" /><span class="input-group-btn"><button type="button" class="btn btn-default"><i class="fa fa-calendar"></i></button></span></div></td>';*/
/* 	html += '  <td class="text-left"><button type="button" onclick="$(\'#special-row' + special_row + '\').remove();" data-toggle="tooltip" title="{{ button_remove }}" class="btn btn-danger"><i class="fa fa-minus-circle"></i></button></td>';*/
/* 	html += '</tr>';*/
/* */
/* 	$('#specials tbody').append(html);*/
/* */
/* 	$('#special-row' + special_row + ' .date').datetimepicker({pickTime: false	});*/
/* */
/* 	$('#special-row' + special_row + ' [data-toggle=\'tooltip\']').tooltip({container: 'body'});*/
/* */
/* 	special_row++;*/
/* }*/
/* */
/* $('#specials tbody .date').datetimepicker({pickTime: false});*/
/* //--></script>*/
/* {% elseif parameter in ['download', 'downloads'] %}*/
/* <div class="row">*/
/* 	<div class="col-sm-12">*/
/* 		<input type="text" name="download" value="" placeholder="{{ entry_download }}" id="input-download" class="form-control" />*/
/* 		<div id="product-download" class="well well-sm" style="height: 150px; overflow: auto;">*/
/* 			{% for product_download in product_downloads %}*/
/* 			<div id="product-download{{ product_download.download_id }}"><i class="fa fa-minus-circle" onclick="$(this).parent().remove();"></i> {{ product_download.name }}*/
/* 					<input type="hidden" name="product_download[]" value="{{ product_download.download_id }}" />*/
/* 			</div>*/
/* 			{% endfor %}*/
/* 		</div>*/
/* 	</div>*/
/* </div>*/
/* <script type="text/javascript"><!--*/
/* $('input[name=\'download\']').autocomplete({*/
/* 	'source': function(request, response) {*/
/* 		$.ajax({*/
/* 			url: 'index.php?route=catalog/download/autocomplete&user_token={{ user_token }}&filter_name=' +  encodeURIComponent(request),*/
/* 			dataType: 'json',*/
/* 			success: function(json) {*/
/* 				response($.map(json, function(item) {*/
/* 					return {*/
/* 						label: item['name'],*/
/* 						value: item['download_id']*/
/* 					}*/
/* 				}));*/
/* 			}*/
/* 		});*/
/* 	},*/
/* 	'select': function(item) {*/
/* 		$('input[name=\'download\']').val('');*/
/* */
/* 		$('#product-download' + item['value']).remove();*/
/* */
/* 		$('#product-download').append('<div id="product-download' + item['value'] + '"><i class="fa fa-minus-circle" onclick="$(this).parent().remove();"></i> ' + item['label'] + '<input type="hidden" name="product_download[]" value="' + item['value'] + '" /></div>');*/
/* 	}*/
/* });*/
/* //--></script>*/
/* {% elseif parameter == 'related' %}*/
/* <div class="row">*/
/* 	<div class="col-sm-12">*/
/* 		<input type="text" name="related" value="" placeholder="{{ entry_related }}" id="input-related" class="form-control" />*/
/* 		<div id="product-related" class="well well-sm" style="height: 150px; overflow: auto;">*/
/* 			{% for product_related in product_relateds %}*/
/* 			<div id="product-related{{ product_related.product_id }}"><i class="fa fa-minus-circle" onclick="$(this).parent().remove();"></i> {{ product_related.name }}*/
/* 					<input type="hidden" name="product_related[]" value="{{ product_related.product_id }}" />*/
/* 			</div>*/
/* 			{% endfor %}*/
/* 		</div>*/
/* 	</div>*/
/* </div>*/
/* <script type="text/javascript"><!--*/
/* $('input[name=\'related\']').autocomplete({*/
/* 	'source': function(request, response) {*/
/* 		$.ajax({*/
/* 			url: 'index.php?route=catalog/product/autocomplete&user_token={{ user_token }}&filter_name=' +  encodeURIComponent(request),*/
/* 			dataType: 'json',*/
/* 			success: function(json) {*/
/* 				response($.map(json, function(item) {*/
/* 					return {*/
/* 						label: item['name'],*/
/* 						value: item['product_id']*/
/* 					}*/
/* 				}));*/
/* 			}*/
/* 		});*/
/* 	},*/
/* 	'select': function(item) {*/
/* 		$('input[name=\'related\']').val('');*/
/* */
/* 		$('#product-related' + item['value']).remove();*/
/* */
/* 		$('#product-related').append('<div id="product-related' + item['value'] + '"><i class="fa fa-minus-circle" onclick="$(this).parent().remove();"></i> ' + item['label'] + '<input type="hidden" name="product_related[]" value="' + item['value'] + '" /></div>');*/
/* 	}*/
/* });*/
/* //--></script>*/
/* {% elseif parameter == 'descriptions' %}*/
/* <ul class="nav nav-tabs" id="language">*/
/* 	{% for language in languages %}*/
/* 	<li><a href="#language{{ language.language_id }}" data-toggle="tab"><img src="language/{{ language.code }}/{{ language.code }}.png" title="{{ language.name }}" /> {{ language.name }}</a></li>*/
/* 	{% endfor %}*/
/* </ul>*/
/* <div class="tab-content">*/
/* 	{% for language in languages %}*/
/* 	<div class="tab-pane" id="language{{ language.language_id }}">*/
/* 		<div class="form-group">*/
/* 			<label class="control-label" for="input-description{{ language.language_id }}">{{ entry_description }}</label>*/
/* 			<textarea name="product_description[{{ language.language_id }}][description]" placeholder="{{ entry_description }}" id="input-description{{ language.language_id }}" class="form-control" data-toggle="summernote" data-lang="{{ summernote }}">{{ product_description[language.language_id].description }}</textarea>*/
/* 		</div>*/
/* 		<div class="form-group required">*/
/* 			<label class="control-label" for="input-meta-title{{ language.language_id }}">{{ entry_meta_title }}</label>*/
/* 			<input type="text" name="product_description[{{ language.language_id }}][meta_title]" value="{{ product_description[language.language_id].meta_title }}" placeholder="{{ entry_meta_title }}" id="input-meta-title{{ language.language_id }}" class="form-control" />*/
/* 			{% if error_meta_title[language.language_id] %}*/
/* 			<div class="text-danger">{{ error_meta_title[language.language_id] }}</div>*/
/* 			{% endif %}*/
/* 		</div>*/
/* 		<div class="form-group">*/
/* 			<label class="control-label" for="input-meta-description{{ language.language_id }}">{{ entry_meta_description }}</label>*/
/* 			<textarea name="product_description[{{ language.language_id }}][meta_description]" rows="5" placeholder="{{ entry_meta_description }}" id="input-meta-description{{ language.language_id }}" class="form-control">{{ product_description[language.language_id].meta_description }}</textarea>*/
/* 		</div>*/
/* 		<div class="form-group">*/
/* 			<label class="control-label" for="input-meta-keyword{{ language.language_id }}">{{ entry_meta_keyword }}</label>*/
/* 			<textarea name="product_description[{{ language.language_id }}][meta_keyword]" rows="5" placeholder="{{ entry_meta_keyword }}" id="input-meta-keyword{{ language.language_id }}" class="form-control">{{ product_description[language.language_id].meta_keyword }}</textarea>*/
/* 		</div>*/
/* 	</div>*/
/* 	{% endfor %}*/
/* </div>*/
/* <link href="view/javascript/codemirror/lib/codemirror.css" rel="stylesheet" />*/
/* <link href="view/javascript/codemirror/theme/monokai.css" rel="stylesheet" />*/
/* <script type="text/javascript" src="view/javascript/codemirror/lib/codemirror.js"></script>*/
/* <script type="text/javascript" src="view/javascript/codemirror/lib/xml.js"></script>*/
/* <script type="text/javascript" src="view/javascript/codemirror/lib/formatting.js"></script>*/
/* <script type="text/javascript" src="view/javascript/summernote/summernote.js"></script>*/
/* <link href="view/javascript/summernote/summernote.css" rel="stylesheet" />*/
/* <script type="text/javascript" src="view/javascript/summernote/summernote-image-attributes.js"></script>*/
/* <script type="text/javascript" src="view/javascript/summernote/opencart.js"></script>*/
/* <script type="text/javascript"><!--*/
/* {% for language in languages %}*/
/* $('#input-description{{ language.language_id }}').on('summernote.change', function(we, contents, $editable) {*/
/* 	$('#input-description{{ language.language_id }}').val(contents);*/
/* });*/
/* {% endfor %}*/
/* $("#language a:first").trigger('click');*/
/* //--></script>*/
/* {% endif %}*/
/* */
