-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#2899] Create MVP configuration model for OpenKlant2
- Loading branch information
Paul Schilling
committed
Dec 5, 2024
1 parent
396cdcb
commit f51816d
Showing
5 changed files
with
229 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
100 changes: 100 additions & 0 deletions
100
src/open_inwoner/openklant/migrations/0015_klanteninteractiesconfig_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
# Generated by Django 4.2.16 on 2024-12-05 11:49 | ||
|
||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("openklant", "0014_contactformconfig"), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name="KlantenInteractiesConfig", | ||
fields=[ | ||
( | ||
"id", | ||
models.AutoField( | ||
auto_created=True, | ||
primary_key=True, | ||
serialize=False, | ||
verbose_name="ID", | ||
), | ||
), | ||
], | ||
options={ | ||
"verbose_name": "Configuratie Klanten Interacties", | ||
}, | ||
), | ||
migrations.AlterModelOptions( | ||
name="openklantconfig", | ||
options={"verbose_name": "Esuite configuration"}, | ||
), | ||
migrations.CreateModel( | ||
name="OpenKlant2Config2", | ||
fields=[ | ||
( | ||
"id", | ||
models.AutoField( | ||
auto_created=True, | ||
primary_key=True, | ||
serialize=False, | ||
verbose_name="ID", | ||
), | ||
), | ||
("api_root", models.URLField(verbose_name="API root url")), | ||
("api_token", models.CharField(verbose_name="API key token")), | ||
( | ||
"mijn_vragen_kanaal", | ||
models.CharField(verbose_name="Mijn vragen kanaal"), | ||
), | ||
( | ||
"mijn_vragen_organisatie_naam", | ||
models.CharField(verbose_name="Mijn vragen organisatie naam"), | ||
), | ||
( | ||
"mijn_vragen_actor", | ||
models.CharField(verbose_name="Mijn vragen actor"), | ||
), | ||
( | ||
"interne_taak_gevraagde_handeling", | ||
models.CharField(verbose_name="Interne taak gevraagde handeling"), | ||
), | ||
( | ||
"interne_taak_toelichting", | ||
models.CharField(verbose_name="Interne taak toelichting"), | ||
), | ||
( | ||
"config", | ||
models.OneToOneField( | ||
blank=True, | ||
null=True, | ||
on_delete=django.db.models.deletion.CASCADE, | ||
to="openklant.klanteninteractiesconfig", | ||
), | ||
), | ||
], | ||
options={ | ||
"verbose_name": "Open Klant configuration", | ||
}, | ||
), | ||
migrations.AddField( | ||
model_name="openklantconfig", | ||
name="config", | ||
field=models.OneToOneField( | ||
null=True, | ||
on_delete=django.db.models.deletion.CASCADE, | ||
to="openklant.klanteninteractiesconfig", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="contactformsubject", | ||
name="config", | ||
field=models.ForeignKey( | ||
on_delete=django.db.models.deletion.CASCADE, | ||
to="openklant.klanteninteractiesconfig", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.inline-group { | ||
margin-bottom: 16px; | ||
|
||
border: 1px solid #ddd; | ||
border-radius: 5px; | ||
|
||
> fieldset > h2 { | ||
margin-bottom: 5px; | ||
background-color: #498fc9; | ||
} | ||
} | ||
|
||
.inline-related { | ||
h3 { | ||
display: none; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters