fix: new module called job

This commit is contained in:
Jannat Patel
2021-12-30 10:08:15 +05:30
parent b1b8f202c9
commit 7a5d39cc94
15 changed files with 53 additions and 27 deletions

View File

@@ -12,6 +12,7 @@
"column_break_5", "column_break_5",
"type", "type",
"status", "status",
"job_opportunity_status",
"section_break_6", "section_break_6",
"description", "description",
"company_details_section", "company_details_section",
@@ -38,6 +39,10 @@
"label": "Location", "label": "Location",
"reqd": 1 "reqd": 1
}, },
{
"fieldname": "column_break_5",
"fieldtype": "Column Break"
},
{ {
"fieldname": "type", "fieldname": "type",
"fieldtype": "Select", "fieldtype": "Select",
@@ -45,10 +50,6 @@
"options": "Full Time\nPart Time\nFreelance\nContract", "options": "Full Time\nPart Time\nFreelance\nContract",
"reqd": 1 "reqd": 1
}, },
{
"fieldname": "column_break_5",
"fieldtype": "Column Break"
},
{ {
"default": "Pending", "default": "Pending",
"fieldname": "status", "fieldname": "status",
@@ -56,7 +57,18 @@
"in_list_view": 1, "in_list_view": 1,
"in_standard_filter": 1, "in_standard_filter": 1,
"label": "Status", "label": "Status",
"options": "Pending\nApproved\nRejected\nClosed" "options": "Pending\nApproved\nRejected"
},
{
"default": "Open",
"fieldname": "job_opportunity_status",
"fieldtype": "Select",
"label": "Job Opportunity Status",
"options": "Open\nClosed"
},
{
"fieldname": "section_break_6",
"fieldtype": "Section Break"
}, },
{ {
"fieldname": "description", "fieldname": "description",
@@ -83,16 +95,6 @@
"label": "Company Website", "label": "Company Website",
"reqd": 1 "reqd": 1
}, },
{
"fieldname": "section_break_6",
"fieldtype": "Section Break"
},
{
"fieldname": "application_link",
"fieldtype": "Data",
"label": "Application Form Link",
"reqd": 1
},
{ {
"fieldname": "column_break_11", "fieldname": "column_break_11",
"fieldtype": "Column Break" "fieldtype": "Column Break"
@@ -101,13 +103,19 @@
"fieldname": "company_logo", "fieldname": "company_logo",
"fieldtype": "Attach Image", "fieldtype": "Attach Image",
"label": "Company Logo" "label": "Company Logo"
},
{
"fieldname": "application_link",
"fieldtype": "Data",
"label": "Application Form Link",
"reqd": 1
} }
], ],
"index_web_pages_for_search": 1, "index_web_pages_for_search": 1,
"links": [], "links": [],
"modified": "2021-12-27 19:46:50.881715", "modified": "2021-12-30 10:04:01.049256",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Community", "module": "Job",
"name": "Job Opportunity", "name": "Job Opportunity",
"naming_rule": "Expression", "naming_rule": "Expression",
"owner": "Administrator", "owner": "Administrator",
@@ -128,15 +136,18 @@
"create": 1, "create": 1,
"email": 1, "email": 1,
"export": 1, "export": 1,
"if_owner": 1,
"print": 1, "print": 1,
"read": 1, "read": 1,
"report": 1, "report": 1,
"role": "All", "role": "All",
"select": 1,
"share": 1, "share": 1,
"write": 1 "write": 1
} }
], ],
"sort_field": "modified", "sort_field": "modified",
"sort_order": "DESC", "sort_order": "DESC",
"states": [] "states": [],
"title_field": "job_title"
} }

View File

View File

@@ -19,9 +19,9 @@
"is_standard": 1, "is_standard": 1,
"login_required": 1, "login_required": 1,
"max_attachment_size": 0, "max_attachment_size": 0,
"modified": "2021-12-27 18:18:29.558856", "modified": "2021-12-30 10:03:52.681310",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Community", "module": "Job",
"name": "job-opportunity", "name": "job-opportunity",
"owner": "Administrator", "owner": "Administrator",
"payment_button_label": "Buy Now", "payment_button_label": "Buy Now",
@@ -73,6 +73,20 @@
"reqd": 1, "reqd": 1,
"show_in_filter": 0 "show_in_filter": 0
}, },
{
"allow_read_on_all_link_options": 0,
"default": "Open",
"fieldname": "job_opportunity_status",
"fieldtype": "Select",
"hidden": 0,
"label": "Job Opportunity Status",
"max_length": 0,
"max_value": 0,
"options": "Open\nClosed",
"read_only": 0,
"reqd": 0,
"show_in_filter": 0
},
{ {
"allow_read_on_all_link_options": 0, "allow_read_on_all_link_options": 0,
"fieldname": "company_name", "fieldname": "company_name",

View File

@@ -3,3 +3,4 @@ Hackathon
LMS LMS
Conference Conference
Event Management Event Management
Job

View File

@@ -1,12 +1,12 @@
{% extends "templates/base.html" %} {% extends "templates/base.html" %}
{% from "www/hackathons/macros/card.html" import null_card %} {% from "www/hackathons/macros/card.html" import null_card %}
{% block title %}{{ 'Job Openings' }}{% endblock %} {% block title %}{{ _('Job Openings') }}{% endblock %}
{% block content %} {% block content %}
<div class="common-page-style"> <div class="common-page-style">
<div class="container"> <div class="container">
<a class="button is-primary pull-right" href="/job-opportunity?new=1">Post a Job</a> <a class="button is-primary pull-right" href="/job-opportunity">{{ _("Post a Job") }}</a>
<div class="course-home-headings"> Job Openings </div> <div class="course-home-headings">{{ _("Job Openings") }}</div>
<div class="cards-parent"> <div class="cards-parent">
{% for job in jobs %} {% for job in jobs %}
<div class="common-card-style course-card"> <div class="common-card-style course-card">

View File

@@ -1,6 +1,6 @@
{% extends "templates/base.html" %} {% extends "templates/base.html" %}
{% from "www/hackathons/macros/card.html" import null_card %} {% from "www/hackathons/macros/card.html" import null_card %}
{% block title %}{{ 'Job Openings' }}{% endblock %} {% block title %}{{ job.job_title }}{% endblock %}
{% block content %} {% block content %}
@@ -26,7 +26,7 @@
</div> </div>
<div class="job-description-section"> <div class="job-description-section">
<div>{{ job.description }}</div> <div>{{ job.description }}</div>
<a class="button is-primary mt-5" href="{{ job.application_link }}">Apply Now</a> <a class="button is-primary mt-5" href="{{ job.application_link }}">{{ _("Apply Now") }}</a>
</div> </div>
</div> </div>
</div> </div>
@@ -36,7 +36,7 @@
{% macro BreadCrumb(job) %} {% macro BreadCrumb(job) %}
<div class="breadcrumb"> <div class="breadcrumb">
<a class="dark-links" href="/jobs">Job Openings</a> <a class="dark-links" href="/jobs">{{ _("Job Openings") }}</a>
<img class="ml-1 mr-1" src="/assets/school/icons/chevron-right.svg"> <img class="ml-1 mr-1" src="/assets/school/icons/chevron-right.svg">
<span class="muted-text">{{ job.job_title }}</span> <span class="muted-text">{{ job.job_title }}</span>
</div> </div>