-
Notifications
You must be signed in to change notification settings - Fork 6
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
[#1763] Change texts and table for profile page #790
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
31 changes: 31 additions & 0 deletions
31
src/open_inwoner/cms/profile/migrations/0004_profile_texts.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,31 @@ | ||
# Generated by Django 3.2.20 on 2023-10-02 13:15 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("profile", "0003_profileconfig_ssd"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="profileconfig", | ||
name="notifications", | ||
field=models.BooleanField( | ||
default=True, | ||
help_text="Designates whether 'notifications' section is rendered or not.", | ||
verbose_name="Mijn meldingen", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="profileconfig", | ||
name="selected_categories", | ||
field=models.BooleanField( | ||
default=True, | ||
help_text="Designates whether 'selected categories' section is rendered or not.", | ||
verbose_name="Gekozen onderwerpen", | ||
), | ||
), | ||
] |
6 changes: 6 additions & 0 deletions
6
src/open_inwoner/scss/components/Profile/_personal-overview.scss
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,6 @@ | ||
.personal-overview { | ||
h2, | ||
.h2 { | ||
margin: var(--row-height) 0 0 0; | ||
} | ||
} |
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
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 |
---|---|---|
|
@@ -49,28 +49,34 @@ <h1 class="h1" id="title"> | |
</div> | ||
</div> | ||
|
||
<h1 class="h1" id="overview">{% trans "Persoonlijk overzicht" %}</h1> | ||
|
||
<div class="tabled tabled--flexible personal-overview"> | ||
<h2 class="h2" id="overview">{% trans "Overzicht" %}</h2> | ||
{% if request.user.is_digid_and_brp and view.config.my_data %} | ||
<div class="tabled__row"> | ||
<div class="tabled__item tabled__item--bold">{% trans "Mijn gegevens" %}</div> | ||
<div class="tabled__item tabled__item--bold">{% link href="profile:categories" text=_('My details') %}</div> | ||
<div class="tabled__item">{{request.user.get_full_name}}{% if request.user.get_address %}, {{ request.user.get_address }}{% endif %}</div> | ||
<div class="tabled__item tabled__item--force-right tabled__item--mobile-big">{% link href="profile:data" text="Bekijken" icon="arrow_forward" icon_position="after" primary=True %}</div> | ||
</div> | ||
{% endif %} | ||
|
||
{% if view.config.selected_categories %} | ||
<div class="tabled__row"> | ||
<div class="tabled__item tabled__item--bold">{% trans "Interessegebieden" %}</div> | ||
<div class="tabled__item tabled__item--bold">{% link href="profile:categories" text=_('My categories') %}</div> | ||
<div class="tabled__item">{{ category_text }}</div> | ||
<div class="tabled__item tabled__item--force-right tabled__item--mobile-big">{% link href="profile:categories" text="Aanpassen" icon="arrow_forward" icon_position="after" secondary=True %}</div> | ||
</div> | ||
{% endif %} | ||
|
||
{% if view.config.mentors %} | ||
<div class="tabled__row"> | ||
<div class="tabled__item tabled__item--bold">{% trans "Begeleider(s)" %}</div> | ||
<div class="tabled__item tabled__item--bold"> | ||
{% if mentor_contacts %} | ||
{% url 'profile:contact_list' as mentor_url %} | ||
{% link href=mentor_url|add:"?type=begeleider" text=_('My mentor(s)') %} | ||
{% else %} | ||
{% trans "Begeleider(s)" %} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'My mentor(s)' for both? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will do. |
||
{% endif %} | ||
</div> | ||
{% if mentor_contacts %} | ||
<div class="tabled__item">{{ mentor_contacts|join:", " }}</div> | ||
{% url 'profile:contact_list' as mentor_url %} | ||
|
@@ -86,45 +92,45 @@ <h1 class="h1" id="overview">{% trans "Persoonlijk overzicht" %}</h1> | |
|
||
{% if view.config.my_contacts %} | ||
<div class="tabled__row"> | ||
<div class="tabled__item tabled__item--bold">{% trans "Mijn netwerkcontacten" %}</div> | ||
<div class="tabled__item tabled__item--bold">{% link href="profile:contact_list" text=_('My contacts') %}</div> | ||
<div class="tabled__item">{{ contact_text }}</div> | ||
<div class="tabled__item tabled__item--force-right tabled__item--mobile-big">{% link href="profile:contact_list" text=_("Beheer contacten") icon="arrow_forward" icon_position="after" secondary=True %}</div> | ||
</div> | ||
{% endif %} | ||
|
||
{% if questionnaire_exists and view.config.selfdiagnose %} | ||
<div class="tabled__row"> | ||
<div class="tabled__item tabled__item--bold">{% trans "Zelfdiagnose" %}</div> | ||
<div class="tabled__item tabled__item--bold">{% link href="products:questionnaire_list" text=_('Zelftest') %}</div> | ||
<div class="tabled__item"></div> | ||
<div class="tabled__item tabled__item--force-right tabled__item--mobile-big">{% link href='products:questionnaire_list' text=_('Start zelfdiagnose') icon="arrow_forward" icon_position="after" secondary=True %}</div> | ||
</div> | ||
{% endif %} | ||
|
||
{% if view.config.actions %} | ||
<div class="personal-overview__actions tabled__row"> | ||
<div class="tabled__item tabled__item--bold">{% trans "Acties" %}</div> | ||
<div class="tabled__item tabled__item--bold">{% link href="profile:action_list" text=_('Actions') %}</div> | ||
<div class="tabled__item">{{ action_text }}</div> | ||
<div class="tabled__item tabled__item--force-right tabled__item--mobile-big">{% link href="profile:action_list" text="Aanpassen" icon="arrow_forward" icon_position="after" secondary=True %}</div> | ||
</div> | ||
{% endif %} | ||
|
||
{% if view.config.notifications %} | ||
<div class="tabled__row"> | ||
<div class="tabled__item tabled__item--bold">{% trans "Communicatievoorkeuren" %}</div> | ||
<div class="tabled__item tabled__item--bold">{% link href="profile:notifications" text=_('Receive notifications for') %}</div> | ||
<div class="tabled__item">{{ request.user.get_active_notifications }}</div> | ||
<div class="tabled__item tabled__item--force-right tabled__item--mobile-big">{% link href="profile:notifications" text="Aanpassen" icon="arrow_forward" icon_position="after" secondary=True %}</div> | ||
</div> | ||
{% endif %} | ||
{% if view.config.questions %} | ||
<div class="tabled__row"> | ||
<div class="tabled__item tabled__item--bold">{% trans "Mijn vragen" %}</div> | ||
<div class="tabled__item tabled__item--bold">{% link href="cases:contactmoment_list" text=_('My questions') %}</div> | ||
<div class="tabled__item"></div> | ||
<div class="tabled__item tabled__item--force-right tabled__item--mobile-big">{% link href="cases:contactmoment_list" text=_('Bekijken') icon="arrow_forward" icon_position="after" secondary=True %}</div> | ||
</div> | ||
{% endif %} | ||
{% if view.config.ssd %} | ||
<div class="tabled__row"> | ||
<div class="tabled__item tabled__item--bold">{% trans "Mijn uitkeringen" %}</div> | ||
<div class="tabled__item tabled__item--bold">{% link href="profile:monthly_benefits_index" text=_('My benefits') %}</div> | ||
<div class="tabled__item">Jaaropgaven, Maandspecificaties</div> | ||
<div class="tabled__item tabled__item--force-right tabled__item--mobile-big">{% link href="ssd:monthly_benefits_index" text=_("Bekijken") icon="arrow_forward" icon_position="after" secondary=True %}</div> | ||
</div> | ||
|
@@ -146,8 +152,4 @@ <h1 class="h1" id="overview">{% trans "Persoonlijk overzicht" %}</h1> | |
</div> | ||
{% endrender_form %} | ||
|
||
{% if files %} | ||
{% file_list h1=True files=files allow_delete=True title=_("Bestanden") download_view="profile:documents_download" %} | ||
{% endif %} | ||
|
||
{% endblock content %} |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why English? Most of the texts in this template are in Dutch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking: if I have to change some text per request from one of the municipalities, or add completely new text, the default should be in English - this could be a gradual way to change all code-text into English. I can update this
me.html
template to be completely English.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to know. Feel free to get started with this, but no pressure.