Add context for household member editor form:

* add context for accompanying period, if indicated in a query
parameter;
* expand automatically household suggestion, if indicated in a query
parameter
This commit is contained in:
2021-06-28 11:23:30 +02:00
parent 9aa3974071
commit cd6b5c9a39
6 changed files with 65 additions and 7 deletions

View File

@@ -39,12 +39,15 @@
<ul>
{% for p in withoutHousehold %}
<li>
<input type="checkbox" name="persons[]" value="{{ p.id }}" />
<input type="checkbox" name="persons[]" value="{{ p.id }}" checked />
{{ p|chill_entity_render_box }}
</li>
{% endfor %}
</ul>
<input type="hidden" name="expand_suggestions" value="true" />
<input type="hidden" name="accompanying_period_id", value="{{ accompanyingCourse.id }}" />
<ul class="record_actions">
<li>
<button type="submit" class="sc-button bt-edit">