-
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.
🚧 [#2245] Changed checkbox template and added multiple
- Loading branch information
1 parent
b8cad81
commit a9c1a8a
Showing
4 changed files
with
39 additions
and
32 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 |
---|---|---|
|
@@ -51,7 +51,6 @@ | |
} | ||
|
||
.divider { | ||
background-color: yellow; | ||
border: red solid 5px !important; | ||
&--small { | ||
display: none; | ||
|
60 changes: 34 additions & 26 deletions
60
src/open_inwoner/templates/pages/profile/notifications.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 |
---|---|---|
@@ -1,31 +1,39 @@ | ||
{% extends 'master.html' %} | ||
{% load i18n l10n form_tags %} | ||
{% load i18n l10n grid_tags form_tags icon_tags button_tags %} | ||
|
||
{% block content %} | ||
<h1 class="h1" id="title"> | ||
{% trans "Ontvang berichten over" %} | ||
</h1> | ||
<p class="p"> | ||
{% trans "Kies voor welk onderwerp je meldingen wilt ontvangen" %} | ||
</p> | ||
|
||
<form method="POST" id="change-notifications" action="{% url 'profile:notifications' %}" class="form" novalidate> | ||
{% csrf_token %} | ||
|
||
{% for field in form.fields %} | ||
{% autorender_field form field %} | ||
{% endfor %} | ||
|
||
<div class="form__control"> | ||
{# pseudo checkbox for notifications that cannot be disabled #} | ||
<div class="checkbox"> | ||
<span role="checkbox" aria-disabled="true" aria-checked="true" class="checkbox__input checkbox__pseudo checkbox__input--disabled" aria-labelledby="id_cases_notifications_action_required" tabindex="0"></span> | ||
<span class="checkbox__label checkbox__pseudo-label" id="id_cases_notifications_action_required">{% trans "Zaaknotificaties - actie is nodig" %}</span> | ||
<p class="p">{% trans "E-mailnotificaties wanneer er actie nodig is voor een zaak (kan niet uitgeschakeld worden)" %}</p> | ||
</div> | ||
</div> | ||
|
||
{% form_actions primary_text=_("Opslaan") primary_icon="arrow_forward" secondary_href='profile:detail' secondary_text=_('Terug') secondary_icon_position="before" secondary_icon='arrow_backward' %} | ||
</form> | ||
<h1 class="h1" id="title"> | ||
{% trans "Ontvang berichten over" %} | ||
</h1> | ||
<p class="p"> | ||
{% trans "Kies voor welk onderwerp je meldingen wilt ontvangen" %} | ||
</p> | ||
|
||
{% render_grid %} | ||
{% render_column start=0 span=6 %} | ||
|
||
<form method="POST" id="change-notifications" action="{% url 'profile:notifications' %}" class="form" novalidate> | ||
{% csrf_token %} | ||
|
||
{% for field in form.fields %} | ||
{% autorender_field form field %} | ||
{% endfor %} | ||
|
||
<div class="choice-list choice-list-multiple"> | ||
{# info on notifications that cannot be disabled #} | ||
<div class="choice-list__information"> | ||
<p class="choice-list-multiple__heading-4">{% icon icon="check" outlined=True %} {% trans "Zaaknotificaties - actie is nodig" %}</p> | ||
<p class="choice-list__p">{% trans "E-mailnotificaties wanneer er actie nodig is voor een zaak (kan niet uitgeschakeld worden)" %}</p> | ||
</div> | ||
</div> | ||
|
||
<div class="form__actions form__actions--fullwidth"> | ||
{% button text="Sla wijzigingen op" primary=True type="submit" form_id="profile-edit" %} | ||
{% button href="profile:detail" icon="west" text=_("Terug naar Mijn profiel") icon_outlined=True transparent=True %} | ||
</div> | ||
</form> | ||
|
||
{% endrender_column %} | ||
{% endrender_grid %} | ||
|
||
{% endblock content %} |