<?php

/* settings.addons.manage.tpl */
class __TwigTemplate_35e9e3a4515b907f337b8825b76f5b73 extends Twig_Template
{
    public function display(array $context)
    {
        // line 1
        echo "<form action=\"index.php?ToDo=saveUpdatedAddonSettings\" name=\"frmAddonSettings\" id=\"frmAddonSettings\" method=\"post\" onsubmit=\"return ValidateForm(CheckAddonSettingsForm)\">
\t<div class=\"row\">
\t\t<h4 class=\"page-title\">";
        // line 3
        echo getLang("AddonSettings");
        echo "</h4>
\t\t<p>";
        // line 4
        echo getLang("AddonSettingsIntro");
        echo "</p>
\t\t";
        // line 5
        echo twig_safe_filter((isset($context['Message']) ? $context['Message'] : null));
        echo "
\t</div>

\t<div class=\"row\">
\t\t<input type=\"submit\" value=\"";
        // line 9
        echo getLang("Save");
        echo "\" class=\"btn btn-primary\" />
\t\t<input type=\"reset\" value=\"";
        // line 10
        echo getLang("Cancel");
        echo "\" class=\"btn btn-default\" onclick=\"ConfirmCancel()\" />
\t\t<br><br>
\t</div>

\t<div class=\"row\">
\t\t<ul id=\"tabnav\" class=\"nav nav-tabs tabs ui-tabs ui-widget ui-widget-content ui-corner-all\" style=\"margin-bottom: 20px;\">
\t\t\t<li class=\"tab\"><a href=\"#\" class=\"active\" id=\"tab0\" onclick=\"ShowTab(0)\">";
        // line 16
        echo getLang("GeneralSettings");
        echo "</a></li>
\t\t\t";
        // line 17
        echo twig_safe_filter((isset($context['AddonTabs']) ? $context['AddonTabs'] : null));
        echo "
\t\t\t<br class=\"Clear\">
\t\t</ul>
\t</div>

\t<div class=\"row\">
\t\t<input id=\"currentTab\" name=\"currentTab\" value=\"0\" type=\"hidden\">
\t\t<div id=\"div0\" style=\"padding-top: 10px;\">
\t\t\t<div class=\"panel panel-default\">
\t\t\t\t<div class=\"panel-heading\" style=\"\"> 
\t\t\t\t\t<h3 class=\"panel-title\">";
        // line 27
        echo getLang("AddonPackages");
        echo "</h3> 
\t\t\t\t</div> 

\t\t\t\t<div class=\"panel-body\">
\t\t\t\t\t<select size=\"";
        // line 31
        echo twig_safe_filter((isset($context['AddonSelectBoxSize']) ? $context['AddonSelectBoxSize'] : null));
        echo "\" multiple name=\"addonpackages[]\" id=\"addonpackages\" class=\"form-control ISSelectReplacement\">
\t\t\t\t\t\t";
        // line 32
        echo twig_safe_filter((isset($context['AddonProviders']) ? $context['AddonProviders'] : null));
        echo "
\t\t\t\t\t</select>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>

\t\t";
        // line 38
        echo twig_safe_filter((isset($context['AddonDivs']) ? $context['AddonDivs'] : null));
        echo "
\t</div>
\t<div class=\"row\">
\t\t<input type=\"submit\" value=\"";
        // line 41
        echo getLang("Save");
        echo "\" class=\"btn btn-primary\" />
\t\t<input type=\"reset\" value=\"";
        // line 42
        echo getLang("Cancel");
        echo "\" class=\"btn btn-default\" onclick=\"ConfirmCancel()\" />
\t</div>
</form>
<script type=\"text/javascript\">
\tvar hide_buttons_on_tabs = '";
        // line 46
        echo twig_safe_filter((isset($context['TabIdsToHideButtonsFrom']) ? $context['TabIdsToHideButtonsFrom'] : null));
        echo "';
\tfunction package_selected(package_id) {
\t\tvar ap = document.getElementById(\"addonpackages_old\");

\t\tfor(i = 0; i < ap.options.length; i++) {
\t\t\tif(ap.options[i].value == package_id && ap.options[i].selected)
\t\t\t\treturn true;
\t\t}

\t\treturn false;
\t}

\tfunction ShowTab(T) {
\t\ti = 0;
\t\twhile (document.getElementById(\"tab\" + i) != null) {
\t\t\tdocument.getElementById(\"div\" + i).style.display = \"none\";
\t\t\tdocument.getElementById(\"tab\" + i).className = \"\";
\t\t\ti++;
\t\t}

\t\tdocument.getElementById(\"div\" + T).style.display = \"\";
\t\tdocument.getElementById(\"tab\" + T).className = \"active\";
\t\tdocument.getElementById(\"currentTab\").value = T;

\t\t// Is this a tab on which we have to hide the save/cancel buttons
\t\tif(hide_buttons_on_tabs.indexOf(T + '|') > -1) {
\t\t\t\$('#SaveCancelBottom').hide();
\t\t} else {
\t\t\t\$('#SaveCancelBottom').show();
\t\t}
\t}

\tfunction ConfirmCancel() {
\t\tif(confirm(\"";
        // line 79
        echo getLang("ConfirmCancelAddonsSettings");
        echo "\"))
\t\t\tdocument.location.href = \"index.php?ToDo=viewAddonSettings\";
\t}

\tfunction CheckAddonSettingsForm() {
\t\t";
        // line 84
        echo twig_safe_filter((isset($context['AddonJavaScript']) ? $context['AddonJavaScript'] : null));
        echo "
\t}

\t\$(document).ready(function() {
\t\t// Load the main addons settings tab by default
\t\tShowTab(";
        // line 89
        echo twig_safe_filter((isset($context['CurrentTab']) ? $context['CurrentTab'] : null));
        echo ");
\t});
</script>";
    }

}
