File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 15
15
{% include 'bootstrap_form_field_label.html' with field=field class='col-md-3 pe-4' %}
16
16
< div class ="col-md-7 card collapsible overflow-visible ">
17
17
< div class ="card-header d-flex ">
18
- < a class ="collapse-toggle collapsed "
18
+ < a class ="collapse-toggle {% if collapse_participants and evaluation.participants.count > 0 %} collapsed{% else %}show{% endif %} "
19
19
data-bs-toggle ="collapse " href ="#contributor-{{ contribution_result.contributor.id }} "
20
20
aria-controls ="contributor-{{ contribution_result.contributor.id }} ">
21
21
</ a >
22
22
< span class ="badge rounded-pill badge-btn ms-auto "> {{ evaluation.participants.count }} </ span >
23
23
</ div >
24
- < div class ="collapse {% if False %} show{% endif %} " id ="contributor-{{ contribution_result.contributor.id }} ">
24
+ < div class ="{% if collapse_participants and evaluation.participants.count > 0 %}collapse{% else %} show{% endif %} " id ="contributor-{{ contribution_result.contributor.id }} ">
25
25
< div class ="card-body ">
26
26
{% include 'bootstrap_form_field_widget.html' with field=field %}
27
27
</ div >
Original file line number Diff line number Diff line change 38
38
39
39
< div class ="card mb-3 ">
40
40
< div class ="card-body ">
41
- {% include 'evaluation_form_general_questionnaires.html' with evaluation=evaluation evaluation_form=evaluation_form %}
41
+ {% include 'evaluation_form_general_questionnaires.html' with evaluation=evaluation evaluation_form=evaluation_form collapse_participants=True %}
42
42
</ div >
43
43
</ div >
44
44
< div class ="card mb-3 ">
You can’t perform that action at this time.
0 commit comments