Sha256: aaf88273f33c3b2e1b4324c09de9f137aff89148aebb55a2ff893c5cdff2bb90

Contents?: true

Size: 463 Bytes

Versions: 90

Compression:

Stored size: 463 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Admin
    # A form object to create or update attachment collections.
    class AttachmentCollectionForm < Form
      include TranslatableAttributes

      translatable_attribute :name, String
      translatable_attribute :description, String
      attribute :weight, Integer, default: 0

      mimic :attachment_collection

      validates :name, :description, translatable_presence: true
    end
  end
end

Version data entries

90 entries across 90 versions & 1 rubygems

Version Path
decidim-admin-0.25.0.rc4 app/forms/decidim/admin/attachment_collection_form.rb
decidim-admin-0.25.0.rc3 app/forms/decidim/admin/attachment_collection_form.rb
decidim-admin-0.25.0.rc2 app/forms/decidim/admin/attachment_collection_form.rb
decidim-admin-0.25.0.rc1 app/forms/decidim/admin/attachment_collection_form.rb
decidim-admin-0.24.3 app/forms/decidim/admin/attachment_collection_form.rb
decidim-admin-0.23.6 app/forms/decidim/admin/attachment_collection_form.rb
decidim-admin-0.24.2 app/forms/decidim/admin/attachment_collection_form.rb
decidim-admin-0.23.5 app/forms/decidim/admin/attachment_collection_form.rb
decidim-admin-0.24.1 app/forms/decidim/admin/attachment_collection_form.rb
decidim-admin-0.24.0 app/forms/decidim/admin/attachment_collection_form.rb
decidim-admin-0.24.0.rc2 app/forms/decidim/admin/attachment_collection_form.rb
decidim-admin-0.23.4 app/forms/decidim/admin/attachment_collection_form.rb
decidim-admin-0.24.0.rc1 app/forms/decidim/admin/attachment_collection_form.rb
decidim-admin-0.23.3 app/forms/decidim/admin/attachment_collection_form.rb
decidim-admin-0.23.2 app/forms/decidim/admin/attachment_collection_form.rb
decidim-admin-0.23.1 app/forms/decidim/admin/attachment_collection_form.rb
decidim-admin-0.23.1.rc1 app/forms/decidim/admin/attachment_collection_form.rb
decidim-admin-0.23.0 app/forms/decidim/admin/attachment_collection_form.rb
decidim-admin-0.22.0 app/forms/decidim/admin/attachment_collection_form.rb
decidim-admin-0.21.0 app/forms/decidim/admin/attachment_collection_form.rb