Sha256: 218115bbe496b209e809fe4478fd94205b87701c70790cec6191265565be711c
Contents?: true
Size: 752 Bytes
Versions: 6
Compression:
Stored size: 752 Bytes
Contents
# frozen_string_literal: true module Decidim module Meetings # This cell renders the button to cancel a meeting registration. class CancelRegistrationMeetingButtonCell < Decidim::ViewModel 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 "button button__sm button__text-secondary" end def icon_name "calendar-close-line" end def registration_form @registration_form ||= Decidim::Meetings::JoinMeetingForm.new end end end end
Version data entries
6 entries across 6 versions & 1 rubygems