Merge pull request #1466 from pateljannat/issues-97

fix: country details in job page and form
This commit is contained in:
Jannat Patel
2025-04-25 10:19:32 +05:30
committed by GitHub
4 changed files with 17 additions and 8 deletions

View File

@@ -98,7 +98,7 @@
{{ __('Location') }} {{ __('Location') }}
</span> </span>
<span class="text-sm font-semibold"> <span class="text-sm font-semibold">
{{ job.data.location }} {{ job.data.location }}, {{ job.data.country }}
</span> </span>
</div> </div>
</div> </div>

View File

@@ -14,16 +14,21 @@
{{ __('Job Details') }} {{ __('Job Details') }}
</div> </div>
<div class="grid grid-cols-2 gap-5"> <div class="grid grid-cols-2 gap-5">
<div> <div class="space-y-4">
<FormControl <FormControl
v-model="job.job_title" v-model="job.job_title"
:label="__('Title')" :label="__('Title')"
class="mb-4"
:required="true" :required="true"
/> />
<FormControl <FormControl
v-model="job.location" v-model="job.location"
:label="__('Location')" :label="__('City')"
:required="true"
/>
<Link
v-model="job.country"
doctype="Country"
:label="__('Country')"
:required="true" :required="true"
/> />
</div> </div>
@@ -217,6 +222,7 @@ const imageResource = createResource({
const job = reactive({ const job = reactive({
job_title: '', job_title: '',
location: '', location: '',
country: '',
type: 'Full Time', type: 'Full Time',
status: 'Open', status: 'Open',
company_name: '', company_name: '',

View File

@@ -281,6 +281,7 @@ def get_job_details(job):
[ [
"job_title", "job_title",
"location", "location",
"country",
"type", "type",
"company_name", "company_name",
"company_logo", "company_logo",

View File

@@ -91,7 +91,7 @@
"fetch_from": "member.username", "fetch_from": "member.username",
"fieldname": "member_username", "fieldname": "member_username",
"fieldtype": "Data", "fieldtype": "Data",
"label": "Memeber Username", "label": "Member Username",
"read_only": 1 "read_only": 1
}, },
{ {
@@ -145,10 +145,11 @@
"options": "LMS Certificate" "options": "LMS Certificate"
} }
], ],
"grid_page_length": 50,
"index_web_pages_for_search": 1, "index_web_pages_for_search": 1,
"links": [], "links": [],
"modified": "2025-02-21 17:11:37.986157", "modified": "2025-04-25 10:06:25.824119",
"modified_by": "Administrator", "modified_by": "sayali@frappe.io",
"module": "LMS", "module": "LMS",
"name": "LMS Enrollment", "name": "LMS Enrollment",
"owner": "Administrator", "owner": "Administrator",
@@ -192,6 +193,7 @@
} }
], ],
"quick_entry": 1, "quick_entry": 1,
"row_format": "Dynamic",
"show_title_field_in_link": 1, "show_title_field_in_link": 1,
"sort_field": "modified", "sort_field": "modified",
"sort_order": "DESC", "sort_order": "DESC",