1111 < section >
1212 < h2 > Judging Team {{ team }}</ h2 >
1313 < div class ="d-flex flex-wrap justify-content-around my-2 my-md-4 ">
14+ < div >
15+ < a href ="/teams/{{team.id}}/ " class ="btn btn-outline-info mb-3 mb-md-0 " target ="_blank "> View Team Page</ a >
16+ </ div >
1417 < div >
1518 < a href ="{{ project.github_url }} " class ="btn btn-outline-info mb-3 mb-md-0 " target ="_blank "> View Project Repo</ a >
1619 </ div >
@@ -20,55 +23,43 @@ <h2>Judging Team {{ team }}</h2>
2023 </ div >
2124 </ section >
2225
23- < section class ="container ">
24- <!-- judging form -->
25- < form class ="hack-score-form tex-center " action ="{% url 'hackathon:judging' hackathon.id team.id %} " method ="post ">
26- {% csrf_token %}
27- < div class =" row justify-content-around " >
26+ < section class ="container-fluid ">
27+ < form class ="hack-score-form text-center " action ="{% url 'hackathon:judging' hackathon.id team.id %} " method ="post ">
28+ < div class ="row justify-content-around ">
2829 {% for category in score_categories %}
29- < div class ="col-12 col-md-6 mb-3 mb-md-4 p-0 p-md-2 ">
30- < div class ="shadow p-3 bg-white rounded mx-3 ">
31- < div class ="row ">
32- < div class ="col-32 order-12 col-md-3 order-md-1 mt-2 input-group ">
33- < select required class ="custom-select " name ="score_{{ category.id }} ">
34- < option selected disabled value =""> Score</ option >
35- <!-- using custom get_range tag -->
36- {% for i in category.max_score|get_range:category.min_score %}
37-
38- < option value ="{{ i }} "> {{ i }}</ option >
39- {% endfor %}
40-
41- </ select >
42- </ div >
43- < div class ="col-12 order-1 col-md-9 order-md-12 text-left ">
44- < h5 class ="hack-score-cat-name "> < strong > {{ category }}</ strong > </ h5 >
45- </ div >
30+ < div class ="col-12 col-md-4 mb-3 mb-md-4 p-0 p-md-2 ">
31+
32+ < div class ="card ">
33+ < div class ="card-body ">
34+ < div class ="card-title ">
35+ < h5 class ="hack-score-cat-name "> < strong > {{ category }}</ strong > </ h5 >
4636 </ div >
47- < div class ="row ">
48- < div class ="col-12 my-2 text-left ">
49- < p class ="mb-0 "> some description here... probably something one liner or max two</ p >
50- < p class ="mb-0 ">
51- < em > < small > descr. field needed in ScoreCat model</ small > </ em >
37+ < div class ="card-text ">
38+
39+ < select required class ="custom-select " name ="score_{{ category.id }} ">
40+ < option selected disabled value =""> Score</ option >
41+ <!-- using custom get_range tag -->
42+ {% for i in category.max_score|get_range:category.min_score %}
43+ < option value ="{{ i }} "> {{ i }}</ option >
44+ {% endfor %}
45+ </ select >
46+ < p >
47+
5248 </ p >
5349 </ div >
54- </ div >
55-
56-
57-
5850 </ div >
5951 </ div >
60- {% endfor %}
52+
6153 </ div >
62- < div class ="row d-flex justify-content-center ">
63- < div class ="mt-1 mb-5 ">
64- < button class ="btn-lg btn-ci mt-1 " type ="submit " value ="Submit "> Submit scores</ button >
65- </ div >
54+ {% endfor %}
55+ </ div >
56+ < div class ="row d-flex justify-content-center ">
57+ < div class ="mt-1 mb-5 ">
58+ < button class ="btn-lg btn-ci mt-1 " type ="submit " value ="Submit "> Submit scores</ button >
6659 </ div >
67-
60+ </ div >
6861 </ form >
69-
7062 </ section >
7163
72-
7364</ div >
7465{% endblock %}
0 commit comments