templates/facility_dashboard/district.html.twig line 1

Open in your IDE?
  1. {% extends 'front.html.twig' %}
  2. {% block title %}Bed Capacities in {{ beds[0].name }}{% endblock %}
  3. {% block content %}
  4.     <div class="kt-subheader kt-grid__item"></div>
  5.     <div class="kt-container kt-grid__item kt-grid__item--fluid">
  6.         <div class="kt-portlet kt-portlet--mobile">
  7.             <div class="kt-portlet__head kt-portlet__head--lg">
  8.                 <div class="kt-portlet__head-label">
  9.                     <h3 class="kt-portlet__head-title">Bed Capacities in {{ beds[0].name }}</h3>
  10.                 </div>
  11.             </div>
  12.             <div class="kt-portlet__body">
  13.                 {% include 'facility_dashboard/_filter_form.html.twig' %}
  14.                 <table class="table">
  15.                     <thead>
  16.                         <tr>
  17.                             <th class="text-right text-nowrap">Sr. No.</th>
  18.                             <th class="text-nowrap">Health Facility</th>
  19.                             <th>Department</th>
  20.                             <th class="text-right">Beds Sanctioned for Males as per IPHS</th>
  21.                             <th class="text-right">Functional Beds for Males</th>
  22.                             <th class="text-right">Vacant Beds for Males</th>
  23.                             <th class="text-right">Beds Sanctioned for Females as per IPHS</th>
  24.                             <th class="text-right">Functional Beds for Females</th>
  25.                             <th class="text-right">Vacant Beds for Females</th>
  26.                         </tr>
  27.                     </thead>
  28.                     <tbody>
  29.                         {% for bed in beds %}
  30.                             <tr>
  31.                                 <td class="text-right">{{ loop.index }}</td>
  32.                                 <td>
  33.                                     <a href="{{ path('facilities_hospital', {'id': bed.id }) }}" data-toggle="kt-tooltip" title="View Details">{{ bed.facility }}</a>
  34.                                 </td>
  35.                                 <td class="text-nowrap">{{ bed.department }}</td>
  36.                                 <td class="text-right">{{ bed.iphs_m }}</td>
  37.                                 <td class="text-right">{{ bed.avail_m }}</td>
  38.                                 <td class="text-right">{{ bed.avail_m - bed.occ_m }}</td>
  39.                                 <td class="text-right">{{ bed.iphs_f }}</td>
  40.                                 <td class="text-right">{{ bed.avail_f }}</td>
  41.                                 <td class="text-right">{{ bed.avail_f - bed.occ_f }}</td>
  42.                             </tr>
  43.                         {% endfor %}
  44.                     </tbody>
  45.                 </table>
  46.             </div>
  47.         </div>
  48.     </div>
  49. {% endblock %}
  50. {% block scripts %}
  51.     {{ parent() }}
  52.     <script>
  53.         $('#type').val('{{ app.request.get('type') }}');
  54.         $('#level').val('{{ app.request.get('level') }}');
  55.         $('#department').val('{{ app.request.get('department_id') }}');
  56.         $('select').selectpicker();
  57.     </script>
  58. {% endblock %}