{# Label #} {% include "objects/property_label.html" %} {# View #}
{% if data is not none and "hazards" in data %} {% if data["hazards"] %}
{% set hazard_titles = {1: 'Explosive', 2: 'Flammable', 3: 'Oxidizing', 4: 'Compressed Gas', 5: 'Corrosive', 6: 'Toxic', 7: 'Harmful', 8: 'Health Hazard', 9: 'Environmental Hazard'} %} {% for hazard_index in data["hazards"] %} GHS0{{ hazard_index }} {% endfor %}
{% else %} — {% endif %} {% else %} {{ _('Unknown') }} {% endif %}
{{ _('Your input is not valid. Please check.') }}
{# Form #}
{% set hazard_titles = {1: 'Explosive', 2: 'Flammable', 3: 'Oxidizing', 4: 'Compressed Gas', 5: 'Corrosive', 6: 'Toxic', 7: 'Harmful', 8: 'Health Hazard', 9: 'Environmental Hazard'} %} {% for hazard_index in hazard_titles.keys() | sort %} {% endfor %}
{% if id_prefix+'_hidden' in errors %}{{ _('Error:') }} {{ errors[id_prefix+'_hidden'] }}{% endif %} {% if 'note' in schema %}{{ _('Note:') }} {{ schema['note'] | get_translated_text }}{% endif %}