Sha256: b04a9b0fd4120e72ea83e937badd15d764391cc96ebdf4762a0910a882255934

Contents?: true

Size: 395 Bytes

Versions: 52

Compression:

Stored size: 395 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Templates
    module Admin
      # This class holds a Form to update templates.
      class TemplateForm < Decidim::Form
        include TranslatableAttributes

        translatable_attribute :name, String
        translatable_attribute :description, String

        validates :name, translatable_presence: true
      end
    end
  end
end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
decidim-templates-0.28.4 app/forms/decidim/templates/admin/template_form.rb
decidim-templates-0.27.9 app/forms/decidim/templates/admin/template_form.rb
decidim-templates-0.28.3 app/forms/decidim/templates/admin/template_form.rb
decidim-templates-0.27.8 app/forms/decidim/templates/admin/template_form.rb
decidim-templates-0.28.2 app/forms/decidim/templates/admin/template_form.rb
decidim-templates-0.27.7 app/forms/decidim/templates/admin/template_form.rb
decidim-templates-0.28.1 app/forms/decidim/templates/admin/template_form.rb
decidim-templates-0.27.6 app/forms/decidim/templates/admin/template_form.rb
decidim-templates-0.26.10 app/forms/decidim/templates/admin/template_form.rb
decidim-templates-0.26.9 app/forms/decidim/templates/admin/template_form.rb
decidim-templates-0.28.0 app/forms/decidim/templates/admin/template_form.rb
decidim-templates-0.27.5 app/forms/decidim/templates/admin/template_form.rb
decidim-templates-0.28.0.rc5 app/forms/decidim/templates/admin/template_form.rb
decidim-templates-0.28.0.rc4 app/forms/decidim/templates/admin/template_form.rb
decidim-templates-0.26.8 app/forms/decidim/templates/admin/template_form.rb
decidim-templates-0.27.4 app/forms/decidim/templates/admin/template_form.rb
decidim-templates-0.27.3 app/forms/decidim/templates/admin/template_form.rb
decidim-templates-0.26.7 app/forms/decidim/templates/admin/template_form.rb
decidim-templates-0.26.5 app/forms/decidim/templates/admin/template_form.rb
decidim-templates-0.27.2 app/forms/decidim/templates/admin/template_form.rb