hide screening question title if job has no screening questions
This commit is contained in:
parent
34b77e8a4e
commit
58c739c4e6
2 changed files with 6 additions and 4 deletions
|
@ -3,9 +3,11 @@
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<form method="POST" action=".">
|
<form method="POST" action=".">
|
||||||
{% csrf_token %} {{ form |crispy }}
|
{% csrf_token %} {{ form |crispy }}
|
||||||
|
{% if answer_form.forms %}
|
||||||
<h4>Screening Questions</h4>
|
<h4>Screening Questions</h4>
|
||||||
{{ answer_form |crispy }}
|
{{ answer_form |crispy }}
|
||||||
<input class="btn btn-primary submit" type="submit" value="Post Job" />
|
{% endif %}
|
||||||
|
<input class="btn btn-primary submit" type="submit" value="Apply" />
|
||||||
</form>
|
</form>
|
||||||
{{form.media}}
|
{{form.media}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</h6>
|
</h6>
|
||||||
<p class="card-text">{{ job.description }}</p>
|
<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>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in a new issue