<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;

/* @App/help/helpincidencias/edit.html.twig */
class __TwigTemplate_e1d379c9a7b7943d1b2fb4510b90bab4bec7d87e57d30d5e9bb60c75818ce4e7 extends \Twig\Template
{
    public function __construct(Environment $env)
    {
        parent::__construct($env);

        // line 1
        $this->parent = $this->loadTemplate("@App/Layouts/layout.html.twig", "@App/help/helpincidencias/edit.html.twig", 1);
        $this->blocks = [
            'content' => [$this, 'block_content'],
            'javascripts' => [$this, 'block_javascripts'],
        ];
    }

    protected function doGetParent(array $context)
    {
        return "@App/Layouts/layout.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@App/help/helpincidencias/edit.html.twig"));

        $this->parent->display($context, array_merge($this->blocks, $blocks));
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

    }

    // line 2
    public function block_content($context, array $blocks = [])
    {
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));

        // line 3
        echo "
    <div class=\"container\">
        <h1>Helpincidencia edit</h1>

        ";
        // line 7
        echo         $this->env->getExtension('Symfony\Bridge\Twig\Extension\FormExtension')->renderer->renderBlock((isset($context["edit_form"]) ? $context["edit_form"] : $this->getContext($context, "edit_form")), 'form_start');
        echo "
        ";
        // line 8
        echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\FormExtension')->renderer->searchAndRenderBlock((isset($context["edit_form"]) ? $context["edit_form"] : $this->getContext($context, "edit_form")), 'widget');
        echo "
        <label>Asociar aplicacion</label>
        <select id=\"option_application\">
            <option></option>
        </select>
        <input type=\"submit\" value=\"Edit\"/>
        ";
        // line 14
        echo         $this->env->getExtension('Symfony\Bridge\Twig\Extension\FormExtension')->renderer->renderBlock((isset($context["edit_form"]) ? $context["edit_form"] : $this->getContext($context, "edit_form")), 'form_end');
        echo "

        <ul>
            <li>
                <a href=\"";
        // line 18
        echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getPath("helpincidencias_index");
        echo "\">Back to the list</a>
            </li>
            <li>
                ";
        // line 21
        echo         $this->env->getExtension('Symfony\Bridge\Twig\Extension\FormExtension')->renderer->renderBlock((isset($context["delete_form"]) ? $context["delete_form"] : $this->getContext($context, "delete_form")), 'form_start');
        echo "
                <input type=\"submit\" value=\"Delete\">
                ";
        // line 23
        echo         $this->env->getExtension('Symfony\Bridge\Twig\Extension\FormExtension')->renderer->renderBlock((isset($context["delete_form"]) ? $context["delete_form"] : $this->getContext($context, "delete_form")), 'form_end');
        echo "
            </li>
        </ul>
    </div>
";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

    }

    // line 29
    public function block_javascripts($context, array $blocks = [])
    {
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));

        // line 30
        echo "    ";
        $this->displayParentBlock("javascripts", $context, $blocks);
        echo "
    <script type=\"text/javascript\">
        \$(function () {
            \$(\"label[for='appbundle_helpincidencias_idAplicacion']\").attr(\"style\", \"display: none\");
            \$('#appbundle_helpincidencias_idAplicacion').attr(\"style\", \"display: none\");
        });

        \$.ajax(
            {

                dataType: 'json',
                success: function (response) {

                    var \$select = \$('#option_application');
                    \$.each(response, function (key, value) {
                        \$select.append('<option value=' + value.id_aplicacion + '>' + value.name + '</option>');
                    })
                }
            });

        \$(document).ready(function () {
            \$('#option_application').click(function () {
                \$('#appbundle_helpincidencias_idAplicacion').val(\$(this).val());
            })
        })


    </script>
";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

    }

    public function getTemplateName()
    {
        return "@App/help/helpincidencias/edit.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  107 => 30,  101 => 29,  89 => 23,  84 => 21,  78 => 18,  71 => 14,  62 => 8,  58 => 7,  52 => 3,  46 => 2,  22 => 1,);
    }

    /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
    public function getSource()
    {
        @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);

        return $this->getSourceContext()->getCode();
    }

    public function getSourceContext()
    {
        return new Source("{% extends \"@App/Layouts/layout.html.twig\" %}
{% block content %}

    <div class=\"container\">
        <h1>Helpincidencia edit</h1>

        {{ form_start(edit_form) }}
        {{ form_widget(edit_form) }}
        <label>Asociar aplicacion</label>
        <select id=\"option_application\">
            <option></option>
        </select>
        <input type=\"submit\" value=\"Edit\"/>
        {{ form_end(edit_form) }}

        <ul>
            <li>
                <a href=\"{{ path('helpincidencias_index') }}\">Back to the list</a>
            </li>
            <li>
                {{ form_start(delete_form) }}
                <input type=\"submit\" value=\"Delete\">
                {{ form_end(delete_form) }}
            </li>
        </ul>
    </div>
{% endblock %}

{% block javascripts %}
    {{ parent() }}
    <script type=\"text/javascript\">
        \$(function () {
            \$(\"label[for='appbundle_helpincidencias_idAplicacion']\").attr(\"style\", \"display: none\");
            \$('#appbundle_helpincidencias_idAplicacion').attr(\"style\", \"display: none\");
        });

        \$.ajax(
            {

                dataType: 'json',
                success: function (response) {

                    var \$select = \$('#option_application');
                    \$.each(response, function (key, value) {
                        \$select.append('<option value=' + value.id_aplicacion + '>' + value.name + '</option>');
                    })
                }
            });

        \$(document).ready(function () {
            \$('#option_application').click(function () {
                \$('#appbundle_helpincidencias_idAplicacion').val(\$(this).val());
            })
        })


    </script>
{% endblock %}
", "@App/help/helpincidencias/edit.html.twig", "/home/colmoda/public_html/CMDA/src/AppBundle/Resources/views/help/helpincidencias/edit.html.twig");
    }
}
