var/cache/dev/twig/93/9375c7b46eaf4688a4b47266540245c7.php line 51

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* uredi_menu/index.html.twig */
  14. class __TwigTemplate_cb6af6b3ead794396d2b7894fba0a4b1 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'javascriptcode' => [$this'block_javascriptcode'],
  25.             'breadcrumbs' => [$this'block_breadcrumbs'],
  26.             'content' => [$this'block_content'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return "base.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""uredi_menu/index.html.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""uredi_menu/index.html.twig"));
  41.         $this->parent $this->loadTemplate("base.html.twig""uredi_menu/index.html.twig"1);
  42.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  45.         
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47.     }
  48.     // line 3
  49.     public function block_title($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  56.         echo "Uredi vsebino parent = ";
  57.         echo twig_escape_filter($this->env, (isset($context["menu_parent_g"]) || array_key_exists("menu_parent_g"$context) ? $context["menu_parent_g"] : (function () { throw new RuntimeError('Variable "menu_parent_g" does not exist.'3$this->source); })()), "html"nulltrue);
  58.         
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  60.         
  61.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  62.     }
  63.     // line 6
  64.     public function block_javascriptcode($context, array $blocks = [])
  65.     {
  66.         $macros $this->macros;
  67.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  68.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascriptcode"));
  69.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  70.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascriptcode"));
  71.         // line 7
  72.         echo "    <script type=\"text/javascript\">
  73.         
  74.         var datotekaInputUploader;
  75.         var datotekaMultipleInputUploader;
  76.         var datotekaAdditionalInputUploader;
  77.         var api;
  78.         var apiMultiple;
  79.         var apiAdditional;
  80.         var gUploadedImage;
  81.         function createUploaderImageMenu()
  82.         {
  83.             \$.ajax({
  84.                 url:'";
  85.         // line 20
  86.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("editmenu_getpreloadedimage");
  87.         echo "',
  88.                 type: \"POST\",
  89.                 dataType: \"json\",
  90.                 async: true,
  91.                 data:{ id: ";
  92.         // line 24
  93.         echo twig_escape_filter($this->env, (isset($context["menu_parent_g"]) || array_key_exists("menu_parent_g"$context) ? $context["menu_parent_g"] : (function () { throw new RuntimeError('Variable "menu_parent_g" does not exist.'24$this->source); })()), "html"nulltrue);
  94.         echo "},
  95.                 success: function (return_data)
  96.                 {  
  97.                     fileImage = \$('#datotekaInput').fileuploader(
  98.                     {
  99.                         limit: 1,
  100.                         enableApi:true,
  101.                         files: return_data,
  102.                         onSelect: function(item) 
  103.                         {
  104.                             if (!item.html.find('.fileuploader-action-start').length)
  105.                                 item.html.find('.fileuploader-action-remove').before('<a class=\"fileuploader-action fileuploader-action-start\" title=\"Upload\"><i></i></a>');
  106.                         },
  107.                         upload:
  108.                         {
  109.                             url: '";
  110.         // line 39
  111.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dodajmenuuploadimagecall");
  112.         echo "',
  113.                             data: {
  114.                                'menu_id': ";
  115.         // line 41
  116.         echo twig_escape_filter($this->env, (isset($context["menu_parent_g"]) || array_key_exists("menu_parent_g"$context) ? $context["menu_parent_g"] : (function () { throw new RuntimeError('Variable "menu_parent_g" does not exist.'41$this->source); })()), "html"nulltrue);
  117.         echo "
  118.                             },
  119.                             type: 'POST',
  120.                             enctype: 'multipart/form-data',
  121.                             start: true,
  122.                             synchron: true,
  123.                             beforeSend: function(item) 
  124.                             {
  125.                                 item.upload.data.custom_name = item.name;
  126.                             },
  127.                             onSuccess: function(result, item) 
  128.                             {
  129.                                 var data = {};
  130.                                 gUploadedImage = result[0].files[0].name;
  131.                                 try {
  132.                                     data = JSON.parse(result);
  133.                                 } catch (e) {
  134.                                     data.hasWarnings = true;
  135.                                 }
  136.                                 // get the new file name
  137.                                 if(data.isSuccess && data.files[0]) 
  138.                                 {
  139.                                     item.name = data.files[0].name;
  140.                                     item.html.find('.column-title div').animate({opacity: 0}, 400);
  141.                                 }
  142.                         
  143.                                 item.html.find('.fileuploader-action-remove').addClass('fileuploader-action-success');
  144.                                 setTimeout(function() 
  145.                                 {
  146.                                     item.html.find('.column-title div').attr('title', result[0].files[0].name).text(result[0].files[0].name).animate({opacity: 1}, 400);
  147.                                     item.html.find('.progress-bar2').fadeOut(400);
  148.                                 }, 
  149.                                 400);
  150.                                 
  151.                             },
  152.                             onError: function(item) 
  153.                             {
  154.                                 var progressBar = item.html.find('.progress-bar2');
  155.                                 // make HTML changes
  156.                                 if(progressBar.length > 0) 
  157.                                 {
  158.                                     progressBar.find('span').html(0 + \"%\");
  159.                                     progressBar.find('.fileuploader-progressbar .bar').width(0 + \"%\");
  160.                                     item.html.find('.progress-bar2').fadeOut(400);
  161.                                 }
  162.                                 
  163.                                 item.upload.status != 'cancelled' && item.html.find('.fileuploader-action-retry').length == 0 ? item.html.find('.column-actions').prepend(
  164.                                     '<a class=\"fileuploader-action fileuploader-action-retry\" title=\"Retry\"><i></i></a>'
  165.                                 ) : null;
  166.                             },
  167.                             onProgress: function(data, item) 
  168.                             {
  169.                                 var progressBar = item.html.find('.progress-bar2');
  170.                                 // make HTML changes
  171.                                 if(progressBar.length > 0) 
  172.                                 {
  173.                                     progressBar.show();
  174.                                     progressBar.find('span').html(data.percentage + \"%\");
  175.                                     progressBar.find('.fileuploader-progressbar .bar').width(data.percentage + \"%\");
  176.                                 }
  177.                             },
  178.                             onComplete: null,
  179.                         },
  180.                         onRemove: function(item) 
  181.                         {       
  182.                             // send POST request
  183.                             \$.post('/api/ajax_remove_file.php', {
  184.                                 file: item.name
  185.                             });
  186.                         },
  187.                         captions: 
  188.                         {
  189.                             button: function(options) { return 'Izberi ' + (options.limit == 1 ? 'datoteko' : 'datoteke'); },
  190.                             feedback: function(options) { return 'Izberi datoteko'; },
  191.                             feedback2: function(options) { return 'Število izbranih datotek: ' + options.length; },
  192.                             confirm: 'Potrdi',
  193.                             cancel: 'Prekliči',
  194.                             name: 'Ime',
  195.                             type: 'Tip',
  196.                             size: 'Velikost',
  197.                             dimensions: 'Dimenzije',
  198.                             duration: 'Čas trajanja',
  199.                             crop: 'Razreži',
  200.                             rotate: 'Rotiraj',
  201.                             sort: 'Sortiraj',
  202.                             download: 'Prenesi',
  203.                             upload: 'Naloži',
  204.                             remove: 'Odstrani',
  205.                             drop: 'Povlecite sem datotetke, ki jih želite naložiti na strežnik.',
  206.                             paste: '<div class=\"fileuploader-pending-loader\"></div> Datoteka se bo prilepila. Kliknite sem, če želite preklicati akcijo.',
  207.                             removeConfirmation: 'Ste prepričani, da želite izbrisati datoteko?',
  208.                             errors: {
  209.                                 filesLimit: 'Število dovoljenih datotek: \${limit}.',
  210.                                 filesType: 'Dovoljeni tipi datotek: \${extensions}.',
  211.                                 fileSize: '\${name} je predolga! Največja dovoljena velikost datoteke je \${fileMaxSize} MB.',
  212.                                 filesSizeAll: 'Datoteke so predolge! Največja dovoljena velikost datotek je \${maxSize} MB.',
  213.                                 fileName: 'Datoteka z imenom \${name} je že izbrana.',
  214.                                 folderUpload: 'Prenos map ni dovoljen.'
  215.                             }
  216.                         }   
  217.                     });
  218.                     apiContentImage = \$.fileuploader.getInstance(fileImage);
  219.                 }});
  220.         }
  221.         function fillData()
  222.         {
  223.             
  224.             
  225.             gUploadedImage = '";
  226.         // line 154
  227.         echo twig_escape_filter($this->env, (isset($context["menu_image"]) || array_key_exists("menu_image"$context) ? $context["menu_image"] : (function () { throw new RuntimeError('Variable "menu_image" does not exist.'154$this->source); })()), "html"nulltrue);
  228.         echo "';
  229.             createUploaderImageMenu(); 
  230.             //createUploaderMultipleImage();
  231.             //clearFields();            
  232.         }
  233.         \$( document ).ready(function() 
  234.         {
  235.             if ('";
  236.         // line 165
  237.         echo twig_escape_filter($this->env, (isset($context["menu_lang_g"]) || array_key_exists("menu_lang_g"$context) ? $context["menu_lang_g"] : (function () { throw new RuntimeError('Variable "menu_lang_g" does not exist.'165$this->source); })()), "html"nulltrue);
  238.         echo "' == 'si')
  239.             {
  240.                 \$(\"#defaultFlag\").attr(\"src\",\"";
  241.         // line 167
  242.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/flags/Slovenia.png"), "html"nulltrue);
  243.         echo "\");
  244.             }
  245.             else if ('";
  246.         // line 169
  247.         echo twig_escape_filter($this->env, (isset($context["menu_lang_g"]) || array_key_exists("menu_lang_g"$context) ? $context["menu_lang_g"] : (function () { throw new RuntimeError('Variable "menu_lang_g" does not exist.'169$this->source); })()), "html"nulltrue);
  248.         echo "' =='en')
  249.             {
  250.                 \$(\"#defaultFlag\").attr(\"src\",\"";
  251.         // line 171
  252.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/flags/United-Kingdom.png"), "html"nulltrue);
  253.         echo "\");
  254.             } 
  255.             else if ('";
  256.         // line 173
  257.         echo twig_escape_filter($this->env, (isset($context["menu_lang_g"]) || array_key_exists("menu_lang_g"$context) ? $context["menu_lang_g"] : (function () { throw new RuntimeError('Variable "menu_lang_g" does not exist.'173$this->source); })()), "html"nulltrue);
  258.         echo "' =='it')
  259.             {
  260.                 \$(\"#defaultFlag\").attr(\"src\",\"";
  261.         // line 175
  262.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/flags/Italy.png"), "html"nulltrue);
  263.         echo "\");
  264.             } 
  265.             
  266.             tinymce.init({
  267.                 selector: 'textarea',
  268.                 height:600,
  269.                         width:1000,
  270.                         plugins: 'fullpage advlist autolink lists link image charmap print preview hr anchor pagebreak moxiemanager code table',
  271.                         toolbar: 'fullpage code table tabledelete | tableprops tablerowprops tablecellprops | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol undo redo | insert | styles | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image',
  272.                         toolbar_mode: 'floating',
  273.                         extended_valid_elements : \"script[src|async|defer|type|charset]\",
  274.                         convert_urls: false,
  275.                         entity_encoding:'raw',
  276.                 
  277.                 setup: function (editor) {
  278.                     
  279.                     
  280.                     
  281.                     editor.on('init', function () {
  282.                         
  283.                         var content ='";
  284.         // line 196
  285.         echo twig_escape_filter($this->env, (isset($context["menu_content"]) || array_key_exists("menu_content"$context) ? $context["menu_content"] : (function () { throw new RuntimeError('Variable "menu_content" does not exist.'196$this->source); })()), "html"nulltrue);
  286.         echo "';
  287.                         //editor.setContent(content);
  288.                         //editor.setContent('<p><b>To je bla</b></p>');
  289.                         
  290.                         var Title = \$('<textarea />').html(content).text();
  291.                         var TitleTrimmed =Title.substring(1, Title.length-1);
  292.                         editor.setContent(TitleTrimmed.trim());
  293.                     });
  294.                 }  
  295.             });
  296.             fillData();
  297.             //tinymce.get('textarea').focus();
  298.             tinymce.activeEditor.setContent(\"Dodajte novo vsebino\");
  299.             
  300.             
  301.             
  302.             
  303.             //napolnim vnosna polja za urejanje menija
  304.             \$('#menu_title').val('";
  305.         // line 217
  306.         echo twig_escape_filter($this->env, (isset($context["menu_title"]) || array_key_exists("menu_title"$context) ? $context["menu_title"] : (function () { throw new RuntimeError('Variable "menu_title" does not exist.'217$this->source); })()), "html"nulltrue);
  307.         echo "');
  308.             
  309.             if('";
  310.         // line 220
  311.         echo twig_escape_filter($this->env, (isset($context["menu_visible"]) || array_key_exists("menu_visible"$context) ? $context["menu_visible"] : (function () { throw new RuntimeError('Variable "menu_visible" does not exist.'220$this->source); })()), "html"nulltrue);
  312.         echo "' == 0)
  313.             {
  314.                 \$('#menu_visible').prop('checked', false);
  315.             }
  316.             else
  317.             {
  318.                 \$('#menu_visible').prop('checked', true);
  319.             }
  320.             
  321.             
  322.             //gumb zapriOkno CLICK!
  323.             \$(\"#zapriOkno\").click(function(){
  324.             
  325.                 location.href = '/menus';
  326.             });
  327.             //gumb shrani CLICK!
  328.             \$(\"#shranimenu\").click(function(){
  329.                 console.log(\"TEST\");
  330.                 //var myContent = tinymce.get(\"textarea\").getContent();
  331.                 var myContent = tinymce.activeEditor.getContent();
  332.                 console.log(myContent);
  333.                 //preverjamo ali je spremenljivka definirana
  334.                 if (typeof gUploadedImage !== 'undefined') {
  335.                     // the variable is defined
  336.                 }
  337.                 else
  338.                 {
  339.                     gUploadedImage = \"\";
  340.                 }
  341.                 //ajax call za uredi vsebino!
  342.                 \$.ajax({
  343.                     url:'";
  344.         // line 255
  345.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("uredimenucall");
  346.         echo "',
  347.                     type: \"POST\",
  348.                     dataType: \"json\",
  349.                     async: true,
  350.                     data: {
  351.                         'menu_title' : \$('#menu_title').val(),
  352.                         'menu_content': myContent,
  353.                         'menu_parent': ";
  354.         // line 262
  355.         echo twig_escape_filter($this->env, (isset($context["menu_parent_g"]) || array_key_exists("menu_parent_g"$context) ? $context["menu_parent_g"] : (function () { throw new RuntimeError('Variable "menu_parent_g" does not exist.'262$this->source); })()), "html"nulltrue);
  356.         echo ",
  357.                         'menu_lang': '";
  358.         // line 263
  359.         echo twig_escape_filter($this->env, (isset($context["menu_lang_g"]) || array_key_exists("menu_lang_g"$context) ? $context["menu_lang_g"] : (function () { throw new RuntimeError('Variable "menu_lang_g" does not exist.'263$this->source); })()), "html"nulltrue);
  360.         echo "',
  361.                         'menu_top': \$('#menu_top').is(':checked'),
  362.                         'menu_footer': \$('#menu_footer').is(':checked'),
  363.                         'menu_visible': \$('#menu_visible').is(':checked'),
  364.                         'menu_image': gUploadedImage
  365.                         },
  366.                     success: function (return_data)
  367.                     {          
  368. \t\t\t\t\t\tif (return_data.data == \"ok\")              
  369.                         {
  370. \t\t\t\t\t\t\t
  371. \t\t\t\t\t\t}
  372. \t\t\t\t\t\telse
  373. \t\t\t\t\t\t{
  374. \t\t\t\t\t\t\t\$('#opozoriloSplosno').attr('class','alert alert-danger');
  375. \t\t\t\t\t\t\t\$('#opozoriloSplosno').text('Brisanje LVK ni mogoče, ker imate nezaključene postavke.');
  376. \t\t\t\t\t\t\t\t\t\t\t\t\t\t
  377. \t\t\t\t\t\t}
  378. \t\t\t\t\t\t\$('#opozoriloSplosno').show(); 
  379. \t\t\t\t\t\t\$(\"html, body\").animate({ scrollTop: 0 }, \"slow\");
  380.                     },
  381.                     error: function (xhr, ajaxOptions, thrownError)
  382.                     {
  383. \t\t\t\t\t\tconsole.log(thrownError);
  384.                     }
  385.                 });
  386.                 location.href = '/menus';
  387.                 //END ajax call za shrani vsebino
  388.             });
  389.             //END gumb shrani vsebino CLICK 
  390.         });
  391.     </script>
  392. ";
  393.         
  394.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  395.         
  396.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  397.     }
  398.     // line 302
  399.     public function block_breadcrumbs($context, array $blocks = [])
  400.     {
  401.         $macros $this->macros;
  402.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  403.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcrumbs"));
  404.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  405.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcrumbs"));
  406.         // line 303
  407.         echo "    <li class=\"breadcrumb-item\">Domov</li>
  408.     <!--<li class=\"breadcrumb-item\"><a href=\"#\">Šifranti</a></li>-->
  409.     <li class=\"breadcrumb-item active\">Vsebina</li>
  410.     <li style=\"float: right;\">prijavljen: ";
  411.         // line 306
  412.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'306$this->source); })()), "user", [], "any"falsefalsefalse306), "name", [], "any"falsefalsefalse306), "html"nulltrue);
  413.         echo "</li>
  414.     
  415.     <!-- Breadcrumb Menu-->
  416.     <li class=\"breadcrumb-menu d-md-down-none\">
  417.         <div class=\"btn-group\" role=\"group\" aria-label=\"Button group with nested dropdown\"></div>
  418.     </li>
  419. ";
  420.         
  421.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  422.         
  423.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  424.     }
  425.     // line 314
  426.     public function block_content($context, array $blocks = [])
  427.     {
  428.         $macros $this->macros;
  429.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  430.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  431.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  432.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  433.         // line 315
  434.         echo "<div class=\"card\">
  435. \t\t<div class=\"card-header\">
  436. \t\t\t<i class=\"fa fa-edit\"></i>               
  437. \t\t\t<strong>Urejanje menuja</strong>
  438. \t\t\t<span id=\"shranjujem\" style=\"padding-left: 20px;color: #20a8d8;display:none;\">... shranjujem ... </span>
  439.             <div class=\"card-actions\">                
  440.                 
  441.             </div>
  442. \t\t</div>
  443. \t\t<div class=\"card-body\">
  444.             <div id=\"opozoriloSplosno\" class=\"alert alert-danger\" role=\"alert\" style=\"display:none;\">
  445.                 -
  446.             </div>
  447.             
  448.             <ul class=\"nav nav-tabs\" role=\"tablist\">
  449.                 <li class=\"nav-item\">
  450.                      <a class=\"nav-link active\" data-toggle=\"tab\" href=\"#vsebina\" role=\"tab\" aria-controls=\"home\"><i class=\"icon-book-open\"></i> Vsebina</a>
  451.                 </li>
  452.                 <li class=\"nav-item\">
  453.                     <a class=\"nav-link\" data-toggle=\"tab\" href=\"#dodatnefotografije\" role=\"tab\" aria-controls=\"profile\"><i class=\"icon-picture\"></i> Dodatne fotografije</a>
  454.                 </li>
  455.                 <li class=\"nav-item\">
  456.                     <a class=\"nav-link\" data-toggle=\"tab\" href=\"#dodatnedatoteke\" role=\"tab\" aria-controls=\"messages\"><i class=\"icon-paper-clip\"></i> Dodatne datoteke</a>
  457.                 </li>
  458.             </ul>
  459.             <div class=\"tab-content\">
  460.                                 <div class=\"tab-pane active\" id=\"vsebina\" role=\"tabpanel\">
  461.                                     <form id=\"vsebinaForma\" enctype=\"multipart/form-data\">
  462.                                         <div class=\"form-group\">
  463.                                             <label for=\"naslov\">Naziv menija</label>
  464.                                             <input type=\"text\" class=\"form-control\" id=\"menu_title\" placeholder=\"Vnesite naziv menija\" name=\"menu_title\">
  465.                                         </div>
  466.                                         
  467.                                         <div class=\"form-group\">
  468.                                             <label for=\"besedilo\">Besedilo menija</label>
  469.                                             
  470.                                             <textarea id=\"menu_content\" name=\"menu_content\">
  471.                                                 
  472.                                             </textarea>
  473.                                         </div>                                
  474.                                         <div class=\"form-group\">
  475.                                             <div class=\"file-loading\">
  476.                                                 <label for=\"datotekaInput\">Slika menija</label>
  477.                                                 <input id=\"datotekaInput\" type=\"file\" class=\"file\" data-overwrite-initial=\"false\" name=\"datotekaInput\" multiple=\"true\"  data-fileuploader-files=''>
  478.                                             </div>
  479.                                         </div>
  480.                                         <hr>
  481.                                         <div class=\"form-group\">
  482.                                             <label for=\"vidna\">Ali naj bo meni viden?</label><br>
  483.                                             <label class=\"switch switch-text switch-pill switch-primary\">
  484.                                                 <input type=\"checkbox\" class=\"switch-input\" checked=\"\" name=\"menu_visible\" id=\"menu_visible\">
  485.                                                 <span class=\"switch-label\" data-on=\"DA\" data-off=\"NE\"></span>
  486.                                                 <span class=\"switch-handle\"></span>
  487.                                             </label>
  488.                                         </div>
  489.                                         <div class=\"form-group\">
  490.                                             <label for=\"vidna_menu\">Ali naj bo gradnik viden v menuju?</label><br>
  491.                                             <label class=\"switch switch-text switch-pill switch-primary\">
  492.                                                 <input type=\"checkbox\" class=\"switch-input\" checked=\"\" name=\"menu_top\" id=\"menu_top\">
  493.                                                 <span class=\"switch-label\" data-on=\"DA\" data-off=\"NE\"></span>
  494.                                                 <span class=\"switch-handle\"></span>
  495.                                             </label>
  496.                                         </div>
  497.                                         <div class=\"form-group\">
  498.                                             <label for=\"vidna_footer\">Ali naj bo gradnik vidna v nogi?</label><br>
  499.                                             <label class=\"switch switch-text switch-pill switch-primary\">
  500.                                                 <input type=\"checkbox\" class=\"switch-input\" checked=\"\" name=\"menu_footer\" id=\"menu_footer\">
  501.                                                 <span class=\"switch-label\" data-on=\"DA\" data-off=\"NE\"></span>
  502.                                                 <span class=\"switch-handle\"></span>
  503.                                             </label>
  504.                                         </div>
  505.                                     </form>
  506.                                 </div>
  507.                                 <div class=\"tab-pane\" id=\"dodatnefotografije\" role=\"tabpanel\">
  508.                                     <form id=\"fotografijeForma\" enctype=\"multipart/form-data\">
  509.                                         <div class=\"form-group\">
  510.                                             <div class=\"file-loading\">
  511.                                                 <label for=\"datotekaMultipleInput\">Dodatne fotografije</label>
  512.                                                 <input class=\"gallery_media\" id=\"datotekaMultipleInput\" type=\"file\" class=\"file\" name=\"datotekaMultipleInput[]\" multiple=\"true\" >
  513.                                             </div>
  514.                                         </div>
  515.                                     </form>
  516.                                 </div>
  517.                                 <div class=\"tab-pane\" id=\"dodatnedatoteke\" role=\"tabpanel\">
  518.                                     <form id=\"datotekeForma\" enctype=\"multipart/form-data\">
  519.                                         <div class=\"form-group\">
  520.                                             <div class=\"file-loading\">
  521.                                                 <label for=\"datotekaAdditionalInput\">Dodatne datoteke</label>
  522.                                                 <input id=\"datotekaAdditionalInput\" type=\"file\" class=\"file\" data-overwrite-initial=\"false\" name=\"datotekaAdditionalInput[]\" multiple=\"true\">
  523.                                             </div>
  524.                                         </div>                                
  525.                                     </form>
  526.                                 </div>  
  527.                             </div>
  528.         </div>
  529.         <div class=\"card-footer\">
  530.             <button type=\"button\" class=\"btn btn-primary\" id=\"shranimenu\">Shrani menu</button>
  531.             <button type=\"button\" class=\"btn btn-secondary\" id=\"zapriOkno\">Prekliči</button>
  532.         </div>
  533. \t</div><!--card-->
  534.     ";
  535.         
  536.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  537.         
  538.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  539.     }
  540.     public function getTemplateName()
  541.     {
  542.         return "uredi_menu/index.html.twig";
  543.     }
  544.     public function isTraitable()
  545.     {
  546.         return false;
  547.     }
  548.     public function getDebugInfo()
  549.     {
  550.         return array (  484 => 315,  474 => 314,  457 => 306,  452 => 303,  442 => 302,  397 => 263,  393 => 262,  383 => 255,  345 => 220,  339 => 217,  315 => 196,  291 => 175,  286 => 173,  281 => 171,  276 => 169,  271 => 167,  266 => 165,  252 => 154,  136 => 41,  131 => 39,  113 => 24,  106 => 20,  91 => 7,  81 => 6,  61 => 3,  38 => 1,);
  551.     }
  552.     public function getSourceContext()
  553.     {
  554.         return new Source("{% extends 'base.html.twig' %}
  555. {% block title %}Uredi vsebino parent = {{menu_parent_g}}{% endblock %}
  556. {% block javascriptcode %}
  557.     <script type=\"text/javascript\">
  558.         
  559.         var datotekaInputUploader;
  560.         var datotekaMultipleInputUploader;
  561.         var datotekaAdditionalInputUploader;
  562.         var api;
  563.         var apiMultiple;
  564.         var apiAdditional;
  565.         var gUploadedImage;
  566.         function createUploaderImageMenu()
  567.         {
  568.             \$.ajax({
  569.                 url:'{{ path('editmenu_getpreloadedimage') }}',
  570.                 type: \"POST\",
  571.                 dataType: \"json\",
  572.                 async: true,
  573.                 data:{ id: {{ menu_parent_g }}},
  574.                 success: function (return_data)
  575.                 {  
  576.                     fileImage = \$('#datotekaInput').fileuploader(
  577.                     {
  578.                         limit: 1,
  579.                         enableApi:true,
  580.                         files: return_data,
  581.                         onSelect: function(item) 
  582.                         {
  583.                             if (!item.html.find('.fileuploader-action-start').length)
  584.                                 item.html.find('.fileuploader-action-remove').before('<a class=\"fileuploader-action fileuploader-action-start\" title=\"Upload\"><i></i></a>');
  585.                         },
  586.                         upload:
  587.                         {
  588.                             url: '{{ path('dodajmenuuploadimagecall') }}',
  589.                             data: {
  590.                                'menu_id': {{ menu_parent_g }}
  591.                             },
  592.                             type: 'POST',
  593.                             enctype: 'multipart/form-data',
  594.                             start: true,
  595.                             synchron: true,
  596.                             beforeSend: function(item) 
  597.                             {
  598.                                 item.upload.data.custom_name = item.name;
  599.                             },
  600.                             onSuccess: function(result, item) 
  601.                             {
  602.                                 var data = {};
  603.                                 gUploadedImage = result[0].files[0].name;
  604.                                 try {
  605.                                     data = JSON.parse(result);
  606.                                 } catch (e) {
  607.                                     data.hasWarnings = true;
  608.                                 }
  609.                                 // get the new file name
  610.                                 if(data.isSuccess && data.files[0]) 
  611.                                 {
  612.                                     item.name = data.files[0].name;
  613.                                     item.html.find('.column-title div').animate({opacity: 0}, 400);
  614.                                 }
  615.                         
  616.                                 item.html.find('.fileuploader-action-remove').addClass('fileuploader-action-success');
  617.                                 setTimeout(function() 
  618.                                 {
  619.                                     item.html.find('.column-title div').attr('title', result[0].files[0].name).text(result[0].files[0].name).animate({opacity: 1}, 400);
  620.                                     item.html.find('.progress-bar2').fadeOut(400);
  621.                                 }, 
  622.                                 400);
  623.                                 
  624.                             },
  625.                             onError: function(item) 
  626.                             {
  627.                                 var progressBar = item.html.find('.progress-bar2');
  628.                                 // make HTML changes
  629.                                 if(progressBar.length > 0) 
  630.                                 {
  631.                                     progressBar.find('span').html(0 + \"%\");
  632.                                     progressBar.find('.fileuploader-progressbar .bar').width(0 + \"%\");
  633.                                     item.html.find('.progress-bar2').fadeOut(400);
  634.                                 }
  635.                                 
  636.                                 item.upload.status != 'cancelled' && item.html.find('.fileuploader-action-retry').length == 0 ? item.html.find('.column-actions').prepend(
  637.                                     '<a class=\"fileuploader-action fileuploader-action-retry\" title=\"Retry\"><i></i></a>'
  638.                                 ) : null;
  639.                             },
  640.                             onProgress: function(data, item) 
  641.                             {
  642.                                 var progressBar = item.html.find('.progress-bar2');
  643.                                 // make HTML changes
  644.                                 if(progressBar.length > 0) 
  645.                                 {
  646.                                     progressBar.show();
  647.                                     progressBar.find('span').html(data.percentage + \"%\");
  648.                                     progressBar.find('.fileuploader-progressbar .bar').width(data.percentage + \"%\");
  649.                                 }
  650.                             },
  651.                             onComplete: null,
  652.                         },
  653.                         onRemove: function(item) 
  654.                         {       
  655.                             // send POST request
  656.                             \$.post('/api/ajax_remove_file.php', {
  657.                                 file: item.name
  658.                             });
  659.                         },
  660.                         captions: 
  661.                         {
  662.                             button: function(options) { return 'Izberi ' + (options.limit == 1 ? 'datoteko' : 'datoteke'); },
  663.                             feedback: function(options) { return 'Izberi datoteko'; },
  664.                             feedback2: function(options) { return 'Število izbranih datotek: ' + options.length; },
  665.                             confirm: 'Potrdi',
  666.                             cancel: 'Prekliči',
  667.                             name: 'Ime',
  668.                             type: 'Tip',
  669.                             size: 'Velikost',
  670.                             dimensions: 'Dimenzije',
  671.                             duration: 'Čas trajanja',
  672.                             crop: 'Razreži',
  673.                             rotate: 'Rotiraj',
  674.                             sort: 'Sortiraj',
  675.                             download: 'Prenesi',
  676.                             upload: 'Naloži',
  677.                             remove: 'Odstrani',
  678.                             drop: 'Povlecite sem datotetke, ki jih želite naložiti na strežnik.',
  679.                             paste: '<div class=\"fileuploader-pending-loader\"></div> Datoteka se bo prilepila. Kliknite sem, če želite preklicati akcijo.',
  680.                             removeConfirmation: 'Ste prepričani, da želite izbrisati datoteko?',
  681.                             errors: {
  682.                                 filesLimit: 'Število dovoljenih datotek: \${limit}.',
  683.                                 filesType: 'Dovoljeni tipi datotek: \${extensions}.',
  684.                                 fileSize: '\${name} je predolga! Največja dovoljena velikost datoteke je \${fileMaxSize} MB.',
  685.                                 filesSizeAll: 'Datoteke so predolge! Največja dovoljena velikost datotek je \${maxSize} MB.',
  686.                                 fileName: 'Datoteka z imenom \${name} je že izbrana.',
  687.                                 folderUpload: 'Prenos map ni dovoljen.'
  688.                             }
  689.                         }   
  690.                     });
  691.                     apiContentImage = \$.fileuploader.getInstance(fileImage);
  692.                 }});
  693.         }
  694.         function fillData()
  695.         {
  696.             
  697.             
  698.             gUploadedImage = '{{ menu_image }}';
  699.             createUploaderImageMenu(); 
  700.             //createUploaderMultipleImage();
  701.             //clearFields();            
  702.         }
  703.         \$( document ).ready(function() 
  704.         {
  705.             if ('{{menu_lang_g}}' == 'si')
  706.             {
  707.                 \$(\"#defaultFlag\").attr(\"src\",\"{{ asset('img/flags/Slovenia.png')}}\");
  708.             }
  709.             else if ('{{menu_lang_g}}' =='en')
  710.             {
  711.                 \$(\"#defaultFlag\").attr(\"src\",\"{{ asset('img/flags/United-Kingdom.png')}}\");
  712.             } 
  713.             else if ('{{menu_lang_g}}' =='it')
  714.             {
  715.                 \$(\"#defaultFlag\").attr(\"src\",\"{{ asset('img/flags/Italy.png')}}\");
  716.             } 
  717.             
  718.             tinymce.init({
  719.                 selector: 'textarea',
  720.                 height:600,
  721.                         width:1000,
  722.                         plugins: 'fullpage advlist autolink lists link image charmap print preview hr anchor pagebreak moxiemanager code table',
  723.                         toolbar: 'fullpage code table tabledelete | tableprops tablerowprops tablecellprops | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol undo redo | insert | styles | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image',
  724.                         toolbar_mode: 'floating',
  725.                         extended_valid_elements : \"script[src|async|defer|type|charset]\",
  726.                         convert_urls: false,
  727.                         entity_encoding:'raw',
  728.                 
  729.                 setup: function (editor) {
  730.                     
  731.                     
  732.                     
  733.                     editor.on('init', function () {
  734.                         
  735.                         var content ='{{menu_content}}';
  736.                         //editor.setContent(content);
  737.                         //editor.setContent('<p><b>To je bla</b></p>');
  738.                         
  739.                         var Title = \$('<textarea />').html(content).text();
  740.                         var TitleTrimmed =Title.substring(1, Title.length-1);
  741.                         editor.setContent(TitleTrimmed.trim());
  742.                     });
  743.                 }  
  744.             });
  745.             fillData();
  746.             //tinymce.get('textarea').focus();
  747.             tinymce.activeEditor.setContent(\"Dodajte novo vsebino\");
  748.             
  749.             
  750.             
  751.             
  752.             //napolnim vnosna polja za urejanje menija
  753.             \$('#menu_title').val('{{menu_title}}');
  754.             
  755.             if('{{menu_visible}}' == 0)
  756.             {
  757.                 \$('#menu_visible').prop('checked', false);
  758.             }
  759.             else
  760.             {
  761.                 \$('#menu_visible').prop('checked', true);
  762.             }
  763.             
  764.             
  765.             //gumb zapriOkno CLICK!
  766.             \$(\"#zapriOkno\").click(function(){
  767.             
  768.                 location.href = '/menus';
  769.             });
  770.             //gumb shrani CLICK!
  771.             \$(\"#shranimenu\").click(function(){
  772.                 console.log(\"TEST\");
  773.                 //var myContent = tinymce.get(\"textarea\").getContent();
  774.                 var myContent = tinymce.activeEditor.getContent();
  775.                 console.log(myContent);
  776.                 //preverjamo ali je spremenljivka definirana
  777.                 if (typeof gUploadedImage !== 'undefined') {
  778.                     // the variable is defined
  779.                 }
  780.                 else
  781.                 {
  782.                     gUploadedImage = \"\";
  783.                 }
  784.                 //ajax call za uredi vsebino!
  785.                 \$.ajax({
  786.                     url:'{{ path('uredimenucall') }}',
  787.                     type: \"POST\",
  788.                     dataType: \"json\",
  789.                     async: true,
  790.                     data: {
  791.                         'menu_title' : \$('#menu_title').val(),
  792.                         'menu_content': myContent,
  793.                         'menu_parent': {{menu_parent_g}},
  794.                         'menu_lang': '{{menu_lang_g}}',
  795.                         'menu_top': \$('#menu_top').is(':checked'),
  796.                         'menu_footer': \$('#menu_footer').is(':checked'),
  797.                         'menu_visible': \$('#menu_visible').is(':checked'),
  798.                         'menu_image': gUploadedImage
  799.                         },
  800.                     success: function (return_data)
  801.                     {          
  802. \t\t\t\t\t\tif (return_data.data == \"ok\")              
  803.                         {
  804. \t\t\t\t\t\t\t
  805. \t\t\t\t\t\t}
  806. \t\t\t\t\t\telse
  807. \t\t\t\t\t\t{
  808. \t\t\t\t\t\t\t\$('#opozoriloSplosno').attr('class','alert alert-danger');
  809. \t\t\t\t\t\t\t\$('#opozoriloSplosno').text('Brisanje LVK ni mogoče, ker imate nezaključene postavke.');
  810. \t\t\t\t\t\t\t\t\t\t\t\t\t\t
  811. \t\t\t\t\t\t}
  812. \t\t\t\t\t\t\$('#opozoriloSplosno').show(); 
  813. \t\t\t\t\t\t\$(\"html, body\").animate({ scrollTop: 0 }, \"slow\");
  814.                     },
  815.                     error: function (xhr, ajaxOptions, thrownError)
  816.                     {
  817. \t\t\t\t\t\tconsole.log(thrownError);
  818.                     }
  819.                 });
  820.                 location.href = '/menus';
  821.                 //END ajax call za shrani vsebino
  822.             });
  823.             //END gumb shrani vsebino CLICK 
  824.         });
  825.     </script>
  826. {% endblock %}
  827. {% block breadcrumbs %}
  828.     <li class=\"breadcrumb-item\">Domov</li>
  829.     <!--<li class=\"breadcrumb-item\"><a href=\"#\">Šifranti</a></li>-->
  830.     <li class=\"breadcrumb-item active\">Vsebina</li>
  831.     <li style=\"float: right;\">prijavljen: {{ app.user.name }}</li>
  832.     
  833.     <!-- Breadcrumb Menu-->
  834.     <li class=\"breadcrumb-menu d-md-down-none\">
  835.         <div class=\"btn-group\" role=\"group\" aria-label=\"Button group with nested dropdown\"></div>
  836.     </li>
  837. {% endblock %}
  838. {% block content %}
  839. <div class=\"card\">
  840. \t\t<div class=\"card-header\">
  841. \t\t\t<i class=\"fa fa-edit\"></i>               
  842. \t\t\t<strong>Urejanje menuja</strong>
  843. \t\t\t<span id=\"shranjujem\" style=\"padding-left: 20px;color: #20a8d8;display:none;\">... shranjujem ... </span>
  844.             <div class=\"card-actions\">                
  845.                 
  846.             </div>
  847. \t\t</div>
  848. \t\t<div class=\"card-body\">
  849.             <div id=\"opozoriloSplosno\" class=\"alert alert-danger\" role=\"alert\" style=\"display:none;\">
  850.                 -
  851.             </div>
  852.             
  853.             <ul class=\"nav nav-tabs\" role=\"tablist\">
  854.                 <li class=\"nav-item\">
  855.                      <a class=\"nav-link active\" data-toggle=\"tab\" href=\"#vsebina\" role=\"tab\" aria-controls=\"home\"><i class=\"icon-book-open\"></i> Vsebina</a>
  856.                 </li>
  857.                 <li class=\"nav-item\">
  858.                     <a class=\"nav-link\" data-toggle=\"tab\" href=\"#dodatnefotografije\" role=\"tab\" aria-controls=\"profile\"><i class=\"icon-picture\"></i> Dodatne fotografije</a>
  859.                 </li>
  860.                 <li class=\"nav-item\">
  861.                     <a class=\"nav-link\" data-toggle=\"tab\" href=\"#dodatnedatoteke\" role=\"tab\" aria-controls=\"messages\"><i class=\"icon-paper-clip\"></i> Dodatne datoteke</a>
  862.                 </li>
  863.             </ul>
  864.             <div class=\"tab-content\">
  865.                                 <div class=\"tab-pane active\" id=\"vsebina\" role=\"tabpanel\">
  866.                                     <form id=\"vsebinaForma\" enctype=\"multipart/form-data\">
  867.                                         <div class=\"form-group\">
  868.                                             <label for=\"naslov\">Naziv menija</label>
  869.                                             <input type=\"text\" class=\"form-control\" id=\"menu_title\" placeholder=\"Vnesite naziv menija\" name=\"menu_title\">
  870.                                         </div>
  871.                                         
  872.                                         <div class=\"form-group\">
  873.                                             <label for=\"besedilo\">Besedilo menija</label>
  874.                                             
  875.                                             <textarea id=\"menu_content\" name=\"menu_content\">
  876.                                                 
  877.                                             </textarea>
  878.                                         </div>                                
  879.                                         <div class=\"form-group\">
  880.                                             <div class=\"file-loading\">
  881.                                                 <label for=\"datotekaInput\">Slika menija</label>
  882.                                                 <input id=\"datotekaInput\" type=\"file\" class=\"file\" data-overwrite-initial=\"false\" name=\"datotekaInput\" multiple=\"true\"  data-fileuploader-files=''>
  883.                                             </div>
  884.                                         </div>
  885.                                         <hr>
  886.                                         <div class=\"form-group\">
  887.                                             <label for=\"vidna\">Ali naj bo meni viden?</label><br>
  888.                                             <label class=\"switch switch-text switch-pill switch-primary\">
  889.                                                 <input type=\"checkbox\" class=\"switch-input\" checked=\"\" name=\"menu_visible\" id=\"menu_visible\">
  890.                                                 <span class=\"switch-label\" data-on=\"DA\" data-off=\"NE\"></span>
  891.                                                 <span class=\"switch-handle\"></span>
  892.                                             </label>
  893.                                         </div>
  894.                                         <div class=\"form-group\">
  895.                                             <label for=\"vidna_menu\">Ali naj bo gradnik viden v menuju?</label><br>
  896.                                             <label class=\"switch switch-text switch-pill switch-primary\">
  897.                                                 <input type=\"checkbox\" class=\"switch-input\" checked=\"\" name=\"menu_top\" id=\"menu_top\">
  898.                                                 <span class=\"switch-label\" data-on=\"DA\" data-off=\"NE\"></span>
  899.                                                 <span class=\"switch-handle\"></span>
  900.                                             </label>
  901.                                         </div>
  902.                                         <div class=\"form-group\">
  903.                                             <label for=\"vidna_footer\">Ali naj bo gradnik vidna v nogi?</label><br>
  904.                                             <label class=\"switch switch-text switch-pill switch-primary\">
  905.                                                 <input type=\"checkbox\" class=\"switch-input\" checked=\"\" name=\"menu_footer\" id=\"menu_footer\">
  906.                                                 <span class=\"switch-label\" data-on=\"DA\" data-off=\"NE\"></span>
  907.                                                 <span class=\"switch-handle\"></span>
  908.                                             </label>
  909.                                         </div>
  910.                                     </form>
  911.                                 </div>
  912.                                 <div class=\"tab-pane\" id=\"dodatnefotografije\" role=\"tabpanel\">
  913.                                     <form id=\"fotografijeForma\" enctype=\"multipart/form-data\">
  914.                                         <div class=\"form-group\">
  915.                                             <div class=\"file-loading\">
  916.                                                 <label for=\"datotekaMultipleInput\">Dodatne fotografije</label>
  917.                                                 <input class=\"gallery_media\" id=\"datotekaMultipleInput\" type=\"file\" class=\"file\" name=\"datotekaMultipleInput[]\" multiple=\"true\" >
  918.                                             </div>
  919.                                         </div>
  920.                                     </form>
  921.                                 </div>
  922.                                 <div class=\"tab-pane\" id=\"dodatnedatoteke\" role=\"tabpanel\">
  923.                                     <form id=\"datotekeForma\" enctype=\"multipart/form-data\">
  924.                                         <div class=\"form-group\">
  925.                                             <div class=\"file-loading\">
  926.                                                 <label for=\"datotekaAdditionalInput\">Dodatne datoteke</label>
  927.                                                 <input id=\"datotekaAdditionalInput\" type=\"file\" class=\"file\" data-overwrite-initial=\"false\" name=\"datotekaAdditionalInput[]\" multiple=\"true\">
  928.                                             </div>
  929.                                         </div>                                
  930.                                     </form>
  931.                                 </div>  
  932.                             </div>
  933.         </div>
  934.         <div class=\"card-footer\">
  935.             <button type=\"button\" class=\"btn btn-primary\" id=\"shranimenu\">Shrani menu</button>
  936.             <button type=\"button\" class=\"btn btn-secondary\" id=\"zapriOkno\">Prekliči</button>
  937.         </div>
  938. \t</div><!--card-->
  939.     {% endblock %}
  940. ""uredi_menu/index.html.twig""/var/www/nota/templates/uredi_menu/index.html.twig");
  941.     }
  942. }