{% 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 clients</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('vgm_client') }}">
                    <span class="glyphicon glyphicon-list"></span>
                    Main list
                </a>
            </div>
        </div>
        {% form_theme form _self %}
        <form action="{{ path('vgm_client_create') }}" method="post" {{ form_enctype(form) }} role="form">
            <div class="form-group container-fluid">
                <div class="row">
                    <div class="col-xs-12 col-sm-6">
                        <label style="margin-bottom: 0px;">{{ form_label(form.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': 'Client Name'} }) }}
                    </div>
                    <div class="col-xs-12 col-sm-6">
                        <label style="margin-bottom: 0px;">{{ form_label(form.email) }}: </label>
                        {{ form_errors(form.email) }}
                        {{ form_widget(form.email, { 'attr': {
                        'accesskey' : 'e',
                        'tabindex' : 2,
                        'class': 'form-control for-desktop',
                        'type': 'email',
                        'placeholder': 'e-mail'} }) }}
                    </div>
                    <div class="col-xs-12 col-sm-6">
                        <label style="margin-bottom: 0px; margin-top: 10px;">{{ form_label(form.bill_info) }}: </label>
                        {{ form_errors(form.bill_info) }}
                        {{ form_widget(form.bill_info, { 'attr': {
                        'accesskey' : 'b',
                        'tabindex' : 3,
                        'class': 'form-control',
                        'placeholder': 'Bill To Info'} }) }}
                    </div>
                    <div class="col-xs-12 col-sm-6">
                        <label style="margin-bottom: 0px; margin-top: 10px;">{{ form_label(form.ship_info) }}: </label>
                        {{ form_errors(form.ship_info) }}
                        {{ form_widget(form.ship_info, { 'attr': {
                        'accesskey' : 's',
                        'tabindex' : 4,
                        'class': 'form-control',
                        'placeholder': 'Ship To Info'} }) }}
                    </div>
                    <div class="col-xs-12 col-sm-6">
                        <label style="margin-bottom: 0px; margin-top: 10px;">{{ form_label(form.phone1) }}: </label>
                        {{ form_errors(form.phone1) }}
                        {{ form_widget(form.phone1, { 'attr': {
                        'accesskey' : 'p',
                        'tabindex' : 5,
                        'class': 'form-control for-desktop',
                        'type': 'text',
                        'placeholder': 'Main Phone Number'} }) }}
                    </div>
                    <div class="col-xs-12 col-sm-6">
                        <label style="margin-bottom: 0px; margin-top: 10px;">{{ form_label(form.phone2) }}: </label>
                        {{ form_errors(form.phone2) }}
                        {{ form_widget(form.phone2, { 'attr': {
                        'accesskey' : 'n',
                        'tabindex' : 6,
                        'class': 'form-control for-desktop',
                        'placeholder': 'Aux Phone Number'} }) }}
                    </div>
                    <div class="col-xs-12 col-sm-6">
                        <label style="margin-bottom: 0px; margin-top: 10px;">{{ form_label(form.adrees) }}: </label>
                        {{ form_errors(form.adrees) }}
                        {{ form_widget(form.adrees, { 'attr': {
                        'accesskey' : 'a',
                        'tabindex' : 7,
                        'class': 'form-control for-desktop',
                        'placeholder': 'Street'} }) }}
                    </div>
                    <div class="col-xs-12 col-sm-6">
                        <label style="margin-bottom: 0px; margin-top: 10px;">{{ form_label(form.city) }}: </label>
                        {{ form_errors(form.city) }}
                        {{ form_widget(form.city, { 'attr': {
                        'accesskey' : 't',
                        'tabindex' : 8,
                        'class': 'form-control for-desktop',
                        'placeholder': 'City'} }) }}
                    </div>
                    <div class="col-xs-12 col-sm-6"><label style="margin-bottom: 0px; margin-top: 10px;">{{ form_label(form.state) }}: </label>
                        {{ form_errors(form.state) }}
                        {{ form_widget(form.state, { 'attr': {
                        'accesskey' : 's',
                        'tabindex' : 9,
                        'class': 'form-control for-desktop',
                        'placeholder': 'State'} }) }}
                    </div>
                    <div class="col-xs-12 col-sm-6">
                        <label style="margin-bottom: 0px; margin-top: 10px;">{{ form_label(form.zip_code) }}: </label>
                        {{ form_errors(form.zip_code) }}
                        {{ form_widget(form.zip_code, { 'attr': {
                        'accesskey' : 'z',
                        'tabindex' : 10,
                        'class': 'form-control for-desktop',
                        'placeholder': 'Zip Code'} }) }}
                    </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('vgm_client') }}">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 %}