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
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
}
},
"require": {
"drupal/bootstrap": "^3.23",
"drupal/gin": "^3.0",
"drupal/core": "^8",
"os2forms/os2forms": "^2.6",
"os2forms/os2forms_forloeb": "^1.3",
"os2forms/os2forms_forloeb": "^1.7",
"os2web/os2web_simplesaml": "8.x-dev"
}
}
7 changes: 7 additions & 0 deletions config/install/core.date_format.long.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
langcode: da
status: true
dependencies: { }
id: long
label: 'Default long date'
locked: false
pattern: 'l, j. F, Y - H:i'
7 changes: 7 additions & 0 deletions config/install/core.date_format.medium.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
langcode: da
status: true
dependencies: { }
id: medium
label: 'Default medium date'
locked: false
pattern: 'D, d/m/Y - H:i'
7 changes: 7 additions & 0 deletions config/install/core.date_format.short.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
langcode: da
status: true
dependencies: { }
id: short
label: 'Default short date'
locked: false
pattern: 'd/m/Y - H:i'
11 changes: 11 additions & 0 deletions config/install/user.role.borger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
langcode: da
status: true
dependencies: { }
id: borger
label: Borger
weight: 10
is_admin: null
permissions:
- 'access content'
- 'display eu cookie compliance popup'
- 'use text format restricted_html'
29 changes: 24 additions & 5 deletions config/install/user.role.flowdesigner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,26 @@ langcode: da
status: true
dependencies: { }
id: flowdesigner
label: 'Flowdesigner'
label: Flowdesigner
weight: 4
is_admin: null
permissions:
- 'access any webform configuration'
- 'access content overview'
- 'access contextual links'
- 'access files overview'
- 'access own webform configuration'
- 'access site in maintenance mode'
- 'access toolbar'
- 'access webform overview'
- 'access webform submission user'
- 'add maestro entity identifiers entities'
- 'add maestro process entities'
- 'add maestro production assignment entities'
- 'add maestro queue entities'
- 'administer block_content display'
- 'administer block_content form display'
- 'administer content types'
- 'administer display modes'
- 'administer maestro entity identifiers entities'
- 'administer maestro production assignment entities'
Expand All @@ -32,24 +37,38 @@ permissions:
- 'administer taxonomy_term form display'
- 'administer user display'
- 'administer user form display'
- 'administer webform'
- 'administer webform element access'
- 'administer webform revisions'
- 'administer webform submission'
- 'administer webform templates'
- 'bypass entity print access'
- 'bypass honeypot protection'
- 'create webform'
- 'delete any webform'
- 'delete any webform submission'
- 'delete maestro entity identifiers entities'
- 'delete maestro process entities'
- 'delete maestro production assignment entities'
- 'delete maestro queue entities'
- 'delete own webform'
- 'delete own webform submission'
- 'delete webform submissions any node'
- 'delete webform submissions own node'
- 'edit any webform'
- 'edit any webform submission'
- 'edit maestro entity identifiers entities'
- 'edit maestro process entities'
- 'edit maestro production assignment entities'
- 'edit maestro queue entities'
- 'edit own webform'
- 'edit own webform submission'
- 'edit webform assets'
- 'edit webform submissions any node'
- 'edit webform submissions own node'
- 'edit webform twig'
- 'entity print access bundle contact'
- 'entity print access bundle hk_grundskabelon'
- 'entity print access bundle template_contact'
- 'entity print access bundle template_employee_evaluation'
- 'entity print access bundle template_feedback'
Expand All @@ -61,7 +80,6 @@ permissions:
- 'entity print access bundle template_session_evaluation'
- 'entity print access bundle template_subscribe'
- 'entity print access bundle template_user_profile'
- 'entity print access bundle hk_grundskabelon'
- 'entity print access bundle webform'
- 'entity print access type block_content'
- 'entity print access type content_moderation_state'
Expand All @@ -78,29 +96,30 @@ permissions:
- 'entity print access type taxonomy_term'
- 'entity print access type user'
- 'entity print access type webform_submission'
- 'manage own workflow participants'
- 'import configuration'
- 'manage own workflow participants'
- 'search content'
- 'start maestro process'
- 'start template form_approval_flow'
- 'start template simple_parallel_to_serial'
- 'start template tildeling_og_notifikationer'
- 'start template test_flow'
- 'start template tildeling_og_notifikationer'
- 'translate interface'
- 'use advanced search'
- 'use text format full_html'
- 'use udgivelse_af_forlob_og_webformularer transition create_new_draft'
- 'use udgivelse_af_forlob_og_webformularer transition publish'
- 'use udgivelse_af_forlob_og_webformularer transition unpublish'
- 'view any unpublished content'
- 'view any webform submission'
- 'view latest version'
- 'view maestro entity identifiers entities'
- 'view maestro process entities'
- 'view maestro production assignment entities'
- 'view maestro queue entities'
- 'view maestro task console'
- 'view own unpublished content'
- 'view own webform submission'
- 'view the administration theme'
- 'view webform submissions any node'
- 'view webform submissions own node'

5 changes: 5 additions & 0 deletions config/install/user.role.selvbetjeningsdesigner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ permissions:
- 'access webform submission user'
- 'administer block_content display'
- 'administer block_content form display'
- 'administer content types'
- 'administer display modes'
- 'administer node display'
- 'administer node form display'
Expand Down Expand Up @@ -92,6 +93,10 @@ permissions:
- 'use udgivelse_af_forlob_og_webformularer transition unpublish'
- 'use udgivelse_af_forloeb transition create_new_draft'
- 'use udgivelse_af_forloeb transition publish'
- 'use udgivelse_af_selvbetjeningsside transition create_new_draft'
- 'use udgivelse_af_selvbetjeningsside transition publish'
- 'use udgivelse_af_selvbetjeningsside transition republish'
- 'use udgivelse_af_selvbetjeningsside transition unpublish'
- 'view any unpublished content'
- 'view any webform submission'
- 'view latest version'
Expand Down
5 changes: 0 additions & 5 deletions os2forms_forloeb_profile.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,6 @@ install:
- maestro_webform
- masquerade
- os2web_simplesaml
- rules
- rules_token
- rules_webform
- switch_page_theme
- ultimate_cron

Expand All @@ -119,5 +116,3 @@ install:
themes:
- gin
- claro
- bootstrap
- custom_theme
18 changes: 18 additions & 0 deletions os2forms_forloeb_profile.install
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,24 @@ function os2forms_forloeb_profile_install() {
// We install some menu links, so we have to rebuild the router, to ensure the
// menu links are valid.
\Drupal::service('router.builder')->rebuildIfNeeded();

// set Gin as default theme
$theme_list = [
'claro',
'gin'
];

// Install themes
\Drupal::service('theme_installer')->install($theme_list);

// Get theme manager
$system_theme = \Drupal::configFactory()->getEditable('system.theme');

// Set default and admin themes
$system_theme
->set('default', 'gin')
->set('admin', 'gin')
->save();
}

/**
Expand Down