templates/MDS/GreenPatioBundle/reservations/services-proforma-reservation.html.twig line 1

Open in your IDE?
  1. {% extends 'MDS/GreenPatioBundle/base-events.html.twig' %}
  2.     {% block pagetitleinterno %}
  3.         <div class="page-title">
  4.             <h4><i class="icon-calendar3 position-left"></i> <span class="text-semibold">{% trans %}Events{% endtrans %}</span></h4>
  5.         </div>
  6.     {% endblock %}
  7.     {% block breadcrumbs %}
  8.         <ul class="breadcrumb">
  9.             <li><a href="/"><i class="icon-home2 position-left"></i>{% trans %}Home{% endtrans %}</a></li>
  10.         </ul>
  11.     {% endblock %}
  12.     {% block contentProposal %}
  13.         {% for flashMessage in app.session.flashbag.get('mensajeproposaldestinationservices') %}
  14.             <div class="hidden alertFlashMensaje" data-mensaje="{{ flashMessage }}"></div>
  15.         {% endfor %}
  16.         {% for flashMessage in app.session.flashbag.get('mensajeproposaldestinationserviceserror') %}
  17.             <div class="hidden alertFlashMensajeError" data-mensajeerror="{{ flashMessage }}"></div>
  18.         {% endfor %}
  19.         <div class="proposals" id="proposal-add">
  20.             {#<div class="container">#}
  21.                 <div class="row">
  22.                     {#<input type="hidden" value="{{ idLounges }}" id="idLounges" name="idLounges">#}
  23.                     <input type="hidden" value="{{ loungesBoolToInvoice }}" id="loungesBoolToInvoice" name="loungesBoolToInvoice">
  24.                     <div class="col-xs-12">
  25.                         <div class="panel">
  26.                             <div class="panel-heading bg-teal-300" style="height: 60px">
  27.                                 <div class="col-sm-10">
  28.                                     <h5 class="panel-title">{% trans %}Add Payments{% endtrans %}</h5>
  29.                                 </div>
  30.                                 {#<a target="_self" class="btn bg-green-800 btn-block icon-file-empty padding-3" href="/reservations-greenpatio/editsimple/{{ id }}"></a>#}
  31.                                 <div class="col-sm-2">
  32.                                     <a target="_self" class="btn bg-green-800 btn-block padding-3" href="/reservations-greenpatio/editsimple/{{ id }}">Volver a la reserva</a>
  33.                                 </div>
  34.                             </div>
  35.                             <div class="panel-body">
  36.                                 <div class="col-xs-12">
  37.                                     {{ form_start(form, { 'attr' : {'class': 'form-horizontal', 'novalidate': 'novalidate', 'role' : 'form', 'autocomplete': 'off'} }) }}
  38.                                     {{ form_widget(form.reservationId, { 'attr' : {'class' : 'form-control hidden' } }) }}
  39.                                     {#<input type="hidden" value="{{ id }}" id="reservationId" name="reservationId">#}
  40.                                     <div class="col-md-3">
  41.                                         <div class="form-group form-group-material {% if form_errors(form.amount)|length > 0 %}has-error{% endif %}">
  42.                                             <label class="control-label is-visible">
  43.                                                 {{ form_label(form.amount, 'Amount', {'label_attr': {'class': 'control-label is-visible'}}) }}
  44.                                             </label>
  45.                                             <div class="input-group col-lg-11 col-xs-11">
  46.                                                 {{ form_widget(form.amount, {'attr': { 'class': 'form-control', 'placeholder' : '0.00'}}) }}
  47.                                             </div>
  48.                                             <span class="help-block">{{ form_errors(form.amount) }}</span>
  49.                                         </div>
  50.                                     </div>
  51.                                     <div class="col-md-3" >
  52.                                         <div class="form-group form-group-material {% if form_errors(form.datePayAt)|length > 0 %}has-error{% endif %}">
  53.                                             <label class="control-label is-visible">
  54.                                                 {{ form_label(form.datePayAt, 'Date payment', {'label_attr': {'class': 'control-label is-visible'}}) }}
  55.                                             </label>
  56.                                             <div class="input-group col-lg-11 col-xs-11">
  57.                                                 {{ form_widget(form.datePayAt, {'attr': { 'class': 'form-control', 'placeholder' : '0.00'}}) }}
  58.                                             </div>
  59.                                             <span class="help-block">{{ form_errors(form.datePayAt) }}</span>
  60.                                         </div>
  61.                                     </div>
  62.                                     <div class="col-md-4" >
  63.                                         <div class="form-group form-group-material {% if form_errors(form.wayToPay)|length > 0 %}has-error{% endif %}">
  64.                                             <label class="control-label is-visible">
  65.                                                 {{ form_label(form.wayToPay, 'Way To Pay', {'label_attr': {'class': 'control-label is-visible'}}) }}
  66.                                             </label>
  67.                                             <div class="input-group col-lg-11 col-xs-11">
  68.                                                 {{ form_widget(form.wayToPay, {'attr': { 'class': 'form-control'}}) }}
  69.                                             </div>
  70.                                             <span class="help-block">{{ form_errors(form.wayToPay) }}</span>
  71.                                         </div>
  72.                                     </div>
  73.                                     <div class="col-md-2" style="padding-top: 32px; padding-left: 15px;padding-right: 15px">
  74.                                         <div class="form-group form-group-material">
  75.                                             <div class="input-group teal">
  76.                                                 <span class="input-group-addon bg-teal-800"><i class="icon-floppy-disk"></i></span>
  77.                                                 {{ form_widget(form.save, {'label' : 'Save', 'attr': {'class': 'btn bg-teal-600 btn-block'}}) }}
  78.                                             </div>
  79.                                         </div>
  80.                                     </div>
  81.                                     {{ form_end(form) }}
  82.                                 </div>
  83.                                 {% if payments is not empty %}
  84.                                     <div class="col-xs-12">
  85.                                         <hr>
  86.                                     </div>
  87.                                     <div class="col-xs-12">
  88.                                         <div class="col-sm-3">
  89.                                             {% trans %}Amount{% endtrans %}:
  90.                                         </div>
  91.                                         <div class="col-sm-3">
  92.                                             {% trans %}Date payment{% endtrans %}:
  93.                                         </div>
  94.                                         <div class="col-sm-5">
  95.                                             {% trans %}Way to Pay{% endtrans %}:
  96.                                         </div>
  97.                                         <div class="col-sm-1 text-center">
  98.                                             {% trans %}Deleted{% endtrans %}:
  99.                                         </div>
  100.                                     </div>
  101.                                     <div class="col-xs-12 margen-10">
  102.                                         {% for pay in payments %}
  103.                                             <div class="col-sm-3 margen-5">
  104.                                                 {{ pay.amount|number_format(2, '.', ',') }}
  105.                                             </div>
  106.                                             <div class="col-sm-3 margen-5">
  107.                                                 {{ pay.datePayAt|date('d/m/Y') }}
  108.                                             </div>
  109.                                             <div class="col-sm-5 margen-5">
  110.                                                 {{ pay.waytopay }}
  111.                                             </div>
  112.                                             <div class="col-sm-1 margen-5">
  113.                                                 <a target="_self" class="btn bg-danger-300 btn-block icon-trash padding-3" href="/reservations-greenpatio/payment/delete/{{ pay.id }}"></a>
  114.                                             </div>
  115.                                         {% endfor %}
  116.                                     </div>
  117.                                 {% endif %}
  118.                             </div>
  119.                         </div>
  120.                         <div class="panel">
  121.                             <div class="panel-heading bg-teal-300" style="height: 60px">
  122.                                 <div class="col-sm-10">
  123.                                     <h5 class="panel-title">{% trans %}Agregar Proforma de deposito{% endtrans %}</h5>
  124.                                 </div>
  125.                                 <div class="col-sm-2">
  126.                                     <a target="_self" class="btn bg-green-800 btn-block padding-3" href="/reservations-greenpatio/editsimple/{{ id }}">Volver a la reserva</a>
  127.                                 </div>
  128.                             </div>
  129.                             <div class="panel-body">
  130.                                 <div class="col-xs-12" style="margin-left: 10px">
  131.                                     {#href="/reservations-greenpatio/editsimple/#}
  132.                                     <form name="AddDepositInvoice" method="post" action="/reservations-greenpatio/reservations/newinvoicedeposit/proforma/{{ id }}" class="form-horizontal" autocomplete="off">
  133.                                         <div class="col-md-5">
  134.                                             <div class="form-group form-group-material">
  135.                                                 <input type="text" id="invoice_deposit_name" name="invoicedep[name]" class="form-control input-sombra input-lg" placeholder="Concepto">
  136.                                             </div>
  137.                                         </div>
  138.                                         {#<div class="col-md-3 margen-5">#}
  139.                                             {#<div class="form-group form-group-material">#}
  140.                                                 {#<input type="text" id="invoice_deposit_datePayAt" name="invoicedep[datePayAt]" class="form-control input-sombra input-lg" placeholder="Fecha">#}
  141.                                             {#</div>#}
  142.                                         {#</div>#}
  143.                                         <div class="col-md-2" style="margin-left: 20px">
  144.                                             <div class="form-group form-group-material">
  145.                                                 <input type="text" id="invoice_deposit_amount" name="invoicedep[amount]" class="form-control input-sombra input-lg" placeholder="{% trans %}Amount{% endtrans %}">
  146.                                             </div>
  147.                                         </div>
  148.                                         <div class="col-md-1" style="margin-left: 20px">
  149.                                             <div class="form-group form-group-material">
  150.                                                 <input type="text" id="invoice_deposit_iva" name="invoicedep[iva]" class="form-control input-sombra input-lg" placeholder="{% trans %}Iva{% endtrans %}(%)">
  151.                                             </div>
  152.                                         </div>
  153.                                         <div class="col-md-3" style="margin-left: 20px">
  154.                                             <div class="form-group form-group-material">
  155.                                                 <button type="submit" id="invoice_deposit_sumit" name="invoicedep[send]" class="btn bg-orange-300 btn-block btn-lg">{% trans %}Generar Proforma de deposito{% endtrans %}</button>
  156.                                             </div>
  157.                                         </div>
  158.                                     </form>
  159.                                 </div>
  160.                                 {% if allInvoiceDeposit is not empty %}
  161.                                     <div class="col-xs-12">
  162.                                         <hr>
  163.                                     </div>
  164.                                     <div class="col-xs-12">
  165.                                         <div class="col-sm-7">
  166.                                             {% trans %}Concepto{% endtrans %}:
  167.                                         </div>
  168.                                         {#<div class="col-sm-3">#}
  169.                                             {#{% trans %}Date{% endtrans %}:#}
  170.                                         {#</div>#}
  171.                                         <div class="col-sm-3">
  172.                                             {% trans %}Amount{% endtrans %}:
  173.                                         </div>
  174.                                         <div class="col-sm-1">
  175.                                             {% trans %}IVA{% endtrans %}:
  176.                                         </div>
  177.                                         <div class="col-sm-1 text-center">
  178.                                             {% trans %}Action{% endtrans %}:
  179.                                         </div>
  180.                                     </div>
  181.                                     <div class="col-xs-12 margen-10">
  182.                                         {% for pay in allInvoiceDeposit %}
  183.                                             <div class="col-sm-7 margen-5">
  184.                                                 {{ pay.name }}
  185.                                             </div>
  186.                                             {#<div class="col-sm-3 margen-5">#}
  187.                                                 {#{{ pay.dateAt|date('d/m/Y') }}#}
  188.                                             {#</div>#}
  189.                                             <div class="col-sm-3 margen-5">
  190.                                                 {{ pay.amount|number_format(2, '.', ',') }}
  191.                                             </div>
  192.                                             <div class="col-sm-1 margen-5">
  193.                                                 {{ pay.iva }} %
  194.                                             </div>
  195.                                             <div class="col-sm-1 margen-5">
  196.                                                 <a target="_self" class="btn bg-success-600 btn-block padding-3" href="/reservations-greenpatio/reservations/newinvoicedeposit/viewproforma/{{ pay.itemId }}">Ir</a>
  197.                                             </div>
  198.                                         {% endfor %}
  199.                                     </div>
  200.                                 {% endif %}
  201.                             </div>
  202.                         </div>
  203.                     </div>
  204.     {% endblock %}
  205.     {% block javascripts %}
  206.         {{ parent() }}
  207.         <script type="text/javascript" src="{{ asset('assets/js/plugins/editors/summernote/summernote.min.js') }}"></script>
  208.         <script type="text/javascript" src="{{ asset('assets/js/plugins/forms/styling/switchery.min.js') }}"></script>
  209.         <script type="text/javascript" src="{{ asset('assets/js/pages/proposal/switchery-proposal.js') }}"></script>
  210.         <script type="text/javascript" src="{{ asset('assets/js/plugins/forms/selects/select2.min.js') }}"></script>
  211.         <script type="text/javascript" src="{{ asset('assets/js/pages/components_popups.js') }}"></script>
  212.         <script type="text/javascript" src="{{ asset('assets/js/plugins/notifications/sweet_alert.min.js') }}"></script>
  213.         <script type="text/javascript" src="{{ asset('assets/js/pages/greenpatio/proforma-invoice-reservation.js') }}"></script>
  214.     {% endblock %}