{% extends "PackagistWebBundle::layout.html.twig" %}

{% block scripts %}
    <script src="{{ asset('bundles/packagistweb/js/submitPackage.js')}}"></script>
{% endblock %}

{% set showSearchDesc = 'hide' %}

{% block content %}
<h2 class="title">{{ 'submit.title'|trans }}</h2>

<section class="row">
    {{ form_start(form, { attr: { class: 'col-md-6', 'data-check-url': path('submit.fetch_info'), id: 'submit-package-form' } }) }}
        {{ form_widget(form) }}

        {{ form_rest(form) }}

        <input class="btn btn-block btn-success btn-lg" id="submit" type="submit" value="{{ 'submit.submit'|trans }}" />
    {{ form_end(form) }}

    <div class="col-md-6">
        {{ 'submit.guide'|trans({ '%path_about%': path('about') })|raw }}
    </div>
</section>
{% endblock %}
