{% extends 'base.html.twig' %}

{% block title %}New Application{% endblock %}

{% block body %}
    <div class="col-12"><br>
        <div class="card" style="margin-top:-100px;">          
            <div class="card-body">
                    <h3 class="card-title text-center" style="margin-top:22px; color:blue;">
                        {{ "Add a new application / service to KYVALA"|trans }}
                    </h3>
                    <h5 class="card-title text-center">
                        {{ "Fill the form below to add a new application or service"|trans }}
                    </h5>
                    <hr>
                        {{ include('application/_form.html.twig') }}

                    

                <!--a href="{{ path('app_application_index') }}">back to list</a>

                    <hr>
                <p class="text-center">
                    <a href="{{ path('app_homepage')}}">
                        Back to homepage
                    </a-->
                </p>
            </div>
        </div>
    </div>

  
{% endblock %}

{% block javascripts %}
    {{ parent() }}

    <script type="text/javascript">
        $(document).ready(function() 
        {
            $(".btnAjoutProduit").click(function()
            {
                $("#tbodyToAdd").append($("#rowAdd").html());
            });
        });
    </script>

{% endblock %}