templates/MDS/EventsBundle/proposal/list-proposal.html.twig line 1

Open in your IDE?
  1. {% extends 'MDS/EventsBundle/base-events2.html.twig' %}
  2.     {% block breadcrumbs %}
  3.         <ul class="breadcrumb">
  4.             <li><a href="/"><i class="icon-home2 position-left"></i>{% trans %}Home{% endtrans %}</a></li>
  5.             <li class="active">
  6.                 <i class="icon-calendar3 position-left"></i>
  7.                 {% trans %}Proposal List{% endtrans %}
  8.                 {% if unassigned is not empty %}
  9.                     {{ unassigned|trans }}
  10.                 {% endif %}
  11.             </li>
  12.         </ul>
  13.     {% endblock %}
  14.     {% block contentProposal %}
  15.         {% for flashMessage in app.session.flashbag.get('mensajeproposal') %}
  16.             <div class="hidden alertFlashMensaje" data-mensaje="{{ flashMessage }}"></div>
  17.         {% endfor %}
  18.         {% for flashMessage in app.session.flashbag.get('mensajeproposalerror') %}
  19.             <div class="hidden alertFlashMensajeError" data-mensajeerror="{{ flashMessage }}"></div>
  20.         {% endfor %}
  21.         <div class="row proposals" id="proposal-list">
  22.             <div class="row">
  23.                 {#<-- Inicio buscador -->#}
  24.                 <div class="col-md-12 margen-15">
  25.                     <div class="panel">
  26.                         <div class="panel-heading">
  27.                             <h6 class="panel-title">{% trans %} Proposal search engine by event start date {% endtrans %}: <a class="heading-elements-toggle"><i class="icon-more"></i></a></h6>
  28.                         </div>
  29.                         <div class="panel-body border-blue">
  30.                             <form name="lounge" method="post" action="/events/proposal/list">
  31.                                 <div class="col-sm-9">
  32.                                     <div class="form-group">
  33.                                         <div class="col-sm-3">
  34.                                             <label class="control-label" for="buscarFecha_desde">Desde: </label>
  35.                                             <input type="date" id="buscarFecha_desde" name="buscarFecha[desde]" placeholder="" class="form-control ">
  36.                                         </div>
  37.                                         <div class="col-sm-3">
  38.                                             <label class="control-label" for="buscarFecha_hasta">Hasta: </label>
  39.                                             <input type="date" id="buscarFecha_hasta" name="buscarFecha[hasta]" placeholder="" class="form-control">
  40.                                         </div>
  41.                                         <div class="col-sm-4">
  42.                                             <label class="control-label" for="buscarFecha_client" >{% trans %}Client{% endtrans %}</label>
  43.                                             <div class="input-group col-lg-12 InputClientSpinner ">
  44.                                                 <select class="form-control" name="buscarFecha[clientid]" id="buscarFecha_client">
  45.                                                     <option value="" selected="selected">Select a Client</option>
  46.                                                 </select>
  47.                                             </div>
  48.                                         </div>
  49.                                         <div class="col-sm-2">
  50.                                             <label class="control-label" for="statistics_invoice_agent">{% trans %}Agent{% endtrans %}:</label>
  51.                                             <select id="statistics_invoice_agent" name="data[agent]" class="form-control">
  52.                                                 <option value="">{% trans %}Select Agent{% endtrans %}</option>
  53.                                                 {% for agent in agents %}
  54.                                                     <option value="{{ agent.id }}">{{ agent.username }}</option>
  55.                                                 {% endfor %}
  56.                                             </select>
  57.                                         </div>
  58.                                     </div>
  59.                                 </div>
  60.                                 <div class="col-sm-3" style="padding-top: 26px; padding-left: 15px;padding-right: 15px">
  61.                                     <div class="form-group form-group-material">
  62.                                         <div class="input-group">
  63.                                             <span class="input-group-addon bg-info"><i class="icon-search4"></i></span>
  64.                                             <button type="submit" name="buscarFecha[save]" class="btn bg-info-300 btn-block">{% trans %}Search{% endtrans %}</button>
  65.                                         </div>
  66.                                     </div>
  67.                                 </div>
  68.                             </form>
  69.                         </div>
  70.                     </div>
  71.                 </div>
  72.                 {#<-- /Fin buscador -->#}
  73.                 <div class="col-md-12 margen-15">
  74.                     <div class="panel">
  75.                         {#<div class="panel-heading">#}
  76.                             {#<h6 class="panel-title">{% trans %} Proposal Available {% endtrans %}<a class="heading-elements-toggle"><i class="icon-more"></i></a></h6>#}
  77.                         {#</div>#}
  78.                         <div class="panel-body border-blue">
  79.                             <table id="table-proposal" class="col-sm-12 datatable-responsive table-bordered table-hover datatable-highlight">
  80.                                 <thead>
  81.                                 <tr>
  82.                                     <th class="no-sort">{% trans %}<i class="icon-eye"></i>{% endtrans %}</th>
  83.                                     <th>{% trans %}Create{% endtrans %}</th>
  84.                                     <th>{% trans %}Ref.{% endtrans %}</th>
  85.                                     <th>{% trans %}Name{% endtrans %}</th>
  86.                                     <th>{% trans %}Client{% endtrans %}</th>
  87.                                     <th>{% trans %}Commercial{% endtrans %}</th>
  88.                                     {#<th>{% trans %}Team{% endtrans %}</th>#}
  89.                                     <th>{% trans %}Hierarchy{% endtrans %}</th>
  90.                                     <th>{% trans %}Agent{% endtrans %}</th>
  91.                                     <th>{% trans %}Start{% endtrans %}</th>
  92.                                     <th>{% trans %}End{% endtrans %}</th>
  93.                                     <th id="targets" class="text-center no-sort actions">{% trans %}Actions{% endtrans %}</th>
  94.                                 </tr>
  95.                                 </thead>
  96.                                 <tbody>
  97.                                 {% for proposal in proposals %}
  98.                                     <tr>
  99.                                         <td class="text-center">
  100.                                             {% autoescape %}
  101.                                                 {% if proposal.iconsent is not empty  %}
  102.                                                     <span data-placement="right">{{ proposal.iconsent|raw }}</span>
  103.                                                 {% endif %}
  104.                                                 <span data-popup="tooltip-custom" title="{{ proposal.status }}" data-placement="right">{{ proposal.iconstatus|raw }}</span>
  105.                                                 <span data-popup="tooltip-custom" title="
  106.                                                         {% trans %}Last viewed by Customer{% endtrans %}:<br>
  107.                                                         {{ proposal.viewedAt }}<br>
  108.                                                         <b class='text-orange'>{{ proposal.novisto }}</b>"
  109.                                                       data-placement="right">
  110.                                                         {% if proposal.novisto != "No ha sido visto" %} <i class='icon-eye text-green'></i> {% endif %} </span>
  111.                                             {% endautoescape %}
  112.                                         </td>
  113.                                         <td>{{ proposal.create }}</td>
  114.                                         <td>#{{ proposal.id }}</td>
  115.                                         <td ><a href="/events/proposal/edit/{{ proposal.id }}">{{ proposal.name }}</a></td>
  116.                                         <td style="white-space:nowrap; padding:5px;">
  117.                                                 <span class="label border-left-info label-striped"
  118.                                                   data-popup="popover-custom"
  119.                                                   title="{{ proposal.client }}"
  120.                                                   data-content="
  121.                                                   <i class='icon-user-tie position-left'></i>: {{ proposal.contact }}<br>
  122.                                                   <i class='icon-office position-left'></i>: {{ proposal.contactdepartment }}<br>
  123.                                                   <i class='icon-envelop4 position-left'></i>:  <a href='mailto:{{ proposal.contactmail }}'>{{ proposal.contactmail }}</a><br>
  124.                                                   <i class='icon-phone position-left'></i>: {{ proposal.contactphone }}<br>
  125.                                                   <i class='icon-mobile position-left'></i>: {{ proposal.contactmovil }}<br>
  126.                                                   "
  127.                                                   data-placement="right">{{ proposal.client|slice('0', '10') ~ '...' }} <i class="icon-arrow-right22"></i>
  128.                                                 </span>
  129.                                             {% if  proposal.list_client=="si" %}
  130.                                             <a href="/events/proposal/listclient/{{ proposal.client_id }}"><i class='icon-add-to-list position-left'></i></a>
  131.                                             {% endif %}
  132.                                         </td>
  133.                                         <td>{{ proposal.commercial }}</td>
  134.                                         {#<td>{{ proposal.team }}</td>#}
  135.                                         <td>
  136.                                             {% if proposal.refagent %}
  137.                                                 {{ proposal.refagent }}
  138.                                             {% else %}
  139.                                                 0
  140.                                             {% endif %}
  141.                                         </td>
  142.                                         <td>
  143.                                             {% if proposal.agent is not empty %}
  144.                                                 {{ proposal.agent }}
  145.                                             {% else %}
  146.                                                 <span class="label bg-danger parpadea">{% trans %}Unassigned{% endtrans %}</span>
  147.                                                 {#{% if unassigned is not empty %}#}
  148.                                                 {#{% endif %}#}
  149.                                             {% endif %}
  150.                                             {% if is_granted('ROLE_ADMIN') or app.user.id == "57" or app.user.id == "22" or app.user.id == "27" %}
  151.                                             <br>
  152.                                             <form id="{{ proposal.id }}" action="/events/proposal/assigned/{{ proposal.id }}" method="POST">
  153.                                                 <select id="unassigned_agent_select" onchange="this.form.submit()" name="agent[agent]" class="form-control">
  154.                                                     <option value="">{% trans %}Select Agent{% endtrans %}</option>
  155.                                                     {% for agent in agents %}
  156.                                                         <option value="{{ agent.id }}">{{ agent.username }}</option>
  157.                                                     {% endfor %}
  158.                                                 </select>
  159.                                             </form>
  160.                                             {% endif %}
  161.                                         </td>
  162.                                         <td>{{ proposal.event_star }}</td>
  163.                                         <td>{{ proposal.event_end }}</td>
  164.                                         <td class="text-center">
  165.                                             <ul class="icons-list">
  166.                                                 <li class="dropdown">
  167.                                                     <a class="btn text-info  btn-icon btn-lg" href="#" class="dropdown-toggle" data-toggle="dropdown">
  168.                                                         <i class="icon-menu9"></i>
  169.                                                     </a>
  170.                                                     <ul class="dropdown-menu dropdown-menu-right bg-teal-400">
  171.                                                         <li><a href="/events/proposal/edit/{{ proposal.id }}"><i class="icon-pencil5 pull-right"></i> {% trans %}General Edit{% endtrans %}</a></li>
  172.                                                         <li><a href="/events/proposal/destination/add/{{ proposal.id }}"><i class="icon-pencil5 pull-right"></i> {% trans %}Services Edit{% endtrans %}</a></li>
  173.                                                         <li><a href="/presentation/home/{{ proposal.token }}" target="_blank"><i class="icon-presentation pull-right"></i> {% trans %}Presentation{% endtrans %}</a></li>
  174.                                                         <li><a href="/presentation/homethree/{{ proposal.token }}" target="_blank"><i class="icon-presentation pull-right"></i> {% trans %}PresentaciĆ³n Nueva{% endtrans %}</a></li>
  175.                                                         <li><a href="/events/proposal/duplicate/{{ proposal.id }}" target="_blank"><i class="icon-copy4 pull-right"></i> {% trans %}Duplicate Proposal{% endtrans %}</a></li>
  176.                                                         <li class="divider"></li>
  177.                                                         <li><a href="/events/proposal/cancel/{{ proposal.id }}"><i class="icon-trash pull-right"></i> {% trans %}Cancel{% endtrans %}</a></li>
  178.                                                     </ul>
  179.                                                 </li>
  180.                                             </ul>
  181.                                         </td>
  182.                                     </tr>
  183.                                 {% endfor %}
  184.                                 </tbody>
  185.                             </table>
  186.                         </div>
  187.                     </div>
  188.                 </div>
  189.             </div>
  190.         </div>
  191.     {% endblock %}
  192.         {% block javascripts %}
  193.             {{ parent() }}
  194.             <script type="text/javascript" src="{{ asset('assets/js/pages/proposal/list-order.js') }}"></script>
  195.             <script type="text/javascript" src="{{ asset('assets/js/plugins/tables/datatables/datatables.min.js') }}"></script>
  196.             <script type="text/javascript" src="{{ asset('assets/js/plugins/tables/datatables/extensions/responsive.min.js') }}"></script>
  197.             <script type="text/javascript" src="{{ asset('assets/js/pages/datatables_responsive.js') }}"></script>
  198.             <script type="text/javascript" src="{{ asset('assets/js/pages/datatables_advanced.js') }}"></script>
  199.             <script type="text/javascript" src="{{ asset('assets/js/pages/proposal/list-proposal.js') }}"></script>
  200.             <script type="text/javascript" src="{{ asset('assets/js/pages/components_popups.js') }}"></script>
  201.             <script type="text/javascript" src="{{ asset('assets/js/plugins/forms/selects/select2.min.js') }}"></script>
  202.         {% endblock %}