Skip to content
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

💄 [#1518] Make contactmoment card clickable #648

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.contactmomenten {
margin-top: var(--spacing-giant);

/// cards on cases page
.card {
.contactmomenten__link {
text-decoration: none;
}
}
}
3 changes: 2 additions & 1 deletion src/open_inwoner/scss/components/List/_List.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
width: 100%;
overflow-y: auto;

.case-list {
.case-list,
.contactmomenten-list {
text-decoration: none;
}
}
Expand Down
1 change: 1 addition & 0 deletions src/open_inwoner/scss/components/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
@import './CardContainer/CardContainer.scss';
@import './Cases/Cases.scss';
@import './Condition/Condition.scss';
@import './Contactmomenten/Contactmomenten.scss';
@import './Contacts/Contacts.scss';
@import './Container/Container.scss';
@import './Dashboard/Dashboard.scss';
Expand Down
34 changes: 22 additions & 12 deletions src/open_inwoner/templates/pages/contactmoment/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,28 @@ <h2 class="h2" id="contactmomenten">{{ page_title }} ({{ contactmomenten|length
{% render_grid %}
{% for contactmoment in contactmomenten %}
{% render_column start=forloop.counter_0|multiply:4 span=4 %}
{% render_card compact=True stretch=True title=case.identificatie %}
{% render_list %}
{% list_item contactmoment.registered_date caption=_("Ontvangstdatum") compact=True strong=False %}
{% list_item contactmoment.channel caption=_("Contactwijze") compact=True strong=False %}
{% if contactmoment.onderwerp %}
{% list_item contactmoment.onderwerp|truncatechars:25 caption=_("Onderwerp") compact=True strong=False %}
{% else %}
{% list_item contactmoment.text|truncatechars:25 caption=_("Bericht") compact=True strong=False %}
{% endif %}
{% endrender_list %}
{% link href=contactmoment.url icon="arrow_forward" primary=True text=_("Bekijk vraag") %}
{% endrender_card %}
<div class="card card--compact card--stretch">
<div class="card__body">
<a href="{{ contactmoment.url }}" class="contactmomenten__link">
{% render_list %}
<span class="contactmomenten-list">
{% list_item contactmoment.registered_date caption=_("Ontvangstdatum") compact=True strong=False %}
{% list_item contactmoment.channel caption=_("Contactwijze") compact=True strong=False %}
{% if contactmoment.onderwerp %}
{% list_item contactmoment.onderwerp|truncatechars:25 caption=_("Onderwerp") compact=True strong=False %}
{% else %}
{% list_item contactmoment.text|truncatechars:25 caption=_("Bericht") compact=True strong=False %}
{% endif %}
</span>
{% endrender_list %}

<span class="link link--icon link--primary" aria-label="{% trans "Bekijk vraag" %}" title="{% trans "Bekijk vraag" %}">
<span class="link__text">{% trans "Bekijk vraag" %}</span>
{% icon icon="arrow_forward" icon_position="after" primary=True outlined=True %}
</span>
</a>
</div>
</div>
{% endrender_column %}
{% endfor %}
{% endrender_grid %}
Expand Down