Commit fdcdb90 1 parent e091c13 commit fdcdb90 Copy full SHA for fdcdb90
File tree 5 files changed +17
-52
lines changed
crowdsourcer/templates/crowdsourcer
5 files changed +17
-52
lines changed Original file line number Diff line number Diff line change @@ -14,19 +14,7 @@ <h1 class="mb-3 mb-md-4">
14
14
</ h1 >
15
15
16
16
< div class ="sticky-top py-3 bg-white border-bottom " style ="margin-bottom: -1px; ">
17
- < div class ="dropdown ">
18
- < button class ="btn btn-outline-secondary dropdown-toggle " id ="navbarDropdown " data-bs-toggle ="dropdown " aria-expanded ="false ">
19
- Skip to question
20
- </ button >
21
- < ul class ="dropdown-menu " aria-labelledby ="navbarDropdown ">
22
- {% for q_form in form %}
23
- < li > < a class ="dropdown-item d-flex " style ="max-width: 30em; white-space: normal; " href ="#q{{q_form.question_obj.number_and_part}} ">
24
- < span style ="width: 2em; flex: 0 0 auto; "> Q{{q_form.question_obj.number_and_part}}</ span >
25
- < span class ="text-muted fs-7 ms-3 "> {{ q_form.question_obj.description }}</ span >
26
- </ a > </ li >
27
- {% endfor %}
28
- </ ul >
29
- </ div >
17
+ {% include "crowdsourcer/includes/skip_questions_dropdown.html" with form=form%}
30
18
</ div >
31
19
32
20
{% if message %}
Original file line number Diff line number Diff line change @@ -20,19 +20,7 @@ <h1 class="mb-3 mb-md-4">
20
20
</ div >
21
21
{% endif %}
22
22
23
- < div class ="dropdown ">
24
- < button class ="btn btn-outline-secondary dropdown-toggle " id ="navbarDropdown " data-bs-toggle ="dropdown " aria-expanded ="false ">
25
- Skip to question
26
- </ button >
27
- < ul class ="dropdown-menu " aria-labelledby ="navbarDropdown ">
28
- {% for q_form in form %}
29
- < li > < a class ="dropdown-item d-flex " style ="max-width: 30em; white-space: normal; " href ="#q{{q_form.question_obj.number_and_part}} ">
30
- < span style ="width: 2em; flex: 0 0 auto; "> Q{{q_form.question_obj.number_and_part}}</ span >
31
- < span class ="text-muted fs-7 ms-3 "> {{ q_form.question_obj.description }}</ span >
32
- </ a > </ li >
33
- {% endfor %}
34
- </ ul >
35
- </ div >
23
+ {% include "crowdsourcer/includes/skip_questions_dropdown.html" with form=form%}
36
24
</ div >
37
25
38
26
{% if message %}
Original file line number Diff line number Diff line change @@ -21,19 +21,7 @@ <h1 class="mb-3 mb-md-4">
21
21
</ div >
22
22
{% endif %}
23
23
24
- < div class ="dropdown ">
25
- < button class ="btn btn-outline-secondary dropdown-toggle " id ="navbarDropdown " data-bs-toggle ="dropdown " aria-expanded ="false ">
26
- Skip to question
27
- </ button >
28
- < ul class ="dropdown-menu " aria-labelledby ="navbarDropdown ">
29
- {% for q_form in form %}
30
- < li > < a class ="dropdown-item d-flex " style ="max-width: 30em; white-space: normal; " href ="#q{{q_form.question_obj.number_and_part}} ">
31
- < span style ="width: 2em; flex: 0 0 auto; "> Q{{q_form.question_obj.number_and_part}}</ span >
32
- < span class ="text-muted fs-7 ms-3 "> {{ q_form.question_obj.description }}</ span >
33
- </ a > </ li >
34
- {% endfor %}
35
- </ ul >
36
- </ div >
24
+ {% include "crowdsourcer/includes/skip_questions_dropdown.html" with form=form%}
37
25
</ div >
38
26
39
27
{% if message %}
Original file line number Diff line number Diff line change @@ -13,19 +13,7 @@ <h1 class="mb-3 mb-md-4">
13
13
</ h1 >
14
14
15
15
< div class ="sticky-top py-3 bg-white border-bottom " style ="margin-bottom: -1px; ">
16
- < div class ="dropdown ">
17
- < button class ="btn btn-outline-secondary dropdown-toggle " id ="navbarDropdown " data-bs-toggle ="dropdown " aria-expanded ="false ">
18
- Skip to question
19
- </ button >
20
- < ul class ="dropdown-menu " aria-labelledby ="navbarDropdown ">
21
- {% for q_form in form %}
22
- < li > < a class ="dropdown-item d-flex " style ="max-width: 30em; white-space: normal; " href ="#q{{q_form.question_obj.number_and_part}} ">
23
- < span style ="width: 2em; flex: 0 0 auto; "> Q{{q_form.question_obj.number_and_part}}</ span >
24
- < span class ="text-muted fs-7 ms-3 "> {{ q_form.question_obj.description }}</ span >
25
- </ a > </ li >
26
- {% endfor %}
27
- </ ul >
28
- </ div >
16
+ {% include "crowdsourcer/includes/skip_questions_dropdown.html" with form=form%}
29
17
</ div >
30
18
31
19
{% if message %}
Original file line number Diff line number Diff line change
1
+ < div class ="dropdown ">
2
+ < button class ="btn btn-outline-secondary dropdown-toggle " id ="navbarDropdown " data-bs-toggle ="dropdown " aria-expanded ="false ">
3
+ Skip to question
4
+ </ button >
5
+ < ul class ="dropdown-menu " aria-labelledby ="navbarDropdown " style ="max-height: 60dvh; overflow-y: auto; ">
6
+ {% for q_form in form %}
7
+ < li > < a class ="dropdown-item d-flex " style ="max-width: 30em; white-space: normal; " href ="#q{{q_form.question_obj.number_and_part}} ">
8
+ < span style ="width: 2em; flex: 0 0 auto; "> Q{{q_form.question_obj.number_and_part}}</ span >
9
+ < span class ="text-muted fs-7 ms-3 "> {{ q_form.question_obj.description }}</ span >
10
+ </ a > </ li >
11
+ {% endfor %}
12
+ </ ul >
13
+ </ div >
You can’t perform that action at this time.
0 commit comments