Skip to content

Commit

Permalink
[#1794] Fixed table test
Browse files Browse the repository at this point in the history
  • Loading branch information
jiromaykin committed Oct 23, 2023
1 parent aa32a02 commit e4fdba6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
6 changes: 3 additions & 3 deletions src/open_inwoner/components/templatetags/dashboard_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,15 @@ def contactmoment_dashboard(kcm: KCMDict, **kwargs) -> dict:
config: DashboardConfig = {
"metrics": [
{
"label": _("Ontvangstdatum"),
"label": _("Ontvangstdatum: "),
"value": kcm.get("registered_date"),
},
{
"label": _("Contactwijze"),
"label": _("Contactwijze: "),
"value": kcm.get("channel"),
},
{
"label": _("Status"),
"label": _("Status: "),
"value": kcm.get("status"),
},
]
Expand Down
2 changes: 0 additions & 2 deletions src/open_inwoner/openzaak/tests/test_case_detail.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,6 @@ def test_page_displays_expected_data(self, m):
self.assertContains(response, "Coffee zaaktype")
self.assertContains(response, "Finish")
self.assertContains(response, "uploaded_document_title")
self.assertContains(response, "Foo Bar van der Bazz")
self.assertContains(response, "resultaat toelichting")

def test_page_reformats_zaak_identificatie(self, m):
self._setUpMocks(m)
Expand Down
13 changes: 6 additions & 7 deletions src/open_inwoner/templates/pages/contactmoment/detail.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
{% extends 'master.html' %}
{% load i18n anchor_menu_tags card_tags dashboard_tags file_tags grid_tags table_tags solo_tags form_tags button_tags %}

{% block sidebar_content %}
{% if contactmoment %}
{% anchor_menu anchors desktop=True %}
{% endif %}
{% endblock sidebar_content %}

{% block content %}
{% if contactmoment %}
{% render_grid %}
{% render_column span=9 %}
{% render_column span=12 %}
{# Contactmoment/dashboard. #}
<h1 class="h1" id="title">{{ page_title }}</h1>
{% contactmoment_dashboard contactmoment %}
{% endrender_column %}
{% render_column span=9 %}

{% contactmoment_table contactmoment %}
{% endrender_column %}
{% endrender_grid %}
Expand Down

0 comments on commit e4fdba6

Please sign in to comment.