Commit 58c739c4 authored by Aatish Neupane's avatar Aatish Neupane

hide screening question title if job has no screening questions

parent 34b77e8a
......@@ -3,9 +3,11 @@
<div class="col-md-12">
<form method="POST" action=".">
{% csrf_token %} {{ form |crispy }}
<h4>Screening Questions</h4>
{{ answer_form |crispy }}
<input class="btn btn-primary submit" type="submit" value="Post Job" />
{% if answer_form.forms %}
<h4>Screening Questions</h4>
{{ answer_form |crispy }}
{% endif %}
<input class="btn btn-primary submit" type="submit" value="Apply" />
</form>
{{form.media}}
</div>
......
......@@ -18,7 +18,7 @@
{% endfor %}
</h6>
<p class="card-text">{{ job.description }}</p>
<a href="#" class="card-link">Apply</a>
<a href="{% url 'jobs:job_apply' job.pk %}" class="card-link">Apply</a>
</div>
</div>
{% endfor %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment