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.26.8 app/forms/decidim/meetings/admin/meeting_service_form.rb
decidim-meetings-0.27.4 app/forms/decidim/meetings/admin/meeting_service_form.rb
decidim-meetings-0.27.3 app/forms/decidim/meetings/admin/meeting_service_form.rb
decidim-meetings-0.26.7 app/forms/decidim/meetings/admin/meeting_service_form.rb
decidim-meetings-0.26.5 app/forms/decidim/meetings/admin/meeting_service_form.rb
decidim-meetings-0.27.2 app/forms/decidim/meetings/admin/meeting_service_form.rb
decidim-meetings-0.27.1 app/forms/decidim/meetings/admin/meeting_service_form.rb
decidim-meetings-0.26.4 app/forms/decidim/meetings/admin/meeting_service_form.rb
decidim-meetings-0.27.0 app/forms/decidim/meetings/admin/meeting_service_form.rb
decidim-meetings-0.26.3 app/forms/decidim/meetings/admin/meeting_service_form.rb
decidim-meetings-0.27.0.rc2 app/forms/decidim/meetings/admin/meeting_service_form.rb
decidim-meetings-0.27.0.rc1 app/forms/decidim/meetings/admin/meeting_service_form.rb
decidim-meetings-0.26.2 app/forms/decidim/meetings/admin/meeting_service_form.rb
decidim-meetings-0.26.1 app/forms/decidim/meetings/admin/meeting_service_form.rb
decidim-meetings-0.26.0 app/forms/decidim/meetings/admin/meeting_service_form.rb
decidim-meetings-0.26.0.rc2 app/forms/decidim/meetings/admin/meeting_service_form.rb
decidim-meetings-0.26.0.rc1 app/forms/decidim/meetings/admin/meeting_service_form.rb
decidim-meetings-0.25.2 app/forms/decidim/meetings/admin/meeting_service_form.rb
decidim-meetings-0.25.1 app/forms/decidim/meetings/admin/meeting_service_form.rb
decidim-meetings-0.25.0 app/forms/decidim/meetings/admin/meeting_service_form.rb