From 58c739c4e66dc4228c84afbff050583d7009faa1 Mon Sep 17 00:00:00 2001 From: Aatish Neupane Date: Sat, 20 Oct 2018 12:46:49 +0545 Subject: [PATCH] hide screening question title if job has no screening questions --- jobs/templates/jobs/application_form.html | 8 +++++--- jobs/templates/jobs/job_list.html | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/jobs/templates/jobs/application_form.html b/jobs/templates/jobs/application_form.html index 9bf681f..5cf8066 100644 --- a/jobs/templates/jobs/application_form.html +++ b/jobs/templates/jobs/application_form.html @@ -3,9 +3,11 @@
{% csrf_token %} {{ form |crispy }} -

Screening Questions

- {{ answer_form |crispy }} - + {% if answer_form.forms %} +

Screening Questions

+ {{ answer_form |crispy }} + {% endif %} +
{{form.media}}
diff --git a/jobs/templates/jobs/job_list.html b/jobs/templates/jobs/job_list.html index 66a8e06..58f84ac 100644 --- a/jobs/templates/jobs/job_list.html +++ b/jobs/templates/jobs/job_list.html @@ -18,7 +18,7 @@ {% endfor %}

{{ job.description }}

- Apply + Apply {% endfor %}