Sha256: 44f73bc87953d1f598d3e429d3fc892de8c870dc7a87c79c9a4dd9c43baac2fe

Contents?: true

Size: 454 Bytes

Versions: 71

Compression:

Stored size: 454 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Admin
    # A form object to create or update pages.
    class StaticPageTopicForm < Form
      include TranslatableAttributes

      translatable_attribute :title, String
      translatable_attribute :description, String
      attribute :show_in_footer, Boolean
      attribute :weight, Integer

      mimic :static_page_topic

      validates :title, translatable_presence: true
    end
  end
end

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
decidim-admin-0.26.8 app/forms/decidim/admin/static_page_topic_form.rb
decidim-admin-0.27.4 app/forms/decidim/admin/static_page_topic_form.rb
decidim-admin-0.27.3 app/forms/decidim/admin/static_page_topic_form.rb
decidim-admin-0.26.7 app/forms/decidim/admin/static_page_topic_form.rb
decidim-admin-0.26.5 app/forms/decidim/admin/static_page_topic_form.rb
decidim-admin-0.27.2 app/forms/decidim/admin/static_page_topic_form.rb
decidim-admin-0.27.1 app/forms/decidim/admin/static_page_topic_form.rb
decidim-admin-0.26.4 app/forms/decidim/admin/static_page_topic_form.rb
decidim-admin-0.27.0 app/forms/decidim/admin/static_page_topic_form.rb
decidim-admin-0.26.3 app/forms/decidim/admin/static_page_topic_form.rb
decidim-admin-0.27.0.rc2 app/forms/decidim/admin/static_page_topic_form.rb
decidim-admin-0.27.0.rc1 app/forms/decidim/admin/static_page_topic_form.rb
decidim-admin-0.26.2 app/forms/decidim/admin/static_page_topic_form.rb
decidim-admin-0.26.1 app/forms/decidim/admin/static_page_topic_form.rb
decidim-admin-0.26.0 app/forms/decidim/admin/static_page_topic_form.rb
decidim-admin-0.26.0.rc2 app/forms/decidim/admin/static_page_topic_form.rb
decidim-admin-0.26.0.rc1 app/forms/decidim/admin/static_page_topic_form.rb
decidim-admin-0.25.2 app/forms/decidim/admin/static_page_topic_form.rb
decidim-admin-0.25.1 app/forms/decidim/admin/static_page_topic_form.rb
decidim-admin-0.25.0 app/forms/decidim/admin/static_page_topic_form.rb