manager: display ids of guardians in shared custody agenda settings (#82957)
gitea/chrono/pipeline/head This commit looks good Details

This commit is contained in:
Valentin Deniaud 2023-11-21 18:09:17 +01:00
parent 0afa7b9244
commit db57ef6cf7
2 changed files with 12 additions and 1 deletions

View File

@ -7,7 +7,16 @@
{% endblock %}
{% block appbar %}
<h2>{% trans "Settings" %}</h2>
<h2>
{% trans "Settings" %}
<span class="identifier">
[
{% trans "guardians identifiers:" %} {{ agenda.first_guardian.user_external_id }}, {{ agenda.second_guardian.user_external_id }}
/
{% trans "child identifier:" %} {{ agenda.child.user_external_id }}
]
</span>
</h2>
<span class="actions">
{% if user.is_staff %}
<a class="extra-actions-menu-opener"></a>

View File

@ -38,6 +38,8 @@ def test_shared_custody_agenda_settings_rules(app, admin_user):
resp = app.get('/manage/shared-custody/%s/' % agenda.pk).follow()
resp = resp.click('Settings')
assert 'Custody agenda of John Doe and Jane Doe' in resp.text
assert 'guardians identifiers: father_id, mother_id' in resp.text
assert 'child identifier: child_id' in resp.text
assert 'Custody rules are not complete.' in resp.text
assert 'This agenda doesn\'t have any custody rules yet.' in resp.text