Sha256: fb28002c00d04b17220953f7a4aa1a10f70957f7c61fd0844628192288858762

Contents?: true

Size: 445 Bytes

Versions: 88

Compression:

Stored size: 445 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Sortitions
    module Admin
      class DestroySortitionForm < Form
        include TranslatableAttributes

        mimic :sortition

        translatable_attribute :cancel_reason, String

        validates :cancel_reason, translatable_presence: true

        delegate :current_participatory_space, to: :context
        delegate :current_component, to: :context
      end
    end
  end
end

Version data entries

88 entries across 88 versions & 1 rubygems

Version Path
decidim-sortitions-0.29.1 app/forms/decidim/sortitions/admin/destroy_sortition_form.rb
decidim-sortitions-0.28.4 app/forms/decidim/sortitions/admin/destroy_sortition_form.rb
decidim-sortitions-0.27.9 app/forms/decidim/sortitions/admin/destroy_sortition_form.rb
decidim-sortitions-0.29.0 app/forms/decidim/sortitions/admin/destroy_sortition_form.rb
decidim-sortitions-0.28.3 app/forms/decidim/sortitions/admin/destroy_sortition_form.rb
decidim-sortitions-0.27.8 app/forms/decidim/sortitions/admin/destroy_sortition_form.rb
decidim-sortitions-0.29.0.rc4 app/forms/decidim/sortitions/admin/destroy_sortition_form.rb
decidim-sortitions-0.29.0.rc3 app/forms/decidim/sortitions/admin/destroy_sortition_form.rb
decidim-sortitions-0.29.0.rc2 app/forms/decidim/sortitions/admin/destroy_sortition_form.rb
decidim-sortitions-0.29.0.rc1 app/forms/decidim/sortitions/admin/destroy_sortition_form.rb
decidim-sortitions-0.28.2 app/forms/decidim/sortitions/admin/destroy_sortition_form.rb
decidim-sortitions-0.27.7 app/forms/decidim/sortitions/admin/destroy_sortition_form.rb
decidim-sortitions-0.28.1 app/forms/decidim/sortitions/admin/destroy_sortition_form.rb
decidim-sortitions-0.27.6 app/forms/decidim/sortitions/admin/destroy_sortition_form.rb
decidim-sortitions-0.26.10 app/forms/decidim/sortitions/admin/destroy_sortition_form.rb
decidim-sortitions-0.26.9 app/forms/decidim/sortitions/admin/destroy_sortition_form.rb
decidim-sortitions-0.28.0 app/forms/decidim/sortitions/admin/destroy_sortition_form.rb
decidim-sortitions-0.27.5 app/forms/decidim/sortitions/admin/destroy_sortition_form.rb
decidim-sortitions-0.28.0.rc5 app/forms/decidim/sortitions/admin/destroy_sortition_form.rb
decidim-sortitions-0.28.0.rc4 app/forms/decidim/sortitions/admin/destroy_sortition_form.rb