35# fixed wishlist button
This commit is contained in:
parent
f75b316e43
commit
7b461d92b5
@ -205,7 +205,7 @@
|
|||||||
<script src="{% static "js/main.js" %}"></script>
|
<script src="{% static "js/main.js" %}"></script>
|
||||||
{% if user.is_authenticated and user.is_employee %}
|
{% if user.is_authenticated and user.is_employee %}
|
||||||
<script src="{% static "js/addorremove.js" %}"></script>
|
<script src="{% static "js/addorremove.js" %}"></script>
|
||||||
{% else %}
|
{% else %}
|
||||||
<script src="{% static "js/addorremovenotauth.js" %}"></script>
|
<script src="{% static "js/addorremovenotauth.js" %}"></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
@ -229,11 +229,11 @@
|
|||||||
<a href="{% url 'jobs:single_job' job.slug job.pk %}" class="btn btn-primary py-2 mr-1">Apply Job</a>
|
<a href="{% url 'jobs:single_job' job.slug job.pk %}" class="btn btn-primary py-2 mr-1">Apply Job</a>
|
||||||
|
|
||||||
{% if job.id in wish_list %}
|
{% if job.id in wish_list %}
|
||||||
<a href="javascripts:void(0);" id="jobwl{{ job.id }}" title="Remove from my wish list" onclick="addorremove({{ job.id }})" class="btn btn-danger rounded-circle btn-favorite d-flex align-items-center">
|
<a href="javascripts:void(0);" id="jobwl{{ job.id }}" title="Remove from my wish list" data-wl="1" onclick="addorremove({{ job.id }})" class="btn btn-danger rounded-circle btn-favorite d-flex align-items-center">
|
||||||
<span class="icon-heart"></span>
|
<span class="icon-heart"></span>
|
||||||
</a>
|
</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
<a href="javascripts:void(0);" id="jobwl{{ job.id }}" title="Add to my wish list" onclick="addorremove({{ job.id }})" class="btn btn-primary rounded-circle btn-favorite d-flex align-items-center">
|
<a href="javascripts:void(0);" id="jobwl{{ job.id }}" title="Add to my wish list" data-wl="0" onclick="addorremove({{ job.id }})" class="btn btn-primary rounded-circle btn-favorite d-flex align-items-center">
|
||||||
<span class="icon-heart"></span>
|
<span class="icon-heart"></span>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user