Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add clearing feature #54

Merged
merged 2 commits into from
May 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions civiremote_funding.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dependencies:
- cmrf_views
- civiremote
- json_forms
- views_current_path # Requires this patch: https://git.drupalcode.org/project/views_current_path/-/merge_requests/8.patch
'interface translation project': civiremote_funding
'interface translation server pattern': modules/custom/%project/translations/%language.po
version: 0.3.x-dev
28 changes: 28 additions & 0 deletions civiremote_funding.routing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,19 @@ civiremote_funding.application_template_render:
requirements:
_permission: 'civiremote_funding: access'

civiremote_funding.application_clearing:
path: '/civiremote/funding/application/{applicationProcessId}/clearing'
defaults:
_controller: 'Drupal\civiremote_funding\Controller\ClearingController:formByApplicationProcessId'
_title_callback: 'Drupal\civiremote_funding\Controller\ClearingController:title'
options:
no_cache: TRUE
parameters:
applicationProcessId:
type: int
requirements:
_permission: 'civiremote_funding: access'

civiremote_funding.case:
path: '/civiremote/funding/case/{fundingCaseId}'
defaults:
Expand Down Expand Up @@ -123,6 +136,21 @@ civiremote_funding.case_application_history:
requirements:
_permission: 'civiremote_funding: access'

civiremote_funding.case_application_clearing:
path: '/civiremote/funding/case/{fundingCaseId}/application/{applicationProcessId}/clearing'
defaults:
_controller: 'Drupal\civiremote_funding\Controller\ClearingController:formByApplicationProcessId'
_title_callback: 'Drupal\civiremote_funding\Controller\ClearingController:title'
options:
no_cache: TRUE
parameters:
fundingCaseId:
type: int
applicationProcessId:
type: int
requirements:
_permission: 'civiremote_funding: access'

civiremote_funding.token_file_download:
path: '/civiremote/funding/file/{token}/{filename}'
defaults:
Expand Down
8 changes: 8 additions & 0 deletions civiremote_funding.services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ services:
class: Drupal\civiremote_funding\Controller\NewApplicationController
public: true

Drupal\civiremote_funding\Controller\ClearingController:
class: Drupal\civiremote_funding\Controller\ClearingController
public: true

Drupal\civiremote_funding\Controller\FundingCaseController:
class: Drupal\civiremote_funding\Controller\FundingCaseController
public: true
Expand All @@ -84,6 +88,10 @@ services:
class: Drupal\civiremote_funding\Form\RequestHandler\ApplicationFormRequestHandler
public: true

Drupal\civiremote_funding\Form\RequestHandler\ClearingFormRequestHandler:
class: Drupal\civiremote_funding\Form\RequestHandler\ClearingFormRequestHandler
public: true

Drupal\civiremote_funding\Form\RequestHandler\NewFundingCaseFormRequestHandler:
class: Drupal\civiremote_funding\Form\RequestHandler\NewFundingCaseFormRequestHandler
public: true
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
"beberlei/assert": "*",
"custom/civiremote": "^1.0@beta",
"drupal/cmrf_core": "^2.1@beta",
"drupal/json_forms": "~0.1"
"drupal/json_forms": "~0.1",
"drupal/views_current_path": "^3.0"
},
"require-dev": {
"drupal/core": "^9.5 || ^10",
Expand Down
Loading