{% extends 'layouts/app.twig' %} {% import 'macros/base.twig' as m %} {% import 'macros/form.twig' as f %} {% block title %}{{ __('location.locations') }}{% endblock %} {% block content %}

{% if not is_index|default(false) %} {{ m.button(m.icon('chevron-left'), location ? url('/locations', {'action': 'view', 'location_id': location.id}) : url('/admin/locations'), 'secondary', 'sm') }} {% endif %} {{ block('title') }} {% if is_index|default(false) %} {{ m.button(m.icon('plus-lg'), url('/admin/locations/edit'), 'secondary') }} {% endif %}

{% include 'layouts/parts/messages.twig' %}
{% block row_content %}
{% for location in locations %} {% endfor %}
{{ __('general.name') }} {{ __('general.dect') }} {{ __('location.map_url') }}
{{ m.icon('pin-map-fill') }} {{ location.name }} {{ m.iconBool(location.dect) }} {{ m.iconBool(location.map_url) }}
{{ m.button(m.icon('pencil'), url('admin/locations/edit/' ~ location.id), null, 'sm', __('form.edit')) }}
{{ csrf() }} {{ f.hidden('id', location.id) }} {{ f.button(m.icon('trash'), {'title': __('form.delete'), 'name': 'delete', 'type': 'submit', 'btn_type': 'danger', 'size': 'sm'}) }}
{% endblock %}
{% endblock %}