<?php

/* settings.returns.manage.tpl */
class __TwigTemplate_6ae0b9e0f2248a7b5de1b625c12aa22e extends Twig_Template
{
    public function display(array $context)
    {
        // line 1
        echo "<form action=\"index.php?ToDo=saveUpdatedReturnsSettings\" name=\"frmReturnsSettings\" id=\"frmReturnsSettings\" method=\"post\" onsubmit=\"return ValidateForm(CheckReturnsSettingsForm)\">
\t<div class=\"row\">
\t\t<div class=\"col-sm-12\">
\t\t\t<h4 class=\"page-title\">";
        // line 4
        echo getLang("ReturnsSettings");
        echo "</h4>
\t\t\t<p>";
        // line 5
        echo getLang("ReturnsSettingsIntro");
        echo "</p>
\t\t\t";
        // line 6
        echo twig_safe_filter((isset($context['Message']) ? $context['Message'] : null));
        echo "
\t\t</div>
\t</div>

\t<div class=\"row\">
\t\t<div class=\"col-sm-12\">
\t\t\t<input type=\"submit\" value=\"";
        // line 12
        echo getLang("Save");
        echo "\" class=\"btn btn-primary\" />
\t\t\t<input type=\"reset\" value=\"";
        // line 13
        echo getLang("Cancel");
        echo "\" class=\"btn btn-default\" onclick=\"ConfirmCancel()\" />
\t\t</div>
\t</div>
\t<br>
\t<div class=\"row\">
\t\t<div class=\"col-sm-12\">
\t\t\t<div class=\"panel panel-default\">
\t\t\t\t<div class=\"panel-heading\"><h3 class=\"panel-title\">";
        // line 20
        echo getLang("ReturnsSettings");
        echo "</h3></div>
\t\t\t\t<div class=\"panel-body\">
\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t<label>";
        // line 23
        echo getLang("EnableReturnsSystem");
        echo "</label>
\t\t\t\t\t\t<label><input type=\"checkbox\" name=\"enablereturns\" id=\"enablereturns\" value=\"1\" ";
        // line 24
        echo twig_safe_filter((isset($context['IsEnableReturns']) ? $context['IsEnableReturns'] : null));
        echo " onclick=\"ToggleReturnsStatus(this.checked)\" /> ";
        echo getLang("YesEnableReturnsSystem");
        echo "</label>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
\t<div class=\"row HideOnDisabled\">
\t\t<div class=\"col-sm-12\">
\t\t\t<div class=\"panel panel-default\">
\t\t\t\t<div class=\"panel-heading\"><h3 class=\"panel-title\">";
        // line 33
        echo getLang("ReturnsSettings");
        echo "</h3></div>
\t\t\t\t<div class=\"panel-body\">
\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t<label>";
        // line 36
        echo getLang("ReturnInstructions");
        echo "</label>
\t\t\t\t\t\t<textarea name=\"returninstructions\" id=\"returninstructions\" class=\"form-control\" rows=\"6\">";
        // line 37
        echo twig_safe_filter((isset($context['ReturnInstructions']) ? $context['ReturnInstructions'] : null));
        echo "</textarea>
\t\t\t\t\t</div>

\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t<label>";
        // line 41
        echo getLang("ReturnReasons");
        echo "</label>
\t\t\t\t\t\t<textarea name=\"returnreasons\" id=\"returnreasons\" class=\"form-control\" rows=\"6\">";
        // line 42
        echo twig_safe_filter((isset($context['ReturnReasonsArea']) ? $context['ReturnReasonsArea'] : null));
        echo "</textarea>
\t\t\t\t\t</div>

\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t<label>";
        // line 46
        echo getLang("ReturnActions");
        echo "</label>
\t\t\t\t\t\t<textarea name=\"returnactions\" id=\"returnactions\" class=\"form-control\" rows=\"6\">";
        // line 47
        echo twig_safe_filter((isset($context['ReturnActionsArea']) ? $context['ReturnActionsArea'] : null));
        echo "</textarea>
\t\t\t\t\t</div>

\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t<label>";
        // line 51
        echo getLang("ReturnCredits");
        echo "</label>
\t\t\t\t\t\t<label><input type=\"checkbox\" name=\"returncredits\" id=\"returncredits\" value=\"1\" ";
        // line 52
        echo twig_safe_filter((isset($context['IsReturnCredits']) ? $context['IsReturnCredits'] : null));
        echo " /> ";
        echo getLang("YesEnableReturnCredits");
        echo "</label>
\t\t\t\t\t</div>

\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t<label>";
        // line 56
        echo getLang("NotifyOnReturn");
        echo "</label>
\t\t\t\t\t\t<label><input type=\"checkbox\" name=\"returnotifyowner\" id=\"returnotifyowner\" value=\"1\" ";
        // line 57
        echo twig_safe_filter((isset($context['IsReturnNotifyOwner']) ? $context['IsReturnNotifyOwner'] : null));
        echo " /> ";
        echo getLang("YesEnableReturnNotifyOwner");
        echo "</label><br />
\t\t\t\t\t\t<label><input type=\"checkbox\" name=\"returnnotifycustomer\" id=\"returnnotifycustomer\" value=\"1\" ";
        // line 58
        echo twig_safe_filter((isset($context['IsReturnNotifyCustomer']) ? $context['IsReturnNotifyCustomer'] : null));
        echo " /> ";
        echo getLang("YesEnableReturnNotifyCustomer");
        echo "</label><br />
\t\t\t\t\t\t<label><input type=\"checkbox\" name=\"returnnotifystatus\" id=\"returnnotifystatus\" value=\"1\" ";
        // line 59
        echo twig_safe_filter((isset($context['IsReturnNotifyStatusChange']) ? $context['IsReturnNotifyStatusChange'] : null));
        echo " /> ";
        echo getLang("YesEnableReturnNotifyStatusChange");
        echo "</label><br />
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>

\t<div class=\"row\">
\t\t<div class=\"col-sm-12\">
\t\t\t<input type=\"submit\" value=\"";
        // line 68
        echo getLang("Save");
        echo "\" class=\"btn btn-primary\" />
\t\t\t<input type=\"reset\" value=\"";
        // line 69
        echo getLang("Cancel");
        echo "\" class=\"btn btn-default\" onclick=\"ConfirmCancel()\" />
\t\t</div>
\t</div>
</form>

<script type=\"text/javascript\">
\tfunction ConfirmCancel() {
\t\tif(confirm('";
        // line 76
        echo getLang("ConfirmCancelSettings");
        echo "')) {
\t\t\tdocument.location.href='index.php?ToDo=viewReturnsSettings';
\t\t} else {
\t\t\treturn false;
\t\t}
\t}

\tfunction CheckReturnsSettingsForm() {
\t\tif(\$('enablereturns').get().checked == true && \$('#returnreasons').val() == \"\") {
\t\t\talert('";
        // line 85
        echo getLang("EnterReturnReason");
        echo "');
\t\t\t\$('#returnreasons').focus();
\t\t\t\$('#returnreasons').select();
\t\t\treturn false;
\t\t}

\t\treturn true;
\t}

\tfunction ToggleReturnsStatus(status) {
\t\tif(status == true) {
\t\t\t\$('.HideOnDisabled').show();
\t\t} else {
\t\t\t\$('.HideOnDisabled').hide();
\t\t}
\t}

\t\$(document).ready(function () {
\t\tif (\$('#enablereturns').attr('checked') == true) {
\t\t\t\$('.HideOnDisabled').show();
\t\t} else {
\t\t\t\$('.HideOnDisabled').hide();
\t\t}
\t});
</script>";
    }

}
