app/views/decidim/meetings/admin/registrations/edit.html.erb in decidim-meetings-0.23.6 vs app/views/decidim/meetings/admin/registrations/edit.html.erb in decidim-meetings-0.24.0.rc1

- old
+ new

@@ -1,27 +1,29 @@ -<div class="card"> - <div class="card-divider"> - <h2 class="card-title"> - <%= t(".validate_registration_code") %> - </h2> - </div> - <div class="card-section"> - <%= decidim_form_for(@validation_form, url: validate_registration_code_meeting_registrations_path, html: { class: "form validate_meeting_registration_code" }) do |f| %> +<% if meeting.component.settings.registration_code_enabled %> + <div class="card"> + <div class="card-divider"> + <h2 class="card-title"> + <%= t(".validate_registration_code") %> + </h2> + </div> + <div class="card-section"> + <%= decidim_form_for(@validation_form, url: validate_registration_code_meeting_registrations_path, html: { class: "form validate_meeting_registration_code" }) do |f| %> - <div class="grid-x grid-margin-x"> - <div class="auto cell"> - <%= f.text_field :code %> - </div> + <div class="grid-x grid-margin-x"> + <div class="auto cell"> + <%= f.text_field :code %> + </div> - <div class="shrink cell"> - <div class="text-center mt-sm"> - <%= f.submit t(".validate") %> + <div class="shrink cell"> + <div class="text-center mt-sm"> + <%= f.submit t(".validate") %> + </div> </div> </div> - </div> - <% end %> + <% end %> + </div> </div> -</div> +<% end %> <%= decidim_form_for(@form, url: meeting_registrations_path, html: { class: "form edit_meeting_registrations" }) do |f| %> <%= render partial: "form", object: f %> <div class="button--double form-general-submit">