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

Development #225

Open
wants to merge 310 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
310 commits
Select commit Hold shift + click to select a range
cee6c50
Implement Material Symbols Outlined local
Rayvented Nov 14, 2023
91d8ae6
Redesign no team page
Rayvented Nov 14, 2023
3ed5078
Fix menu academy
Rayvented Nov 14, 2023
82bf1a1
Desgin a lot of index pages (set title, cta, data table)
Rayvented Nov 16, 2023
ef69276
Fix current item in sidebar for team admin
Rayvented Nov 16, 2023
8f0d3e3
Fix btn-create in report/index
Rayvented Nov 16, 2023
0e87785
Redesign modals for datenweitergabe
Rayvented Nov 16, 2023
a5bf998
Style a lot of pages (team admin, academy, report)
Rayvented Nov 17, 2023
5a883cb
Style question add answers
Rayvented Nov 20, 2023
1014203
Style remote content modals + install Stimulus Controller
Rayvented Nov 20, 2023
7aa3207
It's Winter. Replace summernote with trix (applied in task/form)
Rayvented Nov 20, 2023
af0e75a
Add class .editor-output
Rayvented Nov 21, 2023
4d97c7a
Truncate t.task output in task table (+ composer require twig/string-…
Rayvented Nov 21, 2023
e3e209b
Truncate t.task output in task table
Rayvented Nov 21, 2023
1df008f
Style some edit pages (audit_tom, tom)
Rayvented Nov 21, 2023
d3d1634
Style VVT new form
Rayvented Nov 21, 2023
f271f23
Fix undefined snack variable
Rayvented Nov 21, 2023
376d4d3
Style kontakt form
Rayvented Nov 21, 2023
130ba33
Fix undefined snack variable
Rayvented Nov 21, 2023
1c1eade
Remove layer classes from other css files
Rayvented Nov 21, 2023
12f359b
Enable dashboard flowchart
Rayvented Nov 23, 2023
1b484a7
add null as initial value for an academy team in the user entity
h2Entwicklung Nov 23, 2023
8c564ff
Merge remote-tracking branch 'origin/feature/fix-add-memeber-to-akade…
Rayvented Nov 23, 2023
23defde
Fix sidebar for academy user
Rayvented Nov 23, 2023
389b4ba
Fix default value for Participation.passed (set false)
Rayvented Nov 23, 2023
3070cc4
Resign akademie kurs
Rayvented Nov 23, 2023
1c36cab
Some smaller design updates
Rayvented Nov 24, 2023
a389aca
Remove dark mode from tailmater css
Reimar75 Nov 24, 2023
a676640
Redesign dashboard
Reimar75 Nov 24, 2023
08d439f
Fix commenting client request
Rayvented Nov 27, 2023
267fbc8
Fix commenting client request
Rayvented Nov 27, 2023
58fe5de
Style client request pages
Rayvented Nov 27, 2023
13647f1
Style assignment tabs
Rayvented Nov 27, 2023
e31f66c
Responsive data tables
Rayvented Nov 27, 2023
dcd1492
Fix tab nav width
Rayvented Nov 27, 2023
51bcebc
Style item history
Rayvented Nov 28, 2023
4a57889
Remove dark style in snackbar
Rayvented Nov 28, 2023
73f754a
Remove dark style in team toggle
Rayvented Nov 28, 2023
994ed22
Fix hover text colors for quick access buttons
Rayvented Nov 28, 2023
6741fc8
Remove dark style in topnav
Rayvented Nov 28, 2023
5446ccb
Add more space to content container
Rayvented Nov 28, 2023
56caa6b
Style loeschkonzept
Rayvented Nov 28, 2023
64a6dec
Style policies
Rayvented Nov 28, 2023
7e8ff30
Style datenweitergabe
Rayvented Nov 28, 2023
894a51d
Add back buttons for auftragsverarbeitung
Rayvented Nov 28, 2023
d7ef2ec
Style software
Rayvented Nov 30, 2023
1d5870d
Remove bootstrap_4_layout config
Rayvented Dec 1, 2023
60eba7c
Style forms, report, vorfall
Rayvented Dec 1, 2023
998ed50
Redesign misc
Rayvented Dec 1, 2023
d80f6aa
Update css table links
Rayvented Dec 1, 2023
7852999
Update css table
Rayvented Dec 1, 2023
eb95d04
Style vvt edit
Rayvented Dec 1, 2023
a25d50f
Fix undefined team var in /no_team page
Rayvented Dec 4, 2023
81fe413
Create toggle for full width layout and apply for data tables
Rayvented Dec 4, 2023
c08f5ee
Update css for stacked list (compressed)
Rayvented Dec 4, 2023
9e28437
Include snack message template only in base.html.twig
Rayvented Dec 4, 2023
408950f
Create a BaseController
Rayvented Dec 4, 2023
82b1614
Move snack messages to flash messages
Rayvented Dec 4, 2023
6e59428
Set full width layout for rest data tables
Rayvented Dec 4, 2023
b925b29
Set back button via controller default params
Rayvented Dec 4, 2023
11e3e89
Merge remote-tracking branch 'origin' into feature/tailwind-redesign
Rayvented Dec 5, 2023
4c2256e
Merge remote-tracking branch 'origin' into feature/tailwind-redesign
Rayvented Dec 5, 2023
b2fa2bc
Merge branch 'master' into development
h2Entwicklung Dec 5, 2023
7b9ceb6
Style VVT Assistent
Rayvented Dec 5, 2023
e1e969c
Fix dashboard flowchart height
Rayvented Dec 5, 2023
5f58ef8
Fix form toggle VVT Assistent
Rayvented Dec 5, 2023
abb581c
Improve academy create/edit handling (better UIX)
Rayvented Dec 7, 2023
647b792
Fix layout datenweitergabe edit
Rayvented Dec 7, 2023
5ac7da0
Better view for audit_tom colors
Rayvented Dec 7, 2023
a2f5489
Create akademie kurs result page
Rayvented Dec 7, 2023
39c56b6
Fix disable kurs video controls
Rayvented Dec 8, 2023
602f40d
Improve akademie + questionnaire
Rayvented Dec 8, 2023
16b9b69
Update continue btn assistent
Rayvented Dec 8, 2023
dc66cd0
Revert translations
Rayvented Dec 11, 2023
c64d65d
Merge pull request #232 from H2-invent/feature/tailwind-redesign
Rayvented Dec 11, 2023
9da0fac
Apply trix-editor to all textareas
Rayvented Dec 14, 2023
6605f2b
Render trix-editor only for summernote classes
Rayvented Dec 14, 2023
d3b0b6e
Merge pull request #234 from H2-invent/feature/tailwind-redesign
holema Dec 14, 2023
e89a605
Style dsfa edit
Rayvented Dec 14, 2023
c09830f
Style dsfa edit
Rayvented Dec 14, 2023
76aa4a4
Merge pull request #235 from H2-invent/feature/tailwind-redesign
holema Dec 14, 2023
420db46
Create index page with table for DSFA
Rayvented Dec 15, 2023
a5450aa
Create index page with table for DSFA
Rayvented Dec 15, 2023
af5384a
Set full width layout form dsfa/index
Rayvented Dec 15, 2023
e422fbd
Remove groupBy in VVTDsfaRepository.findAllByTeam
Rayvented Dec 22, 2023
f3db96f
fix create DSFA with ney controller and set correct repo
h2Entwicklung Dec 28, 2023
ebfdfb2
save new dsfa correctly
h2Entwicklung Dec 28, 2023
8194bf1
Merge pull request #236 from H2-invent/feature/dsfa_table
holema Dec 28, 2023
1ef145a
use doctrine nested tree for team hierarchy
KaydenLiss Jul 4, 2023
7227a87
add select for parent to team form
KaydenLiss Jul 4, 2023
db2d58c
Add dev setup with docker compose
melegiul Jul 19, 2023
a6ec4c9
Fix disable summernote textarea
melegiul Jul 20, 2023
ba9dc4d
Add vvt find by inherited teams
melegiul Jul 20, 2023
87ed7df
Add readonly inherited vvt & dsfa
melegiul Jul 20, 2023
50dd2d7
Add back to team management link
melegiul Jul 21, 2023
c20242c
Add inherited vvt to descendant team dashboards
melegiul Jul 24, 2023
6bd946f
Add readonly inherited tom
melegiul Jul 25, 2023
2a8919d
Add readonly inherited kontakt
melegiul Jul 25, 2023
a394bb2
Add readonly inherited datenweitergabe/auftragsverarbeitung
melegiul Jul 25, 2023
0b2ddf2
Add readonly inherited policies
melegiul Jul 25, 2023
204914b
Add readonly inherited software
melegiul Jul 26, 2023
5b68b58
refactor team dropdown
KaydenLiss Jul 31, 2023
1fb92de
fix problem with vvt edit view
KaydenLiss Jul 31, 2023
ee5d994
remove var_dump
KaydenLiss Jul 31, 2023
e522ba4
add parent to team overview
KaydenLiss Jul 31, 2023
1738835
add error handling for invalid trees
KaydenLiss Jul 31, 2023
990a213
Add post migration team tree default values
melegiul Aug 2, 2023
3520c12
add checkbox for inheritance to vvt
KaydenLiss Aug 1, 2023
e434c32
add many-to-many relationship for ignoring inherited vvts in child teams
KaydenLiss Aug 2, 2023
7db037b
add columns for opt-out status to list views
KaydenLiss Aug 2, 2023
e8a23a3
add opt-out button to inherited vvts in child teams
KaydenLiss Aug 3, 2023
94eedb0
update vvt repository
KaydenLiss Aug 6, 2023
4148c0b
add missing translations
KaydenLiss Aug 6, 2023
7560bb3
handle assign error
KaydenLiss Aug 6, 2023
0015d62
update impact assessment repository
KaydenLiss Aug 6, 2023
3ea1648
update tom and software repositories
KaydenLiss Aug 7, 2023
785e860
update policy repository
KaydenLiss Aug 8, 2023
f16074e
update contact repository
KaydenLiss Aug 9, 2023
847dca6
update transfer repository
KaydenLiss Aug 9, 2023
efb42dd
update security service
KaydenLiss Aug 10, 2023
fda85b5
update preset repositories
KaydenLiss Aug 10, 2023
0d52a04
fix queries in repositories
KaydenLiss Aug 29, 2023
266069e
fix contact creation view
KaydenLiss Aug 29, 2023
50b86fb
make transfer repository consistent with other repositories
KaydenLiss Sep 5, 2023
2e2974a
make ignored data accessible for readonly views
KaydenLiss Sep 5, 2023
2efed33
fix merge errors
KaydenLiss Dec 6, 2023
68e5340
work on vvt appearance
KaydenLiss Dec 6, 2023
cbe8b0d
Add inherited deletion concepts and categories to vvt form
melegiul Nov 29, 2023
dd217e3
Remove inherited data categories from list
melegiul Nov 29, 2023
c3e101c
show team information instead of toggle for users with only one team
KaydenLiss Dec 12, 2023
9ebdb23
improve arrangement of elements in vvt form
KaydenLiss Dec 13, 2023
4a68447
fix assign flash messages
KaydenLiss Dec 13, 2023
49bdd90
refactor flash messages
KaydenLiss Dec 13, 2023
1e71cb4
add inheritance options to presets (#239)
KaydenLiss Jan 12, 2024
162d6fb
fix issues in dsfa caused by rebase
KaydenLiss Jan 15, 2024
009635c
Fix teamDataCheck
melegiul Jan 15, 2024
762b08f
Hide inherited data-category/deletion-concept edit/delete button
melegiul Jan 15, 2024
d76e700
Merge pull request #240 from H2-invent/feature/team-hierarchy-minor-e…
melegiul Jan 15, 2024
1ade12b
Update vvt.de.yaml
Art4 Jan 24, 2024
8fbbc27
install phpstan
Art4 Jan 29, 2024
57071bb
Fix error with missing user object
Art4 Jan 29, 2024
226e4cc
Use Entity instead of Proxy
Art4 Jan 29, 2024
337efd3
Add missing return statement
Art4 Jan 29, 2024
4f0f88a
Add undefined property $em;
Art4 Jan 29, 2024
c399494
Fix multiple errors
Art4 Jan 29, 2024
38464f0
Fix more phpstan errors
Art4 Jan 29, 2024
b691aee
set arguments for CronService via services.yaml
Art4 Jan 29, 2024
2a76114
Fix services.yaml
Art4 Jan 30, 2024
f01b60f
Set phpstan to level 1
Art4 Jan 30, 2024
f33e399
Fix phpstan errors in TeamMemberController
Art4 Jan 30, 2024
feeed00
improve error handling in TeamService
Art4 Jan 30, 2024
db11240
Remove unused parameter in ApproveService and CronService
Art4 Jan 30, 2024
14fa2a5
Fix back button in /team_mitglieder
Rayvented Feb 7, 2024
3e3ffb5
Style base approve templates
Rayvented Feb 7, 2024
b4803b8
Update CSS ol.item-history
Rayvented Feb 7, 2024
dd33679
Fix error in ClientRequestController.php (Call to a member function f…
Rayvented Feb 7, 2024
3ac9056
Disable trix editor when form is disabled
Rayvented Feb 7, 2024
4449daa
Disable form elements when form is disabled
Rayvented Feb 8, 2024
f5e5bb0
Fix blank in templates/assign/__assign.html.twig
Rayvented Feb 8, 2024
ff1cd19
Fix deleting Questionnaire
Rayvented Feb 8, 2024
1933bc6
Fix empty array error in akademie/index.html.twig
Rayvented Feb 8, 2024
ce802aa
Create a create team page for demo env
Rayvented Feb 8, 2024
ee87085
Fix title in team admin page
Rayvented Feb 9, 2024
68e24bf
Fix removing team member
Rayvented Feb 9, 2024
8a38b58
Fix removing team member (open invitations)
Rayvented Feb 9, 2024
8305e82
Merge pull request #246 from H2-invent/fix/development_issues
holema Feb 9, 2024
7eb12d9
Merge pull request #247 from H2-invent/feature/no_team_create_team
holema Feb 9, 2024
82e4fed
Update email layout
Rayvented Feb 12, 2024
2db64f4
Merge branch 'development' into feature/team-hierarchy
holema Feb 27, 2024
d7b7cfd
Merge pull request #205 from H2-invent/feature/team-hierarchy
holzi1005 Feb 28, 2024
d9d2e89
Merge branch 'development' into phpstan
Art4 Feb 28, 2024
462ee2d
Fix 2 more errors
Art4 Feb 28, 2024
8808874
Merge branch 'phpstan' into phpstan-level-1
Art4 Feb 28, 2024
e00bc51
fix 1 error
Art4 Feb 28, 2024
ec4b011
Update composer.phar from 2.1.14 to 2.7.1
Art4 Feb 28, 2024
4665c33
Merge pull request #241 from Art4/patch-1
holema Mar 21, 2024
1fc2e49
Merge pull request #243 from Art4/phpstan
holema Mar 21, 2024
bc056d4
Merge pull request #248 from H2-invent/feature/redesign_email_templates
holema Mar 21, 2024
60153ae
Merge pull request #251 from Art4/update-composer.phar
holema Mar 21, 2024
5ee316f
Merge branch 'development' into phpstan-level-1
Art4 Mar 21, 2024
22cd1e8
Fix code style
Art4 Mar 21, 2024
af75374
Fix 8 phpstan errors
Art4 Mar 21, 2024
f6138d5
[#250] fix security checks in report controller
KaydenLiss Apr 9, 2024
1ace325
Merge pull request #256 from H2-invent/fix/security-check
holema Apr 23, 2024
6acac43
Update README.md
georgloesel Jun 24, 2024
c3184f6
Update README.md
holema Jul 8, 2024
748ee23
Update README.md
holema Jul 8, 2024
1e96de7
Add option to map user API groups to teams
melegiul Aug 7, 2024
35ad378
Avoid name conflicts for API generated teams
melegiul Aug 16, 2024
20dd4b0
Merge pull request #244 from Art4/phpstan-level-1
holema Sep 10, 2024
96bcf36
Merge pull request #266 from H2-invent/feature/api-group-mapping
holema Sep 24, 2024
33ea4d4
Merge pull request #263 from H2-invent/georgloesel-patch-1
holema Oct 7, 2024
9245739
add migration to match the existing modell
h2Entwicklung Oct 8, 2024
f9a1203
add migration to match the existing modell in development branch
h2Entwicklung Oct 8, 2024
39b5732
Try to fix invalid schemas during migration
melegiul Oct 8, 2024
cea4785
Change group api env var to array
melegiul Oct 9, 2024
1fdc8ab
Merge pull request #278 from H2-invent/feature/group-api-mapper-impro…
holema Oct 10, 2024
e2a80ad
Init default tree structure for legacy teams
melegiul Oct 11, 2024
439b5ac
Merge remote-tracking branch 'origin/development' into development
h2Entwicklung Oct 18, 2024
abc351a
Merge branch 'refs/heads/master' into development
h2Entwicklung Oct 18, 2024
b87aa18
Merge pull request #277 from H2-invent/feature/merge-all-migrations-i…
holema Oct 18, 2024
1728886
New translations academy.de.yaml (deutsch_kirche_evangelisch)
holema Oct 18, 2024
1b6e80b
New translations assign.de.yaml (deutsch_kirche_evangelisch)
holema Oct 18, 2024
73e9682
New translations assistant.de.yaml (deutsch_kirche_evangelisch)
holema Oct 18, 2024
0b56fab
New translations base.de.yaml (deutsch_kirche_evangelisch)
holema Oct 18, 2024
a8074de
New translations dashboard.de.yaml (deutsch_kirche_evangelisch)
holema Oct 18, 2024
43a41bc
New translations datenweitergabe.de.yaml (deutsch_kirche_evangelisch)
holema Oct 18, 2024
6a2c956
New translations email.de.yaml (deutsch_kirche_evangelisch)
holema Oct 18, 2024
6daf86d
New translations general.de.yaml (deutsch_kirche_evangelisch)
holema Oct 18, 2024
bfd1235
New translations kontakt.de.yaml (deutsch_kirche_evangelisch)
holema Oct 18, 2024
16c0575
New translations kurs.de.yaml (deutsch_kirche_evangelisch)
holema Oct 18, 2024
8373c1e
New translations loeschkonzept.de.yaml (deutsch_kirche_evangelisch)
holema Oct 18, 2024
5f40467
New translations questionnaire.de.yaml (deutsch_kirche_evangelisch)
holema Oct 18, 2024
2250e87
New translations report.de.yaml (deutsch_kirche_evangelisch)
holema Oct 18, 2024
27a48e5
New translations academy.de.yaml (French)
holema Oct 18, 2024
e056a3b
New translations academy.de.yaml (English)
holema Oct 18, 2024
0dcb37c
New translations assign.de.yaml (French)
holema Oct 18, 2024
25c3121
New translations assign.de.yaml (English)
holema Oct 18, 2024
20ca319
New translations assistant.de.yaml (French)
holema Oct 18, 2024
87e4353
New translations assistant.de.yaml (English)
holema Oct 18, 2024
f6e67dc
New translations base.de.yaml (French)
holema Oct 18, 2024
9a35b39
New translations base.de.yaml (English)
holema Oct 18, 2024
949db34
New translations dashboard.de.yaml (French)
holema Oct 18, 2024
c6a23e3
New translations dashboard.de.yaml (English)
holema Oct 18, 2024
723c822
New translations datenweitergabe.de.yaml (French)
holema Oct 18, 2024
de0338e
New translations datenweitergabe.de.yaml (English)
holema Oct 18, 2024
a55e1d2
New translations form.de.yaml (deutsch_kirche_evangelisch)
holema Oct 18, 2024
58b06f3
New translations team.de.yaml (deutsch_kirche_evangelisch)
holema Oct 18, 2024
3f9d78d
New translations vvt.de.yaml (deutsch_kirche_evangelisch)
holema Oct 18, 2024
94d0742
New translations email.de.yaml (French)
holema Oct 18, 2024
115613f
New translations email.de.yaml (English)
holema Oct 18, 2024
05e4749
New translations general.de.yaml (French)
holema Oct 18, 2024
4f2b34f
New translations general.de.yaml (English)
holema Oct 18, 2024
7001b0d
New translations kontakt.de.yaml (French)
holema Oct 18, 2024
e61c1cf
New translations kontakt.de.yaml (English)
holema Oct 18, 2024
0b5c1fe
New translations kurs.de.yaml (French)
holema Oct 18, 2024
35decd3
New translations kurs.de.yaml (English)
holema Oct 18, 2024
cd2f502
New translations loeschkonzept.de.yaml (French)
holema Oct 18, 2024
4540c52
New translations loeschkonzept.de.yaml (English)
holema Oct 18, 2024
528c4b3
New translations questionnaire.de.yaml (French)
holema Oct 18, 2024
3c67a90
New translations questionnaire.de.yaml (English)
holema Oct 18, 2024
6aa54b8
New translations report.de.yaml (French)
holema Oct 18, 2024
d6d66b8
New translations report.de.yaml (English)
holema Oct 18, 2024
ffae2f0
New translations team.de.yaml (French)
holema Oct 18, 2024
8ce007e
New translations team.de.yaml (English)
holema Oct 18, 2024
10d780e
New translations vvt.de.yaml (French)
holema Oct 18, 2024
9382dea
New translations vvt.de.yaml (English)
holema Oct 18, 2024
aba88d5
New translations form.de.yaml (French)
holema Oct 18, 2024
7931715
New translations form.de.yaml (English)
holema Oct 18, 2024
5aea0bf
Merge pull request #286 from H2-invent/l10n_development
holema Oct 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 7 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,15 @@ OAUTH_KEYCLOAK_REALM=addHere

###> demo ###
demo_installation=prod #demo
APP_DEMO=0
###< demo ###

###> LaF ###
laF_version=2.0.0-dev
###< LaF ###

### Group Mapper API ###
GROUP_API_URI=http://localhost
GROUP_API_KEY=CHANGEME
GROUP_API_ROLES=CHANGEME,CHANGEME,...
GROUP_API_USER_ID=CHANGEME
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,9 @@ yarn-error.log
docker.conf

/documentation_jitsi_admin/node_modules/
/secretStorage/.Halite*
/secretStorage/.Halite*
###> phpstan/phpstan ###
phpstan.neon
###< phpstan/phpstan ###

.php-version
30 changes: 29 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Open-Datenschutzcenter 2.0
# Open-Datenschutzcenter 3.0
__Open Source Datenschutzmanagement System__

[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg)](code_of_conduct.md)
Expand All @@ -10,6 +10,24 @@ Helfen Sie mit den Open Datenschutz Center noch besser zu machen. Wir suchen jed
Übersetzungen werden über Crowdin organisiert und können dort einfach und unkompliziert Übersetzt werden.
https://crowdin.com/project/open-datenschutz-center

# Neue Funktionen in Version 3.0

## Vererbung / Hierarchie

Der ODC ermöglicht nun die hierarchische Verwaltung von Dokumenten. Basierend auf den Bedürfnissen einer bundesweiten Organisation mit untergeordneten Landes- und Kreisverbänden können alle Dokumente besser und zentraler verwaltet werden. Bundesweit geltende Regelungen werden auf Bundesebene verwaltet und gelten dann auch auf allen darunter liegenden Ebenen. Die Landes- oder Kreisverbände haben lesenden Zugriff auf die Bundesdokumente und gleichzeitig die Möglichkeit, individuell geltende Regelungen auf ihrer Ebene zu dokumentieren.

## Anbindung der Hierarchie an Keycloak

Die beschriebene Struktur aus Bundes-, Landes- und Kreisverbänden lässt sich auch direkt mit dem Keycloak verbinden, so dass die Berechtigungen direkt von dort übernommen werden.

## Assistent

Ein Assistent unterstützt bei der Anlage von VVT und führt die Nutzenden durch die Formulare.

## Neue Oberfläche

ODC wurde auf Symphony 6 umgesetllt und hat eine modernere Oberfläche

# Funktionen
Folgende Funktionen sind bereits im Open Datenschutzcenter integriert:
* Datenschutzakademie für interne Datenschutzschulungen zum Nachweis der kontinuierlichen Datenschutzweiterbildung der Beschäftigten.
Expand Down Expand Up @@ -77,6 +95,16 @@ In Kooperation mit der [Professur "Datenschutz und Compliance"](https://www.unib

Durch die Mitarbeitenden von @verdigado wurde der VVT Assistent und die Vererbung implemntiert.

# Dev Setup

1. Abhängigkeiten installieren mit `composer install` und `npm install`
1. Starte docker container für Datenbank und Keycloak `docker compose -f docker-compose.dev.yml up -d`
1. Mit Account `admin` und Passwort `admin` im Keycloak anmelden
1. Unter `http://localhost:8080/admin/master/console/#/opendatenschutzcenter/users/add-user` Nutzer für open-datenschutzcenter realm anlegen
1. Passwort für neuen Nutzer festlegen und die beiden opendatenschutzcenter client roles `uma_protection` und `odc-super-admin` zuweisen
1. Führe Migrationen der Datenbank aus `symfony console doctrine:migrations:migrate`
1. Starte den dev Server mit `symfony serve -d`

# Lizenz
Die aktuelle Version von Open Datenschutzcenter wird unter der AGPL-3.0 License bereitgestellt. Weitere Informationen finden Sie in der LICENSE Datei in diesem Repo.
Copyright (c) 2020 H2 invent
12 changes: 10 additions & 2 deletions RELEASE_NOTE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# RELEASE NOTE
# Release 4.0.0

* Fix Downlaod of Documents
## Neue Funktionen und Verbesserungen
* In den TOM Formularen können jetzt die technischen und organisatorischen Maßnahmen mit einem WYSIWYG Editor beschrieben werden. (https://github.com/H2-invent/open-datenschutzcenter/pull/217)
* Der neue Assistent unterstützt beim Erstellen von Verarbeitungen und allen notwendigen Datensätzen. Dieser Assistent erleichtert die Erfassung von neuen Verarbeitungen. (https://github.com/H2-invent/open-datenschutzcenter/pull/204)
* Ab sofort können Datenschutzelemente von einem Team in Kinderteams vererbt werden. (https://github.com/H2-invent/open-datenschutzcenter/pull/205)

## Bug fixes


## Update Anleitung
32 changes: 32 additions & 0 deletions assets/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import './bootstrap.js';
import "trix";
import './scripts/tailmater.js';
import './scripts/datatables.js';

import 'trix/dist/trix.css';
import './styles/materialDesignIcons.css';
import './styles/tailmater.css';
import './styles/colors.css';
import './styles/dataTablesTailwind.css';
import './styles/dataTablesApp.css';
import './styles/app.css';

import $ from 'jquery';
global.$ = global.jQuery = $;
import {initFreeFields} from "./scripts/freeField";

document.getElementById('snackbar-trigger')?.click();

(function() {
addEventListener("trix-initialize", function(e) {
const file_tools = document.querySelector(".trix-button-group--file-tools");
file_tools?.remove();
})
addEventListener("trix-file-accept", function(e) {
e.preventDefault();
})
})();

$(document).ready(function() {
initFreeFields();
});
10 changes: 10 additions & 0 deletions assets/bootstrap.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { startStimulusApp } from '@symfony/stimulus-bridge';

// Registers Stimulus controllers from controllers.json and in the controllers/ directory
export const app = startStimulusApp(require.context(
'@symfony/stimulus-bridge/lazy-controller-loader!./controllers',
true,
/\.[jt]sx?$/
));
// register any custom, 3rd party controllers here
// app.register('some_controller_name', SomeImportedController);
4 changes: 4 additions & 0 deletions assets/controllers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"controllers": [],
"entrypoints": []
}
84 changes: 84 additions & 0 deletions assets/controllers/appUi_controller.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
import { Controller } from '@hotwired/stimulus';

export default class extends Controller {
connect() {
this.initTabs();
this.initClickListeners();
this.initDisabledForms();
}

initDisabledForms() {
Array.prototype.forEach.call(document.querySelectorAll('form[disabled]'), function (form) {
Array.prototype.forEach.call(form.querySelectorAll('input, textarea, select, button'), function (element) {
element.disabled = true;
});
Array.prototype.forEach.call(form.querySelectorAll('button[type=submit]'), function (button) {
button.remove();
});
});
}

initClickListeners() {
const selectorConfirm = '.text-danger, .btn-danger, .btw-warning, [data-click-confirm]';
Array.prototype.forEach.call(document.querySelectorAll(selectorConfirm), function (element) {
element.addEventListener('click', function(event) {
if (confirm(window.translations.confirmAction)) {
return true;
}
event.preventDefault();
return false;
});
});
}

initTabs() {
self = this;
Array.prototype.forEach.call(document.querySelectorAll('[data-type="tabs"]'), function (element) {
element.addEventListener('click', function(event) {
event.preventDefault();
//window.location.hash = self.getAttributeFromElementOrParents(event.target, 'data-target');
history.replaceState(null, null, self.getAttributeFromElementOrParents(event.target, 'data-target'));
});
});
if (document.location.toString().match('#')) {
document.querySelector('[data-target="#' + document.location.toString().split('#')[1] + '"]')?.click();
}
}

loadContentModal(event) {
event.preventDefault();
const url = event.target.getAttribute('href');
const modal = document.getElementById('modal-remote-content');
const contentContainer = modal.querySelector('.modal-inner');
contentContainer.innerHTML = '<p class="p-10 italic">Loading ...</p>'

fetch(url)
.then(response => response.text())
.then(data => { contentContainer.innerHTML = data; })
.catch(error => console.error(error));
}

getAttributeFromElementOrParents(element, attribute, i = 1) {
if (5 == i) { // max 5 recursive calls
return null;
}

if (element.getAttribute(attribute)) {
return element.getAttribute(attribute);
} else if (element.parentNode) {
return this.getAttributeFromElementOrParents(element.parentNode, attribute, ++i);
}

return null;
}

toggle(event) {
event.preventDefault();
const containerShow = document.getElementById(this.getAttributeFromElementOrParents(event.target, 'data-show'));
const containerHide = document.getElementById(this.getAttributeFromElementOrParents(event.target, 'data-hide'));
const containerToggle = document.getElementById(this.getAttributeFromElementOrParents(event.target, 'data-toggle'));
containerShow?.classList.remove('hidden');
containerHide?.classList.add('hidden');
containerToggle?.classList.toggle('hidden');
}
}
21 changes: 21 additions & 0 deletions assets/controllers/questionnaire_controller.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { Controller } from '@hotwired/stimulus';

export default class extends Controller {
answer() {
const self = this;
let disabledButton = true;

Array.prototype.forEach.call(document.querySelectorAll('input[type=checkbox], input[type=radio]'), function (element) {
console.log(element.checked);
if (element.checked) {
disabledButton = false;
}
});

if (disabledButton) {
document.getElementById('dynamic_question_continue').setAttribute('disabled', 'disabled');
} else {
document.getElementById('dynamic_question_continue').removeAttribute('disabled');
}
}
}
10 changes: 0 additions & 10 deletions assets/css/app.css

This file was deleted.

74 changes: 0 additions & 74 deletions assets/css/select-css.css

This file was deleted.

Loading
Loading