{% trans_default_domain 'lcshop' %}

<div class="modal fade show" id="modal-add-credit-history">
    {{ form_start(add_credit_history_form, {'attr': { 'id' : 'addCreditHistory'}}) }}
    {% form_theme add_credit_history_form '@LcShop/backend/form/custom_bootstrap_4.html.twig' %}
    <div class="modal-dialog">

        <div class="modal-content">
            <div class="modal-header">
                <h4>{{ "action.credit.add"|trans }}</h4>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">×</span>
                </button>
            </div>
            <div class="modal-body">
                <div class="col">
                    {{ form_row(add_credit_history_form.type) }}
                </div>
                <div class="col">
                    {{ form_row(add_credit_history_form.amount) }}
                </div>

                <div class="col">
                    {{ form_row(add_credit_history_form.meanPayment) }}
                </div>
                <div class="col">
                    {{ form_row(add_credit_history_form.paidAt) }}
                </div>
                <div class="col">
                    {{ form_row(add_credit_history_form.reference) }}
                </div>
                <div class="col">
                    {{ form_row(add_credit_history_form.comment) }}
                </div>
            </div>
            <div class="modal-footer justify-content-between">
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                {{ form_row(add_credit_history_form.add, {"attr": {'class' : 'btn btn-primary'}}) }}
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
    {{ form_end(add_credit_history_form) }}
</div>
