class Decidim::Meetings::JoinMeetingButtonCell
This cell renders the button to join a meeting.
def button_classes
def button_classes "button button__xl button__secondary w-full" end
def current_component
def current_component model.component end
def i18n_cancel_text
def i18n_cancel_text I18n.t("cancel", scope: "decidim.meetings.meetings.registration_confirm") end
def i18n_confirm_text
def i18n_confirm_text I18n.t("confirm", scope: "decidim.meetings.meetings.registration_confirm") end
def i18n_join_text
def i18n_join_text return I18n.t("join", scope: "decidim.meetings.meetings.show") if model.has_available_slots? I18n.t("no_slots_available", scope: "decidim.meetings.meetings.show") end
def registration_form
def registration_form @registration_form ||= Decidim::Meetings::JoinMeetingForm.new end
def registration_terms_text
def registration_terms_text decidim_sanitize_editor translated_attribute(model.registration_terms) end
def show
def show return unless model.can_be_joined_by?(current_user) || model.on_different_platform? render end
def shows_remaining_slots?
def shows_remaining_slots? options[:show_remaining_slots] && model.available_slots.positive? end