templates/MDS/EventsBundle/destination/add-destination-proposal.html.twig line 1

Open in your IDE?
  1. {% extends 'MDS/EventsBundle/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> - {% trans %}Proposal{% endtrans %}</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.             <li><a href="/events/proposal/list"><i class="icon-calendar3 position-left"></i>{% trans %}Proposal List{% endtrans %}</a></li>
  11.             <li><a href="/events/proposal/edit/{{ id }}"><i class="icon-calendar3 position-left"></i>{% trans %}Proposal{% endtrans %}</a></li>
  12.             <li class="active"><i class="icon-file-text2 position-left"></i>{% trans %}Destination Proposal{% endtrans %}</li>
  13.         </ul>
  14.     {% endblock %}
  15.     {% block contentProposal %}
  16.         {% for flashMessage in app.session.flashbag.get('mensajeproposaldestination') %}
  17.             <div class="hidden alertFlashMensaje" data-mensaje="{{ flashMessage }}"></div>
  18.         {% endfor %}
  19.         {% for flashMessage in app.session.flashbag.get('mensajeproposaldestinationerror') %}
  20.             <div class="hidden alertFlashMensajeError" data-mensajeerror="{{ flashMessage }}"></div>
  21.         {% endfor %}
  22.         <div class="row proposals" id="">
  23.             <div class="row">
  24.                 {% if destinations is not empty %}
  25.                     {% for key, destination in destinations %}
  26.                         {% if  destination.disabledPresentation == '0' %}
  27.                             {% set boton_disable_presentation = "<i class='icon-display text-success-800'></i>" %}
  28.                             {% set mensaje_disable_presentation = "Disabled Destination presentation"|trans  %}
  29.                         {% else %}
  30.                             {% set boton_disable_presentation = "<i class='icon-display text-danger-800'></i>" %}
  31.                             {% set mensaje_disable_presentation = "Activated Destination resentation"|trans  %}
  32.                         {% endif %}
  33.                         {% if  destination.disabled == '0' %}
  34.                             {% set boton_disable = "<i class='icon-switch text-success-800'></i>" %}
  35.                             {% set mensaje_disable = "Disabled Destination"|trans  %}
  36.                         {% else %}
  37.                             {% set boton_disable = "<i class='icon-switch text-danger-800'></i>" %}
  38.                             {% set mensaje_disable = "Activated Destination"|trans  %}
  39.                         {% endif %}
  40.                         {% set boton_play = "<i class='icon-play3 text-success-800'></i>" %}
  41.                     <div class="col-sm-4">
  42.                         <div class="panel">
  43.                             <div class="panel-heading bg-green">
  44.                                 <h5 class="panel-title text-center"><b>{{ destination.title }}</b></h5>
  45.                                 <div class="heading-elements">
  46.                                     <ul class="icons-list">
  47.                                         <li>
  48.                                             <a class="sweet_warning text-white" href="/events/proposal/destination/deleted/{{ destination.idcontrol }}"><i class="icon-trash"></i></a>
  49.                                         </li>
  50.                                     </ul>
  51.                                 </div>
  52.                             </div>
  53.                             <div class="panel-body">
  54.                                 <div class="col-sm-7 text-center">
  55.                                     <h5>
  56.                                         <i class="icon-checkmark2 position-left"></i>{% trans %}Country{% endtrans %}: <b>{{ destination.country }}</b><br>
  57.                                         <i class="icon-checkmark2 position-left"></i>{% trans %}Province{% endtrans %}: <b>{{ destination.province }}</b><br>
  58.                                         <i class="icon-checkmark2 position-left"></i>{% trans %}Population{% endtrans %}: <b>{{ destination.population }}</b>
  59.                                     </h5>
  60.                                 </div>
  61.                                 <div class="col-sm-5">
  62.                                     {% if destination.image is not null %}
  63.                                     <div class="thumbnail">
  64.                                         <div class="thumb">
  65.                                             <img class="img-responsive" src="/assets/images/destinations/gallery/{{ destination.image }}" alt="">
  66.                                         </div>
  67.                                     </div>
  68.                                     {% endif %}
  69.                                 </div>
  70.                             </div>
  71.                             <div class="panel-footer">
  72.                                 <div class="col-sm-1"></div>
  73.                                 <div class="col-sm-11 text-left" style="padding-top: 5px">
  74.                                     <a type="button" data-popup="tooltip-custom" title="{{ mensaje_disable }}" class="btn btn-default" href="/events/proposal/destination/services/add/{{ destination.idcontrol }}">{% autoescape %}{{ boton_play|raw }}{% endautoescape %}
  75.                                         <label class="text-green-800 btn" style="min-width: 200px;">{% trans %}Add Suppliers and Services{% endtrans %}</label></a>
  76.                                 </div>
  77.                                 <div class="col-sm-12"><hr/></div>
  78.                                 <div class="col-sm-1"></div>
  79.                                 <div class="col-sm-11 text-left">
  80.                                     <a type="button" data-popup="tooltip-custom" title="{{ mensaje_disable_presentation }}" class="btn btn-default" href="/events/proposal/destination/disabledpresentation/{{ destination.idcontrol }}">{% autoescape %}{{ boton_disable_presentation|raw }}{% endautoescape %}
  81.                                     <label class="text-green-800 btn" style="min-width: 200px;">{% trans %}Activate/Deactivate Presentation{% endtrans %}</label></a>
  82.                                 </div>
  83.                                 <div class="col-sm-1"></div>
  84.                                 <div class="col-sm-11 text-left" style="padding-top: 5px">
  85.                                     <a type="button" data-popup="tooltip-custom" title="{{ mensaje_disable }}" class="btn btn-default" href="/events/proposal/destination/disabled/{{ destination.idcontrol }}">{% autoescape %}{{ boton_disable|raw }}{% endautoescape %}
  86.                                     <label class="text-green-800 btn" style="min-width: 210px;">{% trans %}Activate/Deactivate Destination{% endtrans %}</label></a>
  87.                                 </div>
  88.                                 <div class="col-sm-12"><hr/></div>
  89.                                 <div class="col-sm-1"></div>
  90.                                 <form name="destination_proposal_duplicate" method="post" action="/events/proposal/duplicatedestination/{{ id }}/{{ destinations[key].idcontrol }}">
  91.                                     <div class="col-sm-10 text-left" style="padding-top: 5px">
  92.                                         {#<a type="button" type="submit" data-popup="tooltip-custom" title="{{ mensaje_disable }}" class="btn btn-default">{% autoescape %}{{ boton_play|raw }}{% endautoescape %}#}
  93.                                             {#<label class="text-green-800 btn" style="min-width: 200px;">{% trans %}Duplicar en Otro Destino{% endtrans %}</label>#}
  94.                                         {#</a>#}
  95.                                         <select class="form-control col-xs-12" name="destinationList" id="destinationList">
  96.                                             <option value="">{% trans %}Select{% endtrans %}</option>
  97.                                             {#<option value="1">1</option>#}
  98.                                             {#<option value="2">2</option>#}
  99.                                             {% for destination in destinationList %}
  100.                                                 <option value="{{ destination.id }}">{{ destination.title }}</option>
  101.                                             {% endfor %}
  102.                                         </select>
  103.                                         <div class="col-sm-10 text-left">
  104.                                             <br>
  105.                                         </div>
  106.                                         <button type="submit" name="save"  class="btn btn-success btn-block text-white font-weight-bold">{% trans %}Duplicar en Otro Destino{% endtrans %}</button>
  107.                                         <div class="col-sm-12">
  108.                                             <br>
  109.                                         </div>
  110.                                     </div>
  111.                                 </form>
  112.                                 <div class="col-sm-12"><hr/></div>
  113.                                 <div class="col-sm-1"></div>
  114.                                 <div class="col-sm-10 text-left" style="padding-top: 5px">
  115.                                     <a class="btn bg-success btn-block" href="/events/proposal/destination/editdstsuppliers/{{ destination.idcontrol }}">{% trans %}Modificar Proveedores del Destino{% endtrans %}</a>
  116.                                 </div>
  117.                                 <div class="col-sm-12">
  118.                                     <br>
  119.                                 </div>
  120.                             </div>
  121.                         </div>
  122.                     </div>
  123.                     {% endfor %}
  124.                 {% endif %}
  125.                 <div class="col-sm-12">
  126.                     {{ form_start(form, { 'attr' : {'class': 'form-horizontal', 'novalidate': 'novalidate', 'role' : 'form', 'autocomplete': 'off'}}) }}
  127.                     <div class="panel">
  128.                         {{ form_widget(form.proposalId, { 'attr' : {'class' : 'form-control hidden' } }) }}
  129.                         <div class="panel-heading border-info">
  130.                             <h6 class="panel-title">{% trans %}Add Destination Proposals{% endtrans %}<a class="heading-elements-toggle"><i class="icon-more"></i></a></h6>
  131.                         </div>
  132.                         <div class="panel-body">
  133.                             <div class="col-md-9" style="padding-left: 15px;padding-right: 15px">
  134.                                 <div class="form-group form-group-material{% if form_errors(form.destinationId)|length > 0 %} has-error{% endif %}">
  135.                                     <label class="control-label is-visible">
  136.                                         {{ form_label(form.destinationId, 'Destination Title', {'label_attr': {'class': 'control-label is-visible'}}) }}
  137.                                     </label>
  138.                                     {{ form_widget(form.destinationId, { 'attr' : {'class' : 'form-control', 'placeholder' : 'Name'} }) }}
  139.                                     <span class="help-block">{{ form_errors(form.destinationId) }}</span>
  140.                                 </div>
  141.                             </div>
  142.                             <div class="col-md-3" style="padding-top: 35px; padding-left: 15px;padding-right: 15px">
  143.                                 <div class="form-group form-group-material">
  144.                                         {{ form_widget(form.save, {'label' : 'Load Destination', 'attr': {'class': 'btn btn-info btn-block'}}) }}
  145.                                 </div>
  146.                             </div>
  147.                         </div>
  148.                     </div>
  149.                     {{ form_end(form) }}
  150.                     {#<form name="destination_proposal_add" method="post" action="/">#}
  151.                         {#<div class="col-sm-10 text-left" style="padding-top: 5px">#}
  152.                             {#<button  type="submit" name="save"  class="btn btn-success btn-block text-white font-weight-bold">{% trans %}Destino{% endtrans %}</button>#}
  153.                             {#<select class="form-control col-xs-12" name="proposalcontrol_destinationId2" id="proposalcontrol_destinationId2">#}
  154.                                 {#<option value="none">{% trans %}Select{% endtrans %}</option>#}
  155.                                 {#{% for destination in destinationList %}#}
  156.                                     {#<option value="{{ destination.id }}">{{ destination.title }}</option>#}
  157.                                 {#{% endfor %}#}
  158.                             {#</select>#}
  159.                         {#</div>#}
  160.                     {#</form>#}
  161.                 </div>
  162.                 <div class="col-sm-12">
  163.                     <div class="panel">
  164.                         <div class="panel-heading border-orange">
  165.                             <h6 class="panel-title">{% trans %}Proposals Briefing{% endtrans %}</h6>
  166.                         </div>
  167.                         <div class="panel-body">
  168.                             {% if briefing is not null and briefing is not empty%}
  169.                                 <div class="col-md-12 margen-20">
  170.                                     <table class="margen-10" style="width: 100%">
  171.                                         <tr class="bg-grey-300">
  172.                                             <td class="text-center" style="width: 10%">{% trans %}User{% endtrans %}</td>
  173.                                             <td class="text-center" style="width: 20%">{% trans %}Date{% endtrans %}</td>
  174.                                             <td class="" style="width: 70%">{% trans %}Briefing{% endtrans %}</td>
  175.                                         </tr>
  176.                                         {% set contador = 1 %}
  177.                                         {%  for element in briefing  %}
  178.                                             <tr class="margen-15" {% if contador % 2 == 0 %} style="background: #abfdd5" {% endif %}>
  179.                                                 <td class="text-center" style="width: 10%">
  180.                                                     {{ element.userName }}
  181.                                                 </td>
  182.                                                 <td class="text-center" style="width: 20%">
  183.                                                     {{ element.addedAt|date ("d/m/Y H:i:s") }}
  184.                                                 </td>
  185.                                                 <td  style="width: 20%">
  186.                                                     {% autoescape %}
  187.                                                         {{ element.briefing|raw }}
  188.                                                     {% endautoescape %}
  189.                                                 </td>
  190.                                             </tr>
  191.                                             {% set contador = contador + 1 %}
  192.                                         {% endfor %}
  193.                                     </table>
  194.                                 </div>
  195.                             {% endif %}
  196.                         </div>
  197.                     </div>
  198.                 </div>
  199.                 <div class="col-sm-12">
  200.                     <div class="panel">
  201.                         <div class="panel-heading border-orange">
  202.                             <h6 class="panel-title">{% trans %}Observation Proposals{% endtrans %}</h6>
  203.                         </div>
  204.                         <div class="panel-body">
  205.                             <div class="col-sm-12">
  206.                                 {% autoescape %}
  207.                                     {{ proposal.observation|raw }}
  208.                                 {% endautoescape %}
  209.                             </div>
  210.                         </div>
  211.                     </div>
  212.                 </div>
  213.             </div>
  214.         </div>
  215.     {% endblock %}
  216.     {% block javascripts %}
  217.         {{ parent() }}
  218.         <script type="text/javascript" src="{{ asset('assets/js/plugins/editors/summernote/summernote.min.js') }}"></script>
  219.         <script type="text/javascript" src="{{ asset('assets/js/plugins/forms/styling/switchery.min.js') }}"></script>
  220.         <script type="text/javascript" src="{{ asset('assets/js/pages/proposal/add-proposal.js') }}"></script>
  221.         <script type="text/javascript" src="{{ asset('assets/js/plugins/forms/selects/select2.min.js') }}"></script>
  222.         <script type="application/javascript">
  223.             $("select#proposalcontrol_destinationId").select2();
  224.             $("select#destinationList").select2();
  225.         </script>
  226.     {% endblock %}