Sha256: 21fd57f739116cd5c1aada2b5ea102e7047c6d1b7b2984eb04447b08cc70ebff

Contents?: true

Size: 507 Bytes

Versions: 19

Compression:

Stored size: 507 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Votings
    module Census
      module Admin
        # A form to temporaly upload csv census data
        class DatasetForm < Form
          include Decidim::HasUploadValidations

          mimic :dataset

          attribute :file

          validates_upload :file
          validates :file, presence: true

          def organization
            context.current_participatory_space&.organization
          end
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
decidim-elections-0.26.10 app/forms/decidim/votings/census/admin/dataset_form.rb
decidim-elections-0.26.9 app/forms/decidim/votings/census/admin/dataset_form.rb
decidim-elections-0.26.8 app/forms/decidim/votings/census/admin/dataset_form.rb
decidim-elections-0.26.7 app/forms/decidim/votings/census/admin/dataset_form.rb
decidim-elections-0.26.5 app/forms/decidim/votings/census/admin/dataset_form.rb
decidim-elections-0.26.4 app/forms/decidim/votings/census/admin/dataset_form.rb
decidim-elections-0.26.3 app/forms/decidim/votings/census/admin/dataset_form.rb
decidim-elections-0.26.2 app/forms/decidim/votings/census/admin/dataset_form.rb
decidim-elections-0.26.1 app/forms/decidim/votings/census/admin/dataset_form.rb
decidim-elections-0.26.0 app/forms/decidim/votings/census/admin/dataset_form.rb
decidim-elections-0.26.0.rc2 app/forms/decidim/votings/census/admin/dataset_form.rb
decidim-elections-0.26.0.rc1 app/forms/decidim/votings/census/admin/dataset_form.rb
decidim-elections-0.25.2 app/forms/decidim/votings/census/admin/dataset_form.rb
decidim-elections-0.25.1 app/forms/decidim/votings/census/admin/dataset_form.rb
decidim-elections-0.25.0 app/forms/decidim/votings/census/admin/dataset_form.rb
decidim-elections-0.25.0.rc4 app/forms/decidim/votings/census/admin/dataset_form.rb
decidim-elections-0.25.0.rc3 app/forms/decidim/votings/census/admin/dataset_form.rb
decidim-elections-0.25.0.rc2 app/forms/decidim/votings/census/admin/dataset_form.rb
decidim-elections-0.25.0.rc1 app/forms/decidim/votings/census/admin/dataset_form.rb