Sha256: 86bc3071b9414381fcc6f576c1a05843bb6628bfd8905495f15f3f2c247fc5ae

Contents?: true

Size: 1.24 KB

Versions: 13

Compression:

Stored size: 1.24 KB

Contents

<% if conference.registrations_enabled? %>
  <% if conference.has_registration_for_user_and_registration_type?(current_user, model) %>
    <% if allowed? %>
      <%= button_to conference_registration_type_conference_registration_path(conference, model),
                    method: :delete,
                    class: "#{button_classes} bg-success text-white border-transparent conference__registration-button",
                    data: { disable: true } do %>
        <span><%= t("going", scope: "decidim.conferences.conference.show") %></span>
        <%= icon "checkbox-circle-line", class: "w-3.5 h-3.5 fill-current flex-none" %>
      <% end %>
    <% end %>
  <% else %>
    <% if allowed? %>
      <%= button_tag(
          type: "button",
          class: "#{button_classes} conference__registration-button",
          disabled: !conference.has_available_slots? || conference.has_registration_for?(current_user),
          data: { dialog_open: current_user.present? ? "conference-registration-confirm-#{model.id}" : "loginModal" }
        ) do %>
        <span><%= i18n_join_text %></span>
        <%= icon "ticket-line", class: "w-3.5 h-3.5 fill-current flex-none" %>
      <% end %>

      <%= render :registration_confirm %>
    <% end %>
  <% end %>
<% end %>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
decidim-conferences-0.29.1 app/cells/decidim/conferences/registration_type/join_conference.erb
decidim-conferences-0.28.4 app/cells/decidim/conferences/registration_type/join_conference.erb
decidim-conferences-0.29.0 app/cells/decidim/conferences/registration_type/join_conference.erb
decidim-conferences-0.28.3 app/cells/decidim/conferences/registration_type/join_conference.erb
decidim-conferences-0.29.0.rc4 app/cells/decidim/conferences/registration_type/join_conference.erb
decidim-conferences-0.29.0.rc3 app/cells/decidim/conferences/registration_type/join_conference.erb
decidim-conferences-0.29.0.rc2 app/cells/decidim/conferences/registration_type/join_conference.erb
decidim-conferences-0.29.0.rc1 app/cells/decidim/conferences/registration_type/join_conference.erb
decidim-conferences-0.28.2 app/cells/decidim/conferences/registration_type/join_conference.erb
decidim-conferences-0.28.1 app/cells/decidim/conferences/registration_type/join_conference.erb
decidim-conferences-0.28.0 app/cells/decidim/conferences/registration_type/join_conference.erb
decidim-conferences-0.28.0.rc5 app/cells/decidim/conferences/registration_type/join_conference.erb
decidim-conferences-0.28.0.rc4 app/cells/decidim/conferences/registration_type/join_conference.erb