hide screening question title if job has no screening questions

This commit is contained in:
aatish 2018-10-20 12:46:49 +05:45
parent 34b77e8a4e
commit 58c739c4e6
2 changed files with 6 additions and 4 deletions

View file

@ -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>

View file

@ -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 %}