Sha256: ec1dbc22cff7a02991746bf17ff9c47f73785a7d3375cab55d857a4c962d2a9a

Contents?: true

Size: 776 Bytes

Versions: 13

Compression:

Stored size: 776 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,
            help_text: t("scope_type_max_depth_help", scope: "decidim.participatory_processes.admin.participatory_processes.form"),
            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

13 entries across 13 versions & 1 rubygems

Version Path
decidim-participatory_processes-0.29.1 app/helpers/decidim/participatory_processes/admin/participatory_process_helper.rb
decidim-participatory_processes-0.28.4 app/helpers/decidim/participatory_processes/admin/participatory_process_helper.rb
decidim-participatory_processes-0.29.0 app/helpers/decidim/participatory_processes/admin/participatory_process_helper.rb
decidim-participatory_processes-0.28.3 app/helpers/decidim/participatory_processes/admin/participatory_process_helper.rb
decidim-participatory_processes-0.29.0.rc4 app/helpers/decidim/participatory_processes/admin/participatory_process_helper.rb
decidim-participatory_processes-0.29.0.rc3 app/helpers/decidim/participatory_processes/admin/participatory_process_helper.rb
decidim-participatory_processes-0.29.0.rc2 app/helpers/decidim/participatory_processes/admin/participatory_process_helper.rb
decidim-participatory_processes-0.29.0.rc1 app/helpers/decidim/participatory_processes/admin/participatory_process_helper.rb
decidim-participatory_processes-0.28.2 app/helpers/decidim/participatory_processes/admin/participatory_process_helper.rb
decidim-participatory_processes-0.28.1 app/helpers/decidim/participatory_processes/admin/participatory_process_helper.rb
decidim-participatory_processes-0.28.0 app/helpers/decidim/participatory_processes/admin/participatory_process_helper.rb
decidim-participatory_processes-0.28.0.rc5 app/helpers/decidim/participatory_processes/admin/participatory_process_helper.rb
decidim-participatory_processes-0.28.0.rc4 app/helpers/decidim/participatory_processes/admin/participatory_process_helper.rb