Skip to content

Commit

Permalink
allow html in criteria and clarifications
Browse files Browse the repository at this point in the history
  • Loading branch information
struan committed May 23, 2024
1 parent ef1a534 commit a0fb7a2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,15 @@ <h2 class="h4 mb-0 mw-40em">
<div class="d-sm-flex mx-n3 text-muted">
<details class="mt-3 mt-sm-0 mx-3 mw-30em">
<summary class="fw-bold mb-2">Criteria</summary>
{% autoescape off %}
{{ q_form.question_obj.criteria|linebreaks }}
{% endautoescape %}
</details>
<details class="mt-3 mt-sm-0 mx-3 mw-30em">
<summary class="fw-bold mb-2">Clarifications</summary>
{% autoescape off %}
{{ q_form.question_obj.clarifications|linebreaks }}
{% endautoescape %}
</details>
</div>
<div class="row gx-lg-5">
Expand Down
4 changes: 4 additions & 0 deletions crowdsourcer/templates/crowdsourcer/authority_questions.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,15 @@ <h3 class="mb-4 mb-md-5 text-success">
<div class="col-md-4 offset-md-1 order-md-2 mb-3 mb-sm-4">
<details class="text-muted">
<summary class="fw-bold mb-2">Criteria</summary>
{% autoescape off %}
{{q_form.question_obj.criteria|linebreaks }}
{% endautoescape %}
</details>
<details class="text-muted">
<summary class="fw-bold mb-2">Clarifications</summary>
{% autoescape off %}
{{q_form.question_obj.clarifications|linebreaks }}
{% endautoescape %}
</details>
</div>
<div class="col-md-7 order-md-1">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,15 @@ <h3 class="mb-4 mb-md-5 text-success">
<div class="col-md-4 offset-md-1 order-md-2 mb-3 mb-sm-4">
<details class="text-muted">
<summary class="fw-bold mb-2">Criteria</summary>
{% autoescape off %}
{{q_form.question_obj.criteria|linebreaks }}
{% endautoescape %}
</details>
<details class="text-muted">
<summary class="fw-bold mb-2">Clarifications</summary>
{% autoescape off %}
{{q_form.question_obj.clarifications|linebreaks }}
{% endautoescape %}
</details>
</div>
<div class="col-md-7 order-md-1">
Expand Down

0 comments on commit a0fb7a2

Please sign in to comment.