Sha256: a429330dc1bcf799c4529d5ed896678336cc3ef48eecb11949136243e313731e

Contents?: true

Size: 644 Bytes

Versions: 47

Compression:

Stored size: 644 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module ParticipatoryProcesses
    module Admin
      # Helpers related to the Admin of Participatory Process layout.
      module ParticipatoryProcessHelper
        def scope_type_depth_select_options
          {
            include_blank: true,
            selected: current_participatory_process.try(:decidim_scope_type_id)
          }
        end

        def scope_type_depth_select_html_options
          html_options = {}
          html_options[:disabled] = "disabled" unless current_participatory_process.try(:scopes_enabled)
          html_options
        end
      end
    end
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
decidim-participatory_processes-0.27.9 app/helpers/decidim/participatory_processes/admin/participatory_process_helper.rb
decidim-participatory_processes-0.27.8 app/helpers/decidim/participatory_processes/admin/participatory_process_helper.rb
decidim-participatory_processes-0.27.7 app/helpers/decidim/participatory_processes/admin/participatory_process_helper.rb
decidim-participatory_processes-0.27.6 app/helpers/decidim/participatory_processes/admin/participatory_process_helper.rb
decidim-participatory_processes-0.26.10 app/helpers/decidim/participatory_processes/admin/participatory_process_helper.rb
decidim-participatory_processes-0.26.9 app/helpers/decidim/participatory_processes/admin/participatory_process_helper.rb
decidim-participatory_processes-0.27.5 app/helpers/decidim/participatory_processes/admin/participatory_process_helper.rb
decidim-participatory_processes-0.26.8 app/helpers/decidim/participatory_processes/admin/participatory_process_helper.rb
decidim-participatory_processes-0.27.4 app/helpers/decidim/participatory_processes/admin/participatory_process_helper.rb
decidim-participatory_processes-0.27.3 app/helpers/decidim/participatory_processes/admin/participatory_process_helper.rb
decidim-participatory_processes-0.26.7 app/helpers/decidim/participatory_processes/admin/participatory_process_helper.rb
decidim-participatory_processes-0.26.5 app/helpers/decidim/participatory_processes/admin/participatory_process_helper.rb
decidim-participatory_processes-0.27.2 app/helpers/decidim/participatory_processes/admin/participatory_process_helper.rb
decidim-participatory_processes-0.27.1 app/helpers/decidim/participatory_processes/admin/participatory_process_helper.rb
decidim-participatory_processes-0.26.4 app/helpers/decidim/participatory_processes/admin/participatory_process_helper.rb
decidim-participatory_processes-0.27.0 app/helpers/decidim/participatory_processes/admin/participatory_process_helper.rb
decidim-participatory_processes-0.26.3 app/helpers/decidim/participatory_processes/admin/participatory_process_helper.rb
decidim-participatory_processes-0.27.0.rc2 app/helpers/decidim/participatory_processes/admin/participatory_process_helper.rb
decidim-participatory_processes-0.27.0.rc1 app/helpers/decidim/participatory_processes/admin/participatory_process_helper.rb
decidim-participatory_processes-0.26.2 app/helpers/decidim/participatory_processes/admin/participatory_process_helper.rb