Sha256: 19835262639953741ad311a0b46361f19d2295b951f56a8a0efaca2ccc1baa24
Contents?: true
Size: 1.16 KB
Versions: 13
Compression:
Stored size: 1.16 KB
Contents
# frozen_string_literal: true module Decidim module ParticipatoryProcesses module Admin # Controller that allows managing the participatory process landing page class ParticipatoryProcessLandingPageController < Decidim::ParticipatoryProcesses::Admin::ApplicationController include Decidim::Admin::ContentBlocks::LandingPage include Concerns::ParticipatoryProcessAdmin layout "decidim/admin/participatory_process" def content_block_scope current_participatory_space_manifest.content_blocks_scope_name end alias scoped_resource current_participatory_space def enforce_permission_to_update_resource enforce_permission_to :update, :process, process: scoped_resource end def resource_sort_url participatory_process_landing_page_path(scoped_resource) end def resource_create_url(manifest_name) participatory_process_landing_page_content_blocks_path(slug: params[:slug], manifest_name:) end def resource_content_block_cell "decidim/participatory_processes/content_block" end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems