Skip to content
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
10 changes: 10 additions & 0 deletions .ddev/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ hooks:
- exec: COMPOSER=composer.lenient.json composer config --no-plugins allow-plugins.mglaman/composer-drupal-lenient true
- exec: COMPOSER=composer.lenient.json composer require mglaman/composer-drupal-lenient:^1.0
- exec: rm -f composer.lenient.*

# Drupal private files needed to enable file webform element
- exec: mkdir -p web/sites/default/files/private
- exec: |
cat >> web/sites/default/settings.ddev.php <<'EOF'

// Added by DDEV post-start hook
$settings['file_private_path'] = $app_root . '/' . $site_path . '/files/private';
EOF

use_dns_when_possible: true
composer_version: "2"
web_environment: []
Expand Down
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.0.0] - 2026-09-28
## [1.0.0] - 2026-11-04

* [PR-13](https://github.com/itk-dev/os2forms_f2/pull/13)
* Handled matter access level
* Added title length validation
* [PR-11](https://github.com/itk-dev/os2forms_f2/pull/11)
* Cleaned up identification of cases and matters
* Set default matter type ("Internal")
Expand Down
20 changes: 18 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,22 @@ and store cassettes in `tests/vcr-cassettes`.

---

``` shell
ddev dotenv set .env.local --os2forms-f2-test=value
## Feature flags

Some features are not yet ready for production, but can be enabled by settings in `settings.local.php`:

``` php
# settings.local.php
// Enable setting responsible party on matter
$settings['os2forms_f2']['archive']['matter_responsible_party_identifier']['enabled'] = TRUE;
```

## Global settings

If need be, the user manual URLs can be overridden in `settings.local.php`:

``` php
# settings.local.php
$settings['os2forms_f2']['user_manual']['url'] = 'https://os2form_f2.user-manual.example.com';
$settings['os2forms_f2']['user_manual']['url_form_builder'] = 'https://os2form_f2.user-manual.example.com/form-builder';
```
2 changes: 1 addition & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ tasks:
- |
ddev exec sed --in-place 's/id: node_type$/id: entity_bundle:node/' */modules/contrib/os2forms/config/optional/pathauto.pattern.os2forms_wf_webforms.yml

- ddev drush --yes pm:install os2forms_f2 os2forms_f2_examples os2forms_f2_test drupal_translation_extractor
- ddev drush --yes pm:install os2forms_f2 os2forms_f2_examples os2forms_f2_test drupal_translation_extractor itkdev_advancedqueue_addons

# Some defaults
- ddev drush --yes config:set os2forms_f2.settings f2_api.log_level debug
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"drupal/coder": "^9.0",
"ergebnis/composer-normalize": "^2.54",
"itk-dev/drupal_translation_extractor": "^2.0",
"itk-dev/itkdev_advancedqueue_addons": "^1.0",
"mglaman/composer-drupal-lenient": "^1.0",
"mglaman/phpstan-drupal": "^2.2",
"palantirnet/drupal-rector": "^1.1",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ handlers:
case_identifier: '2026 - 1234567890'
matter_title: 'Matter: [webform_submission:label] ([site:url]) – [current-date:html_datetime]'
matter_type: Internal
matter_access_level: All
additional:
states:
- completed
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,250 @@
langcode: da
status: open
dependencies:
module:
- os2forms_f2
enforced:
module:
- os2forms_f2_examples
weight: 0
open: null
close: null
uid: 0
template: false
archive: false
id: os2forms_f2_ex_002
title: 'F2 (archive on case with files)'
description: null
categories: { }
elements: |-
name:
'#type': textfield
'#title': Name
'#required': true
attachment:
'#type': os2forms_attachment
'#title': attachment
'#export_type': pdf
'#digital_signature': 0
'#excluded_elements': { }
'#exclude_empty': 0
'#exclude_empty_checkbox': 0
files:
'#type': managed_file
'#title': File
'#multiple': true
images:
'#type': webform_image_file
'#title': Image
documents:
'#type': webform_document_file
'#title': Documents
'#multiple': true
css: ''
javascript: ''
settings:
ajax: false
ajax_scroll_top: form
ajax_progress_type: ''
ajax_effect: ''
ajax_speed: null
page: true
page_submit_path: ''
page_confirm_path: ''
page_theme_name: ''
form_title: both
form_submit_once: false
form_open_message: ''
form_close_message: ''
form_exception_message: ''
form_previous_submissions: true
form_confidential: false
form_confidential_message: ''
form_disable_remote_addr: false
form_convert_anonymous: false
form_prepopulate: false
form_prepopulate_source_entity: false
form_prepopulate_source_entity_required: false
form_prepopulate_source_entity_type: ''
form_unsaved: false
form_disable_back: false
form_submit_back: false
form_disable_autocomplete: false
form_novalidate: false
form_disable_inline_errors: false
form_required: false
form_autofocus: false
form_details_toggle: false
form_reset: false
form_access_denied: default
form_access_denied_title: ''
form_access_denied_message: ''
form_access_denied_attributes: { }
form_file_limit: ''
form_attributes: { }
form_method: ''
form_action: ''
share: false
share_node: false
share_theme_name: ''
share_title: true
share_page_body_attributes: { }
submission_label: ''
submission_exception_message: ''
submission_locked_message: ''
submission_log: false
submission_excluded_elements: { }
submission_exclude_empty: false
submission_exclude_empty_checkbox: false
submission_views: { }
submission_views_replace: { }
submission_user_columns: { }
submission_user_duplicate: false
submission_access_denied: default
submission_access_denied_title: ''
submission_access_denied_message: ''
submission_access_denied_attributes: { }
previous_submission_message: ''
previous_submissions_message: ''
autofill: false
autofill_message: ''
autofill_excluded_elements: { }
wizard_progress_bar: true
wizard_progress_pages: false
wizard_progress_percentage: false
wizard_progress_link: false
wizard_progress_states: false
wizard_start_label: ''
wizard_preview_link: false
wizard_confirmation: true
wizard_confirmation_label: ''
wizard_auto_forward: true
wizard_auto_forward_hide_next_button: false
wizard_keyboard: true
wizard_track: ''
wizard_prev_button_label: ''
wizard_next_button_label: ''
wizard_toggle: false
wizard_toggle_show_label: ''
wizard_toggle_hide_label: ''
wizard_page_type: container
wizard_page_title_tag: h2
preview: 0
preview_label: ''
preview_title: ''
preview_message: ''
preview_attributes: { }
preview_excluded_elements: { }
preview_exclude_empty: true
preview_exclude_empty_checkbox: false
draft: none
draft_multiple: false
draft_auto_save: false
draft_saved_message: ''
draft_loaded_message: ''
draft_pending_single_message: ''
draft_pending_multiple_message: ''
confirmation_type: page
confirmation_url: ''
confirmation_title: ''
confirmation_message: ''
confirmation_attributes: { }
confirmation_back: true
confirmation_back_label: ''
confirmation_back_attributes: { }
confirmation_exclude_query: false
confirmation_exclude_token: false
confirmation_update: false
limit_total: null
limit_total_interval: null
limit_total_message: ''
limit_total_unique: false
limit_user: null
limit_user_interval: null
limit_user_message: ''
limit_user_unique: false
entity_limit_total: null
entity_limit_total_interval: null
entity_limit_user: null
entity_limit_user_interval: null
purge: all
purge_days: 30
results_disabled: false
results_disabled_ignore: false
results_customize: false
token_view: false
token_update: false
token_delete: false
serial_disabled: false
access:
create:
roles:
- anonymous
- authenticated
users: { }
permissions: { }
view_any:
roles: { }
users: { }
permissions: { }
update_any:
roles: { }
users: { }
permissions: { }
delete_any:
roles: { }
users: { }
permissions: { }
purge_any:
roles: { }
users: { }
permissions: { }
view_own:
roles: { }
users: { }
permissions: { }
update_own:
roles: { }
users: { }
permissions: { }
delete_own:
roles: { }
users: { }
permissions: { }
administer:
roles: { }
users: { }
permissions: { }
test:
roles: { }
users: { }
permissions: { }
configuration:
roles: { }
users: { }
permissions: { }
handlers:
f2_archive_on_case:
id: os2forms_f2_f2
handler_id: f2_archive_on_case
label: 'F2 (arkivér på sag)'
notes: ''
status: true
conditions: { }
weight: 1
settings:
archive:
attachment_element: attachment
document_title: '[webform_submission:label] ([site:url]) – [current-date:html_datetime]'
archive_files: 1
file_document_title: '[file:element:title]: [file:filename]'
archive_target: case
archive_target_case:
case_identifier: '2026 - 1234567890'
matter_title: 'Matter: [webform_submission:label] ([site:url]) – [current-date:html_datetime]'
matter_type: Internal
matter_access_level: All
additional:
states:
- completed
variants: { }
Loading
Loading