templates/facility_dashboard/hospital.html.twig line 1

Open in your IDE?
  1. {% extends 'front.html.twig' %}
  2. {% block title %}Bed Capacities in {{ beds[0].facility }}{% 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].facility }}</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>Department</th>
  19.                             <th class="text-right">Beds Sanctioned for Males as per IPHS</th>
  20.                             <th class="text-right">Functional Beds for Males</th>
  21.                             <th class="text-right">Vacant Beds for Males</th>
  22.                             <th class="text-right">Beds Sanctioned for Females as per IPHS</th>
  23.                             <th class="text-right">Functional Beds for Females</th>
  24.                             <th class="text-right">Vacant Beds for Females</th>
  25.                         </tr>
  26.                     </thead>
  27.                     <tbody>
  28.                         {% for bed in beds %}
  29.                             <tr>
  30.                                 <td class="text-right">{{ loop.index }}</td>
  31.                                 <td class="text-nowrap">
  32.                                     <a href="{{ path('facilities_department', {'id': bed.ward_id }) }}" data-toggle="kt-tooltip" title="View Details">{{ bed.department }}</a>
  33.                                 </td>
  34.                                 <td class="text-right">{{ bed.iphs_m }}</td>
  35.                                 <td class="text-right">{{ bed.avail_m }}</td>
  36.                                 <td class="text-right">{{ bed.avail_m - bed.occ_m }}</td>
  37.                                 <td class="text-right">{{ bed.iphs_f }}</td>
  38.                                 <td class="text-right">{{ bed.avail_f }}</td>
  39.                                 <td class="text-right">{{ bed.avail_f - bed.occ_f }}</td>
  40.                             </tr>
  41.                         {% endfor %}
  42.                     </tbody>
  43.                 </table>
  44.             </div>
  45.         </div>
  46.     </div>
  47. {% endblock %}
  48. {% block scripts %}
  49.     {{ parent() }}
  50.     <script>
  51.         $('#type').val('{{ app.request.get('type') }}');
  52.         $('#level').val('{{ app.request.get('level') }}');
  53.         $('#department').val('{{ app.request.get('department_id') }}');
  54.         $('select').selectpicker();
  55.     </script>
  56. {% endblock %}