-
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.
✨ [#2179] Add Mijn afspraken to Mijn profiel
- Loading branch information
Showing
9 changed files
with
128 additions
and
3 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
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 |
---|---|---|
|
@@ -19,4 +19,5 @@ def get_config_fields(self): | |
"questions", | ||
"ssd", | ||
"newsletters", | ||
"appointments", | ||
) |
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
22 changes: 22 additions & 0 deletions
22
src/open_inwoner/cms/profile/migrations/0009_profileconfig_appointments.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,22 @@ | ||
# Generated by Django 4.2.10 on 2024-03-18 13:13 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("profile", "0008_profileconfig_newsletters"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="profileconfig", | ||
name="appointments", | ||
field=models.BooleanField( | ||
default=False, | ||
help_text="Designates whether 'Mijn afspraken' section is rendered or not.", | ||
verbose_name="Mijn afspraken", | ||
), | ||
), | ||
] |
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 |
---|---|---|
|
@@ -325,6 +325,10 @@ | |
"openzaak", | ||
"catalogusconfig" | ||
], | ||
[ | ||
"qmatic", | ||
"qmaticconfig" | ||
], | ||
[ | ||
"openzaak", | ||
"openzaakconfig" | ||
|
52 changes: 52 additions & 0 deletions
52
src/open_inwoner/templates/pages/profile/appointments.html
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,52 @@ | ||
{% extends 'master.html' %} | ||
{% load i18n tz form_tags anchor_menu_tags list_tags icon_tags grid_tags utils %} | ||
|
||
{% block content %} | ||
|
||
<h1 class="utrecht-heading-1" id="title">{% trans "Mijn afspraken" %}</h2> | ||
|
||
{% if appointments %} | ||
<p class="tabled__key">{% trans "Een overzicht van uw afspraken" %}</p> | ||
|
||
{% render_grid %} | ||
{% for appointment in appointments %} | ||
{% render_column start=forloop.counter_0|multiply:4 span=4 %} | ||
<div class="card card--compact card--stretch"> | ||
<div class="card__body"> | ||
{% render_list %} | ||
<span class="contactmomenten-list"> | ||
<h2 class="card__heading-2">{{ appointment.title }}</h2> | ||
{% timezone appointment.branch.timeZone %} | ||
{% list_item text=appointment.start|date:"l j F Y H:i" compact=True strong=False %} | ||
{% endtimezone %} | ||
{% list_item text=appointment.notes compact=True strong=False %} | ||
{% list_item text=appointment.branch.name caption=_("Locatie") compact=True strong=False %} | ||
{% list_item text=appointment.branch.addressCity compact=True strong=False %} | ||
{% list_item text=appointment.branch.addressLine2 compact=True strong=False %} | ||
</span> | ||
{% endrender_list %} | ||
|
||
<span class="link link--icon link--secondary" | ||
aria-label="{% trans "Wijzig afspraak" %}" | ||
title="{% trans "Wijzig afspraak" %}"> | ||
<span class="link__text">{% trans "Wijzig afspraak" %}</span> | ||
{% icon icon="arrow_forward" icon_position="after" primary=True outlined=True %} | ||
</span> | ||
<span class="link link--icon link--secondary" | ||
aria-label="{% trans "Annuleer afspraak" %}" | ||
title="{% trans "Annuleer afspraak" %}"> | ||
<span class="link__text">{% trans "Annuleer afspraak" %}</span> | ||
{% icon icon="arrow_forward" icon_position="after" primary=True outlined=True %} | ||
</span> | ||
</div> | ||
</div> | ||
{% endrender_column %} | ||
|
||
{% endfor %} | ||
{% endrender_grid %} | ||
</section> | ||
{% else %} | ||
<p class="tabled__key">{% trans "Geen afspraken beschikbaar" %}</p> | ||
{% endif %} | ||
|
||
{% endblock %} |
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