-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: (continue) adding support for dependent answers
- Loading branch information
1 parent
4bc14ee
commit 193457a
Showing
3 changed files
with
24 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
fahari/templates/fragments/atoms/sims/sub_question_capture_question_answer_block.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{% load static i18n compress %} | ||
<div class="row"> | ||
<div class="col"> | ||
{% include "fragments/atoms/sims/capture_question_answer_block.html" %} | ||
</div> | ||
</div> | ||
{% with question as parent_question %} | ||
{% for question in parent_question.sub_questions.active.by_precedence %} | ||
{% include "fragments/atoms/sims/sub_question_capture_question_answer_block.html" %} | ||
{% endfor %} | ||
{% endwith %} |
11 changes: 11 additions & 0 deletions
11
fahari/templates/fragments/atoms/sims/sub_question_details_and_comment_block.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{% load static i18n compress %} | ||
{{ question.precedence }}. | ||
{% include "fragments/atoms/sims/question_details_and_comment_block.html" %} | ||
|
||
<div class="col border-left border-secondary"> | ||
{% with question as parent_question %} | ||
{% for question in parent_question.sub_questions.active.by_precedence %} | ||
{% include "fragments/atoms/sims/sub_question_details_and_comment_block.html" %} | ||
{% endfor %} | ||
{% endwith %} | ||
</div> |