Sha256: 2b81ecb8d97b85953501aac37291ca4663904e41c32b9434639cbc1cc6c1452d

Contents?: true

Size: 458 Bytes

Versions: 44

Compression:

Stored size: 458 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Blogs
    module Admin
      # This class holds a Form to update pages from Decidim's admin panel.
      class PostForm < Decidim::Form
        include TranslatableAttributes

        translatable_attribute :title, String
        translatable_attribute :body, String

        validates :title, translatable_presence: true
        validates :body, translatable_presence: true
      end
    end
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
decidim-blogs-0.24.3 app/forms/decidim/blogs/admin/post_form.rb
decidim-blogs-0.23.6 app/forms/decidim/blogs/admin/post_form.rb
decidim-blogs-0.24.2 app/forms/decidim/blogs/admin/post_form.rb
decidim-blogs-0.23.5 app/forms/decidim/blogs/admin/post_form.rb
decidim-blogs-0.24.1 app/forms/decidim/blogs/admin/post_form.rb
decidim-blogs-0.24.0 app/forms/decidim/blogs/admin/post_form.rb
decidim-blogs-0.24.0.rc2 app/forms/decidim/blogs/admin/post_form.rb
decidim-blogs-0.23.4 app/forms/decidim/blogs/admin/post_form.rb
decidim-blogs-0.24.0.rc1 app/forms/decidim/blogs/admin/post_form.rb
decidim-blogs-0.23.3 app/forms/decidim/blogs/admin/post_form.rb
decidim-blogs-0.23.2 app/forms/decidim/blogs/admin/post_form.rb
decidim-blogs-0.23.1 app/forms/decidim/blogs/admin/post_form.rb
decidim-blogs-0.23.1.rc1 app/forms/decidim/blogs/admin/post_form.rb
decidim-blogs-0.23.0 app/forms/decidim/blogs/admin/post_form.rb
decidim-blogs-0.22.0 app/forms/decidim/blogs/admin/post_form.rb
decidim-blogs-0.21.0 app/forms/decidim/blogs/admin/post_form.rb
decidim-blogs-0.20.1 app/forms/decidim/blogs/admin/post_form.rb
decidim-blogs-0.20.0 app/forms/decidim/blogs/admin/post_form.rb
decidim-blogs-0.19.1 app/forms/decidim/blogs/admin/post_form.rb
decidim-blogs-0.18.1 app/forms/decidim/blogs/admin/post_form.rb