-
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.
Merge pull request #1008 from maykinmedia/feature/2081-add-profile-pa…
…ge-designs 💄 [#2081] add profile-edit page designs
- Loading branch information
Showing
11 changed files
with
164 additions
and
118 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
2 changes: 1 addition & 1 deletion
2
src/open_inwoner/components/templates/components/Form/FormActions.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
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
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,45 +1,61 @@ | ||
{% extends 'master.html' %} | ||
{% load i18n l10n form_tags %} | ||
{% load i18n l10n grid_tags form_tags anchor_menu_tags icon_tags button_tags %} | ||
|
||
{% block sidebar_content %} | ||
{% anchor_menu anchors=anchors desktop=True %} | ||
{% endblock sidebar_content %} | ||
|
||
{% block extra_head %} | ||
{{form.media}} | ||
{{ form.media }} | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<h1 class="h1" id="title"> | ||
{% trans "Profiel bewerken" %} | ||
</h1> | ||
|
||
{% render_form id="profile-edit" method="POST" form=form form_action=form_action enctype="multipart/form-data" %} | ||
{% csrf_token %} | ||
|
||
{% with request.user as user %} | ||
{% if user.is_digid_user_with_brp %} | ||
{% input form.display_name %} | ||
{% input form.email %} | ||
{% input form.phonenumber %} | ||
{% if user.contact_type == "begeleider" %} | ||
{% input form.image no_help=True %} | ||
{% image_crop form.cropping %} | ||
{% endif %} | ||
{% else %} | ||
{% input form.first_name %} | ||
{% input form.infix %} | ||
{% input form.last_name %} | ||
{% input form.display_name %} | ||
{% input form.email %} | ||
{% input form.phonenumber %} | ||
{% input form.street %} | ||
{% input form.housenumber %} | ||
{% input form.postcode %} | ||
{% input form.city %} | ||
{% if user.contact_type == "begeleider" %} | ||
{% input form.image no_help=True %} | ||
{% image_crop form.cropping %} | ||
{% endif %} | ||
{% endif %} | ||
{% endwith %} | ||
{% form_actions primary_text=_("Opslaan") primary_icon="arrow_forward" secondary_href='profile:detail' secondary_text=_('Terug') secondary_icon='arrow_backward' secondary_icon_position="before" enctype="multipart/form-data" %} | ||
{% endrender_form %} | ||
|
||
<div class="profile__grid"> | ||
<h1 class="h1" id="title"> | ||
{% trans "Bewerk contactgegevens" %} | ||
</h1> | ||
|
||
{% render_grid %} | ||
{% render_column start=0 span=8 %} | ||
|
||
{% render_form id="profile-edit" method="POST" form=form form_action=form_action enctype="multipart/form-data" %} | ||
{% csrf_token %} | ||
|
||
{% with request.user as user %} | ||
{% if user.is_digid_user_with_brp %} | ||
{% input form.display_name %} | ||
{% input form.email %} | ||
{% input form.phonenumber %} | ||
{% if user.contact_type == "begeleider" %} | ||
{% input form.image no_help=True %} | ||
{% image_crop form.cropping %} | ||
{% endif %} | ||
{% else %} | ||
{% input form.first_name %} | ||
{% input form.infix %} | ||
{% input form.last_name %} | ||
{% input form.display_name %} | ||
{% input form.email %} | ||
{% input form.phonenumber %} | ||
{% input form.street %} | ||
{% input form.housenumber %} | ||
{% input form.postcode %} | ||
{% input form.city %} | ||
{% if user.contact_type == "begeleider" %} | ||
{% input form.image no_help=True %} | ||
{% image_crop form.cropping %} | ||
{% endif %} | ||
{% endif %} | ||
{% endwith %} | ||
<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> | ||
{% endrender_form %} | ||
|
||
{% endrender_column %} | ||
{% endrender_grid %} | ||
</div> | ||
|
||
{% 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.