<?php

/* brand.edit.form.tpl */
class __TwigTemplate_4b766f6fa8f9a58584e0bf1ef814e8e6 extends Twig_Template
{
    public function display(array $context)
    {
        // line 1
        echo "<form enctype=\"multipart/form-data\" action=\"index.php?ToDo=";
        echo twig_safe_filter((isset($context['FormAction']) ? $context['FormAction'] : null));
        echo "\" onSubmit=\"return ValidateForm(CheckForm)\" name=\"frmAddBrand\" method=\"post\">
<input type=\"hidden\" name=\"brandId\" value=\"";
        // line 2
        echo twig_safe_filter((isset($context['BrandId']) ? $context['BrandId'] : null));
        echo "\">
<input type=\"hidden\" name=\"oldBrandName\" value=\"";
        // line 3
        echo twig_safe_filter((isset($context['BrandName']) ? $context['BrandName'] : null));
        echo "\">

<div class=\"row\">
\t<div class=\"col-sm-12\">
\t\t<h4 class=\"page-title\">";
        // line 7
        echo twig_safe_filter((isset($context['BrandTitle']) ? $context['BrandTitle'] : null));
        echo "</h4>
\t\t<p>";
        // line 8
        echo twig_safe_filter((isset($context['BrandIntro']) ? $context['BrandIntro'] : null));
        echo "</p>
\t\t";
        // line 9
        echo twig_safe_filter((isset($context['Message']) ? $context['Message'] : null));
        echo "
\t</div>
</div>

<div class=\"row\">
\t<div class=\"col-sm-12\">
\t\t<input type=\"submit\" name=\"SubmitButton1\" value=\"";
        // line 15
        echo getLang("Save");
        echo "\" class=\"FormButton btn btn-primary\">
\t\t<input type=\"button\" name=\"CancelButton1\" value=\"";
        // line 16
        echo getLang("Cancel");
        echo "\" class=\"FormButton btn btn-default\" onclick=\"ConfirmCancel()\"></p>
\t</div>
</div>
<br />

<div class=\"panel panel-default form-horizontal\">
\t<div class=\"panel-heading\"> 
\t\t<h3 class=\"panel-title\">";
        // line 23
        echo getLang("BrandDetails");
        echo "</h3> 
\t</div> 

\t<div class=\"panel-body\">
\t\t<div class=\"form-group\">
\t\t\t<label class=\"col-md-2 control-label\">";
        // line 28
        echo getLang("BrandName");
        echo "</label>
\t\t\t<div class=\"col-md-10\">
\t\t\t\t<input type=\"text\" name=\"brandName\" id=\"brandName\" class=\"form-control\" value=\"";
        // line 30
        echo twig_safe_filter((isset($context['BrandName']) ? $context['BrandName'] : null));
        echo "\">
\t\t\t</div>
\t\t</div>

\t\t<div class=\"form-group\">
\t\t\t<label class=\"col-md-2 control-label\">";
        // line 35
        echo getLang("PageTitle");
        echo "</label>
\t\t\t<div class=\"col-md-10\">
\t\t\t\t<input type=\"text\" id=\"brandPageTitle\" name=\"brandPageTitle\" class=\"form-control\" value=\"";
        // line 37
        echo twig_safe_filter((isset($context['BrandPageTitle']) ? $context['BrandPageTitle'] : null));
        echo "\" />
\t\t\t</div>
\t\t</div>

\t\t<div class=\"form-group\">
\t\t\t<label class=\"col-md-2 control-label\">";
        // line 42
        echo getLang("MetaKeywords");
        echo "</label>
\t\t\t<div class=\"col-md-10\">
\t\t\t\t<input type=\"text\" id=\"brandMetaKeywords\" name=\"brandMetaKeywords\" class=\"form-control\" value=\"";
        // line 44
        echo twig_safe_filter((isset($context['BrandMetaKeywords']) ? $context['BrandMetaKeywords'] : null));
        echo "\" />
\t\t\t</div>
\t\t</div>

\t\t<div class=\"form-group\">
\t\t\t<label class=\"col-md-2 control-label\">";
        // line 49
        echo getLang("MetaDescription");
        echo "</label>
\t\t\t<div class=\"col-md-10\">
\t\t\t\t<input type=\"text\" id=\"brandMetaKeywords\" name=\"brandMetaKeywords\" class=\"form-control\" value=\"";
        // line 51
        echo twig_safe_filter((isset($context['BrandMetaKeywords']) ? $context['BrandMetaKeywords'] : null));
        echo "\" />
\t\t\t</div>
\t\t</div>

\t\t<div class=\"form-group\">
\t\t\t<label class=\"col-md-2 control-label\">";
        // line 56
        echo getLang("SearchKeywords");
        echo "</label>
\t\t\t<div class=\"col-md-10\">
\t\t\t\t<input type=\"text\" id=\"brandSearchKeywords\" name=\"brandSearchKeywords\" class=\"form-control\" value=\"";
        // line 58
        echo twig_safe_filter((isset($context['BrandSearchKeywords']) ? $context['BrandSearchKeywords'] : null));
        echo "\">
\t\t\t</div>
\t\t</div>

\t\t<div class=\"form-group\">
\t\t\t<label class=\"col-md-2 control-label\">";
        // line 63
        echo getLang("BrandImage");
        echo "</label>
\t\t\t<div class=\"col-md-10\">
\t\t\t\t<input type=\"file\" id=\"brandimagefile\" name=\"brandimagefile\" class=\"form-control\" />
\t\t\t\t";
        // line 66
        echo twig_safe_filter((isset($context['BrandImageMessage']) ? $context['BrandImageMessage'] : null));
        echo "
\t\t\t</div>
\t\t</div>
\t</div>
</div>
<div class=\"row\">
\t<div class=\"col-sm-12\">
\t\t<input type=\"submit\" name=\"SubmitButton1\" value=\"";
        // line 73
        echo getLang("Save");
        echo "\" class=\"FormButton btn btn-primary\">
\t\t<input type=\"button\" name=\"CancelButton1\" value=\"";
        // line 74
        echo getLang("Cancel");
        echo "\" class=\"FormButton btn btn-default\" onclick=\"ConfirmCancel()\"></p>
\t</div>
</div>
</form>

<script type=\"text/javascript\">

\tfunction CheckForm() {
\t\tvar brands = document.getElementById(\"brandName\");
\t\tvar bimg = document.getElementById(\"brandimagefile\");

\t\tif(brands.value == \"\") {
\t\t\talert(\"";
        // line 86
        echo getLang("EnterBrand");
        echo "\");
\t\t\tbrands.focus();
\t\t\treturn false;
\t\t}

\t\tif(bimg.value != \"\") {
\t\t\t// Make sure it has a valid extension
\t\t\timg = bimg.value.split(\".\");
\t\t\text = img[img.length-1].toLowerCase();

\t\t\tif(ext != \"jpg\" && ext != \"png\" && ext != \"gif\") {
\t\t\t\talert(\"";
        // line 97
        echo getLang("ChooseValidImage");
        echo "\");
\t\t\t\tbimg.focus();
\t\t\t\tbimg.select();
\t\t\t\treturn false;
\t\t\t}
\t\t}

\t\treturn true;
\t}

\tfunction ConfirmCancel()
\t{
\t\tif(confirm('";
        // line 109
        echo twig_safe_filter((isset($context['CancelMessage']) ? $context['CancelMessage'] : null));
        echo "'))
\t\t\tdocument.location.href='index.php?ToDo=viewBrands';
\t\telse
\t\t\treturn false;
\t}

</script>
";
    }

}
