{% extends 'VGMWOBundle::layout.html.twig' %}
{% block jumbotron_content %}
    <div class="jumbotron" style="padding-top: 10px; padding-bottom: 5px;"  id="jumbotron">
        <div class="container-fluid">
            <div class="col-md-12 text-center" style="padding-left: 0px;">
                <H3 style="margin: 0px;"><strong>Create payment schedules</strong></H3>
            </div>
        </div>
    </div>
{% endblock %}
{% block content %}
    <div class="container" style="min-height: 500px;">
        <div class="col-md-12 text-right">
            <div class="col-ms-2 pull-right">
                <a href="{{ path('NPaySchedules') }}">
                    <span class="glyphicon glyphicon-list"></span>
                    Main list
                </a>
            </div>
        </div>
        {% form_theme form _self %}
        <form action="{{ path('NPaySchedules_create') }}" method="post" {{ form_enctype(form) }} role="form">
            <div class="form-group container-fluid">
                <div class="row">
                    <div>
                        <!-- Name input -->
                        <div>
                            <label style="margin-bottom: 0px;">Name: </label>
                            {{ form_errors(form.name) }}
                            {{ form_widget(form.name, { 'attr': {
                            'id': 'name_imput',
                            'accesskey' : 'n',
                            'tabindex' : 1,
                            'class': 'form-control for-desktop',
                            'type': 'text',
                            'placeholder': 'Schedule Name'} }) }}
                        </div>
                    </div>
                    <div>
                        <!-- Name input -->
                        <div>
                            <label style="margin-bottom: 0px; margin-top: 10px;">Description: </label>
                            {{ form_errors(form.description) }}
                            {{ form_widget(form.description, { 'attr': {
                            'id': 'name_imput',
                            'accesskey' : 'n',
                            'tabindex' : 1,
                            'class': 'form-control for-desktop',
                            'type': 'text',
                            'placeholder': 'Description'} }) }}
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-lg-12 container-fluid text-right">
                <button class="btn btn-primary" type="submit">Create</button>
                <a class="btn btn-warning" href="{{ path('NPaySchedules') }}">Cancel</a>
            </div>

            {{ form_rest(form) }}
        </form>
    </div>
{% endblock %}
{% block javascripts %}
    {{ parent() }}
    <script type="text/javascript">
        // Activates knockout.js
        ////ko.applyBindings(baseViewModel, document.getElementById("menu-bar"));
    </script>
{% endblock %}