{## # @file alarms_info_history.html # Copyright (C) 2015 Pressa. All rights reserved. #}
| {{ lang['dashboard']['alarms']['info']['vehicle_name'] }} | {{ history['vehicleInfo']['name'] }} | |
| {{ lang['dashboard']['alarms']['info']['vehicle_alias'] }} | {{ history['vehicleInfo']['alias'] }} | |
| {{ lang['dashboard']['alarms']['info']['vehicle_brand'] }} | {{ history['vehicleInfo']['brand'] }} | |
| {{ lang['dashboard']['alarms']['info']['vehicle_model'] }} | {{ history['vehicleInfo']['model'] }} | |
| {{ lang['dashboard']['alarms']['info']['vehicle_license_plate'] }} | {{ history['vehicleInfo']['licensePlate'] }} | |
| {{ lang['dashboard']['alarms']['info']['vehicle_year'] }} | {{ history['vehicleInfo']['year'] }} | |
| {{ lang['dashboard']['alarms']['info']['vehicle_engine'] }} | {{ history['vehicleInfo']['engine'] }} | |
| {{ lang['dashboard']['alarms']['info']['vehicle_chassis'] }} | {{ history['vehicleInfo']['chassis'] }} | |
| {{ lang['dashboard']['alarms']['info']['vehicle_company_name'] }} | {{ history['vehicleInfo']['companyName'] }} | |
| {{ lang['dashboard']['alarms']['info']['vehicle_gps_id'] }} | {{ history['gpsInfo']['id'] }} | |
| {{ lang['dashboard']['alarms']['info']['vehicle_insurance_company'] }} | {{ history['vehicleInfo']['insuranceCompany'] }} | |
| {{ lang['dashboard']['alarms']['info']['vehicle_insurance_policy'] }} | {{ history['vehicleInfo']['insurancePolicy'] }} | |
| {{ lang['dashboard']['alarms']['info']['vehicle_date_register'] }} | {{ history['vehicleInfo']['dateRegister']|date("d/m/Y H:i:s") }} | |
| {{ lang['dashboard']['alarms']['info']['vehicle_odometer'] }} | {{ history['vehicleInfo']['odometer'] }} | |
| {{ lang['dashboard']['alarms']['info']['vehicle_suspended'] }} | {% if history['vehicleInfo']['suspended'] %}{{ lang['dashboard']['alarms']['info']['vehicle_suspended_types'][1] }} | {% else %}{{ lang['dashboard']['alarms']['info']['vehicle_suspended_types'][0] }} | {% endif %}
| {{ lang['dashboard']['alarms']['info']['history_comm_datetime'] }} | {% set cd = (date().timestamp-history['commDatetime']|date('U')) %} {% set cdclass = 'bg-danger' %} {% if cd < 0 %} {% set cdclass = 'bg-danger' %} {% elseif cd < 600 %} {% set cdclass = 'bg-success' %} {% elseif cd < 3600 %} {% set cdclass = 'bg-warning' %} {% endif %}{{ history['commDatetime']|date("d/m/Y H:i:s") }} |
| {{ lang['dashboard']['alarms']['info']['history_datetime'] }} | {% set dt = (date().timestamp-history['datetime']|date('U')) %} {% set dtclass = 'bg-danger' %} {% if dt < 0 %} {% set dtclass = 'bg-danger' %} {% elseif dt < 600 %} {% set dtclass = 'bg-success' %} {% elseif dt < 3600 %} {% set dtclass = 'bg-warning' %} {% endif %}{{ history['datetime']|date("d/m/Y H:i:s") }} |
| {{ lang['dashboard']['alarms']['info']['history_event_code'] }} | {{ ec['id'] }} |
| {{ lang['dashboard']['alarms']['info']['history_event_code_name'] }} | {{ ec['description'] }} |
| {{ lang['dashboard']['alarms']['info']['history_location_address'] }} | {{ history['location']['address'] }} |
| {{ lang['dashboard']['alarms']['info']['history_location_coords'] }} | {% set lat = history['location']['lat'] %} {% set lng = history['location']['lng'] %} {{ lat }}, {{ lng }} |
| {{ lang['dashboard']['alarms']['info']['history_speed'] }} | {{ history['speed'] }} |
| {{ lang['dashboard']['alarms']['info']['history_orientation'] }} | {{ history['orientation'] }} |
| {{ lang['dashboard']['alarms']['info']['history_state'] }} | {{ history['status'] }} |
| {{ lang['dashboard']['alarms']['info']['history_gps_id'] }} | {{ history['gpsInfo']['id'] }} |
| {{ lang['dashboard']['alarms']['info']['history_gps_age'] }} | {{ history['age'] }} |
| {{ lang['dashboard']['alarms']['info']['history_message_number'] }} | {{ history['messageNumber'] }} |
| {% else %} | {% endif %} {{ history['vehicleInfo']['sensors'][i] }} |