fix: job reporting

This commit is contained in:
Jannat Patel
2022-01-11 15:10:31 +05:30
parent 8fff1cd817
commit e214573cd1
11 changed files with 147 additions and 59 deletions

View File

@@ -1,5 +1,4 @@
{% extends "templates/base.html" %}
{% from "www/hackathons/macros/card.html" import null_card %}
{% block title %}{{ _('Job Openings') }}{% endblock %}
{% block content %}
@@ -16,20 +15,8 @@
<div class="job-card-parent">
{% for job in jobs %}
<div class="common-card-style course-card">
<div class="job-card">
<div class="avatar avatar-large" title="{{ job.company_name}}">
<span class="avatar-frame company-logo" style="background-image: url( {{ job.company_logo | urlencode }} );"></span>
</div>
<div class="job-card-info">
<div class="d-flex mb-1">
<div class="course-card-pills">{{ _(job.type) }}</div>
<div class="course-card-pills">{{ job.location }}</div>
</div>
<div class="card-heading">{{ _(job.job_title) }}</div>
<div>{{ job.company_name }}</div>
</div>
<div class="small">Posted on: {{ frappe.utils.format_date(job.creation, "medium") }}</div>
</div>
{% set show_edit_link = False %}
{% include "school/templates/job_card.html" %}
<a class="stretched-link" href="/jobs/{{ job.name }}"></a>
</div>
{% endfor %}
@@ -37,8 +24,8 @@
{% else %}
<div class="empty-state text-center">
<img class="icon icon-xl" src="/assets/frappe/icons/timeless/message.svg">
<div class="course-home-headings mt-4 mb-0" style="color: inherit;"> {{ _("No open positions") }} </div>
<div class="small mb-6"> {{ _("There are no job openings available.") }} </div>
<div class="course-home-headings mt-4 mb-0" style="color: inherit;"> {{ _("No open jobs") }} </div>
<div class="small mb-6"> {{ _("There are no job openings at present.") }} </div>
{% if allow_posting %}
<a class="button is-secondary dark-links m-auto" href="/job-opportunity?new=1">{{ _("Post a Job") }}</a>
{% endif %}