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">
|
||||
<form method="POST" action=".">
|
||||
{% csrf_token %} {{ form |crispy }}
|
||||
{% if answer_form.forms %}
|
||||
<h4>Screening Questions</h4>
|
||||
{{ 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.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 %}
|
||||
|
|
Loading…
Reference in a new issue