Spaces:
Runtime error
Runtime error
add conditional jinja2 statements
Browse files- templates/job_list.html +31 -8
templates/job_list.html
CHANGED
@@ -41,7 +41,10 @@
|
|
41 |
<h1 class="sectiontitle">{{ jobtitle }}</h1>
|
42 |
<p class="sectiontext">{{ jobdescription }}</p>
|
43 |
</section>
|
|
|
44 |
<h1 class="pagesubtitle">About the Job</h1>
|
|
|
|
|
45 |
<section>
|
46 |
<h1 class="sectiontitle">Work Tasks:</h1>
|
47 |
<ui class="sectionlist"></ui>
|
@@ -50,39 +53,59 @@
|
|
50 |
{% endfor %}
|
51 |
</ui>
|
52 |
</section>
|
|
|
|
|
53 |
<section>
|
54 |
<h1 class="sectiontitle">Other Work Activities:</h1>
|
55 |
-
<p class="sectiontext">{{ activities
|
56 |
</section>
|
|
|
|
|
57 |
<section>
|
58 |
<h1 class="sectiontitle">Work Conditions:</h1>
|
59 |
-
<p class="sectiontext">{{ conditions
|
60 |
</section>
|
|
|
|
|
61 |
<section>
|
62 |
<h1 class="sectiontitle">Compensation:</h1>
|
63 |
-
<p class="sectiontext">{{ compensation
|
64 |
</section>
|
|
|
|
|
65 |
<h1 class="pagesubtitle">About the Qualified Candidate</h1>
|
|
|
|
|
|
|
66 |
<section>
|
67 |
<h1 class="sectiontitle">Has Degree(s) &/or License(s)/Certification(s) in:</h1>
|
68 |
-
<p class="sectiontext">{{ preparation
|
69 |
</section>
|
|
|
|
|
70 |
<section>
|
71 |
<h1 class="sectiontitle">Knows About:</h1>
|
72 |
-
<p class="sectiontext">{{ knowledge
|
73 |
</section>
|
|
|
|
|
74 |
<section>
|
75 |
<h1 class="sectiontitle">Is Skilled at:</h1>
|
76 |
-
<p class="sectiontext">{{ skills
|
77 |
</section>
|
|
|
|
|
78 |
<section>
|
79 |
<h1 class="sectiontitle">Is Able to:</h1>
|
80 |
-
<p class="sectiontext">{{ abilities
|
81 |
</section>
|
|
|
|
|
82 |
<section>
|
83 |
<h1 class="sectiontitle">Is Interested in:</h1>
|
84 |
-
<p class="sectiontext">{{ interests
|
85 |
</section>
|
|
|
86 |
</main>
|
87 |
<footer class="footer">
|
88 |
<ul class="footer__text">
|
|
|
41 |
<h1 class="sectiontitle">{{ jobtitle }}</h1>
|
42 |
<p class="sectiontext">{{ jobdescription }}</p>
|
43 |
</section>
|
44 |
+
{% if jobtitle %}
|
45 |
<h1 class="pagesubtitle">About the Job</h1>
|
46 |
+
{% endif %}
|
47 |
+
{% if tasks %}
|
48 |
<section>
|
49 |
<h1 class="sectiontitle">Work Tasks:</h1>
|
50 |
<ui class="sectionlist"></ui>
|
|
|
53 |
{% endfor %}
|
54 |
</ui>
|
55 |
</section>
|
56 |
+
{% endif %}
|
57 |
+
{% if activities %}
|
58 |
<section>
|
59 |
<h1 class="sectiontitle">Other Work Activities:</h1>
|
60 |
+
<p class="sectiontext">{{ activities }}</p>
|
61 |
</section>
|
62 |
+
{% endif %}
|
63 |
+
{% if conditions %}
|
64 |
<section>
|
65 |
<h1 class="sectiontitle">Work Conditions:</h1>
|
66 |
+
<p class="sectiontext">{{ conditions }}</p>
|
67 |
</section>
|
68 |
+
{% endif %}
|
69 |
+
{% if compensation %}
|
70 |
<section>
|
71 |
<h1 class="sectiontitle">Compensation:</h1>
|
72 |
+
<p class="sectiontext">{{ compensation }}</p>
|
73 |
</section>
|
74 |
+
{% endif %}
|
75 |
+
{% if jobtitle %}
|
76 |
<h1 class="pagesubtitle">About the Qualified Candidate</h1>
|
77 |
+
<h1 class="pagesubtitle">We're sorry! This section is currently under construction. Please check back soon to see the characteristics necessary to be great {{ jobtitle }}.</h1>
|
78 |
+
{% endif %}
|
79 |
+
{% if preparation %}
|
80 |
<section>
|
81 |
<h1 class="sectiontitle">Has Degree(s) &/or License(s)/Certification(s) in:</h1>
|
82 |
+
<p class="sectiontext">{{ preparation }}</p>
|
83 |
</section>
|
84 |
+
{% endif %}
|
85 |
+
{% if knowledge %}
|
86 |
<section>
|
87 |
<h1 class="sectiontitle">Knows About:</h1>
|
88 |
+
<p class="sectiontext">{{ knowledge }}</p>
|
89 |
</section>
|
90 |
+
{% endif %}
|
91 |
+
{% if skills %}
|
92 |
<section>
|
93 |
<h1 class="sectiontitle">Is Skilled at:</h1>
|
94 |
+
<p class="sectiontext">{{ skills }}</p>
|
95 |
</section>
|
96 |
+
{% endif %}
|
97 |
+
{% if abilities %}
|
98 |
<section>
|
99 |
<h1 class="sectiontitle">Is Able to:</h1>
|
100 |
+
<p class="sectiontext">{{ abilities }}</p>
|
101 |
</section>
|
102 |
+
{% endif %}
|
103 |
+
{% if interests %}
|
104 |
<section>
|
105 |
<h1 class="sectiontitle">Is Interested in:</h1>
|
106 |
+
<p class="sectiontext">{{ interests }}</p>
|
107 |
</section>
|
108 |
+
{% endif %}
|
109 |
</main>
|
110 |
<footer class="footer">
|
111 |
<ul class="footer__text">
|