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.29.1 app/forms/decidim/admin/static_page_topic_form.rb
decidim-admin-0.28.4 app/forms/decidim/admin/static_page_topic_form.rb
decidim-admin-0.27.9 app/forms/decidim/admin/static_page_topic_form.rb
decidim-admin-0.29.0 app/forms/decidim/admin/static_page_topic_form.rb
decidim-admin-0.28.3 app/forms/decidim/admin/static_page_topic_form.rb
decidim-admin-0.27.8 app/forms/decidim/admin/static_page_topic_form.rb
decidim-admin-0.29.0.rc4 app/forms/decidim/admin/static_page_topic_form.rb
decidim-admin-0.29.0.rc3 app/forms/decidim/admin/static_page_topic_form.rb
decidim-admin-0.29.0.rc2 app/forms/decidim/admin/static_page_topic_form.rb
decidim-admin-0.29.0.rc1 app/forms/decidim/admin/static_page_topic_form.rb
decidim-admin-0.28.2 app/forms/decidim/admin/static_page_topic_form.rb
decidim-admin-0.27.7 app/forms/decidim/admin/static_page_topic_form.rb
decidim-admin-0.28.1 app/forms/decidim/admin/static_page_topic_form.rb
decidim-admin-0.27.6 app/forms/decidim/admin/static_page_topic_form.rb
decidim-admin-0.26.10 app/forms/decidim/admin/static_page_topic_form.rb
decidim-admin-0.26.9 app/forms/decidim/admin/static_page_topic_form.rb
decidim-admin-0.28.0 app/forms/decidim/admin/static_page_topic_form.rb
decidim-admin-0.27.5 app/forms/decidim/admin/static_page_topic_form.rb
decidim-admin-0.28.0.rc5 app/forms/decidim/admin/static_page_topic_form.rb
decidim-admin-0.28.0.rc4 app/forms/decidim/admin/static_page_topic_form.rb