<%= t(".title") %>
<%= link_to t("actions.new", scope: "decidim.meetings", name: t("models.meeting.name", scope: "decidim.meetings.admin")), new_meeting_path, class: "button tiny button--simple" if allowed_to? :create, :meeting %> <%= export_dropdown %>

<% if Decidim.geocoder.present? %> <% end %> <% meetings.each do |meeting| %> <% if Decidim.geocoder.present? %> <% end %> <% end %>
<%= t("models.meeting.fields.title", scope: "decidim.meetings") %> <%= t("models.meeting.fields.start_time", scope: "decidim.meetings") %> <%= t("models.meeting.fields.end_time", scope: "decidim.meetings") %> <%= t("models.meeting.fields.closed", scope: "decidim.meetings") %><%= t("models.meeting.fields.map", scope: "decidim.meetings") %><%= t("actions.title", scope: "decidim.meetings") %>
<%= present(meeting).title %>
<% if meeting.start_time %> <%= l meeting.start_time, format: :long %> <% end %> <% if meeting.end_time %> <%= l meeting.end_time, format: :long %> <% end %> <%= humanize_boolean meeting.closed? %> <%= static_map_link(meeting) %> <%= icon_link_to "eye", resource_locator(meeting).path, t("actions.preview", scope: "decidim.meetings"), class: "action-icon--preview", target: :blank %> <% if allowed_to? :copy, :meeting, meeting: meeting %> <%= icon_link_to "clipboard", new_meeting_copy_path(meeting), t("actions.duplicate", scope: "decidim.admin"), class: "action-icon--copy" %> <% end %> <% if allowed_to? :update, :meeting, meeting: meeting %> <%= icon_link_to "pencil", edit_meeting_path(meeting), t("actions.edit", scope: "decidim.meetings"), class: "action-icon--edit" %> <%= icon_link_to "people", edit_meeting_registrations_path(meeting), t("actions.registrations", scope: "decidim.meetings"), class: "action-icon--registrations" %> <%= icon_link_to "clock", meeting.minutes.present? ? edit_meeting_minute_path(meeting, meeting.minutes) : new_meeting_minute_path(meeting), t("actions.minutes", scope: "decidim.meetings"), class: "action-icon--minutes" %> <%= icon_link_to "calendar", meeting.agenda.present? ? edit_meeting_agenda_path(meeting, meeting.agenda) : new_meeting_agenda_path(meeting), t("actions.agenda", scope: "decidim.meetings"), class: "action-icon--agenda" %> <% end %> <% if allowed_to? :close, :meeting, meeting: meeting %> <%= icon_link_to "lock-locked", edit_meeting_meeting_close_path(meeting_id: meeting.id, id: meeting.id), t("actions.close", scope: "decidim.meetings"), class: "action-icon--close" %> <% end %> <% if allowed_to? :update, :meeting, meeting: meeting %> <%= icon_link_to "folder", meeting_attachment_collections_path(meeting), t("actions.attachment_collections", scope: "decidim.meetings"), class: "action-icon--attachment_collections" %> <% end %> <% if allowed_to? :update, :meeting, meeting: meeting %> <%= icon_link_to "paperclip", meeting_attachments_path(meeting), t("actions.attachments", scope: "decidim.meetings"), class: "action-icon--attachments" %> <% end %> <%= resource_permissions_link(meeting) %> <% if allowed_to? :destroy, :meeting, meeting: meeting %> <% if present(meeting).authored_proposals.empty? %> <%= icon_link_to "circle-x", meeting_path(meeting), t("actions.destroy", scope: "decidim.meetings"), method: :delete, class: "action-icon--remove", data: { confirm: t("actions.confirm_destroy", scope: "decidim.meetings") } %> <% else %> <%= content_tag(:button, class: ["action-icon", "action-icon--remove", "destroy-meeting-alert"], "data-invalid-destroy-message" => t("actions.invalid_destroy.proposals_count", count: present(meeting).authored_proposals.size, scope: "decidim.meetings"), "data-proposal-titles" => present(meeting).formatted_proposals_titles) do content_tag(:span, data: { tooltip: true, disable_hover: false, click_open: false }, title: t("actions.destroy", scope: "decidim.meetings")) do icon("circle-x") end end %> <% end %> <% end %>
<%= paginate meetings, theme: "decidim" %>
<%= javascript_include_tag "decidim/meetings/admin/destroy_meeting_alert" %>