Sha256: a165eefcc1d75235495a73d821fc46c92f4e1f0b6bebb2c14325dae9ab268135
Contents?: true
Size: 734 Bytes
Versions: 5
Compression:
Stored size: 734 Bytes
Contents
# frozen_string_literal: true module Decidim module Meetings # This cell renders the button to cancel a meeting registation. class CancelRegistrationMeetingButtonCell < Decidim::ViewModel include Decidim::IconHelper include MeetingCellsHelper def show return unless model.can_be_joined_by?(current_user) return unless model.has_registration_for?(current_user) render end private def current_component model.component end def button_classes "" end def icon_name "circle-x" end def registration_form @registration_form ||= Decidim::Meetings::JoinMeetingForm.new end end end end
Version data entries
5 entries across 5 versions & 1 rubygems