<% add_decidim_page_title(t("title", scope: "decidim.meetings.admin.registrations.form")) %>

<%= t("title", scope: "decidim.meetings.admin.registrations.form") %>
<%= link_to t("invites", scope: "decidim.meetings.admin.registrations.form"), meeting_registrations_invites_path(meeting), class: "button button__sm button__secondary #{"disabled" unless allowed_to? :read_invites, :meeting, meeting: meeting}" %> <% if allowed_to? :export_registrations, :meeting, meeting: meeting %> <%= t "actions.export", scope: "decidim.admin" %> <%= icon "arrow-down-s-line", class: "dropdown-filter-icon" %> <% end %> <%= link_to t("registration_form" , scope: "decidim.meetings.admin.registrations.form"), edit_meeting_registrations_form_path(meeting_id: meeting.id), class: "button button__sm button__secondary" %>

<% if meeting.component.settings.registration_code_enabled %>

<%= t(".validate_registration_code") %>

<%= decidim_form_for(@validation_form, url: validate_registration_code_meeting_registrations_path, html: { class: "form form-defaults validate_meeting_registration_code" }) do |f| %>
<%= f.label :code %>
<%= f.text_field :code, label: false %>
<%= f.submit t(".validate"), class: "button button__sm button__secondary" %>
<% end %>
<% end %> <%= cell("decidim/announcement", t("recommendation_message", scope: "decidim.meetings.admin.registrations.form"), callout_class: "warning" ) %> <%= decidim_form_for(@form, url: meeting_registrations_path, html: { class: "form-defaults form edit_meeting_registrations mt-4" }) do |f| %> <%= render partial: "form", object: f %>
<%= f.submit t(".save"), class: "button button__sm button__secondary" %>
<% end %>