Sha256: 05eb7fb25550b1e7c650e66c40fe6c23467dabbd043071c899a823a587efd21c

Contents?: true

Size: 580 Bytes

Versions: 69

Compression:

Stored size: 580 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Meetings
    module Admin
      # This class holds a Form to update meeting services
      class MeetingServiceForm < Decidim::Form
        include TranslatableAttributes

        attribute :deleted, Boolean, default: false

        translatable_attribute :title, String
        translatable_attribute :description, String

        validates :title, translatable_presence: true, unless: :deleted

        def to_param
          return id if id.present?

          "meeting-service-id"
        end
      end
    end
  end
end

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
decidim-meetings-0.29.1 app/forms/decidim/meetings/admin/meeting_service_form.rb
decidim-meetings-0.28.4 app/forms/decidim/meetings/admin/meeting_service_form.rb
decidim-meetings-0.27.9 app/forms/decidim/meetings/admin/meeting_service_form.rb
decidim-meetings-0.29.0 app/forms/decidim/meetings/admin/meeting_service_form.rb
decidim-meetings-0.28.3 app/forms/decidim/meetings/admin/meeting_service_form.rb
decidim-meetings-0.27.8 app/forms/decidim/meetings/admin/meeting_service_form.rb
decidim-meetings-0.29.0.rc4 app/forms/decidim/meetings/admin/meeting_service_form.rb
decidim-meetings-0.29.0.rc3 app/forms/decidim/meetings/admin/meeting_service_form.rb
decidim-meetings-0.29.0.rc2 app/forms/decidim/meetings/admin/meeting_service_form.rb
decidim-meetings-0.29.0.rc1 app/forms/decidim/meetings/admin/meeting_service_form.rb
decidim-meetings-0.28.2 app/forms/decidim/meetings/admin/meeting_service_form.rb
decidim-meetings-0.27.7 app/forms/decidim/meetings/admin/meeting_service_form.rb
decidim-meetings-0.28.1 app/forms/decidim/meetings/admin/meeting_service_form.rb
decidim-meetings-0.27.6 app/forms/decidim/meetings/admin/meeting_service_form.rb
decidim-meetings-0.26.10 app/forms/decidim/meetings/admin/meeting_service_form.rb
decidim-meetings-0.26.9 app/forms/decidim/meetings/admin/meeting_service_form.rb
decidim-meetings-0.28.0 app/forms/decidim/meetings/admin/meeting_service_form.rb
decidim-meetings-0.27.5 app/forms/decidim/meetings/admin/meeting_service_form.rb
decidim-meetings-0.28.0.rc5 app/forms/decidim/meetings/admin/meeting_service_form.rb
decidim-meetings-0.28.0.rc4 app/forms/decidim/meetings/admin/meeting_service_form.rb