fix: hide apply and report button from guest users

This commit is contained in:
Jannat Patel
2022-01-11 17:50:14 +05:30
parent 62acdde68f
commit a87e3d66a6

View File

@@ -11,10 +11,14 @@
{% include "school/templates/job_card.html" %}
<div class="p-4">
<div>{{ _(job.description) }}</div>
{% if frappe.session.user != "Guest" %}
<div class="d-flex justify-content-between mt-5">
<a class="button is-primary" href="{{ job.application_link }}">{{ _("Apply Now") }}</a>
<div class="button is-secondary" id="report">{{ _("Report this post") }}</div>
</div>
{% else %}
<p class="small alert alert-secondary text-center">Login to apply for this job.</p>
{% endif %}
</div>
</div>
</div>