Skip to content

Commit

Permalink
Added Language field
Browse files Browse the repository at this point in the history
  • Loading branch information
mai-vu committed May 17, 2024
1 parent 80fdfa6 commit a52e836
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
17 changes: 16 additions & 1 deletion src/app/admin-panel/postingDetails/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,22 @@ export default function DetailsPage() {
</select>
</div>
</div>

<div>
<label className="block text-sm font-semibold leading-6 text-gray-900">
Language
</label>
<div className="mt-2.5">
<input
type="text"
name="language"
value={jobPosting.language || ''}
onChange={handleChange}
placeholder="Language"
required
className="block w-full rounded-md border-0 px-3.5 py-2 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"
/>
</div>
</div>
<div className="sm:col-span-2">
<label className="block text-sm font-semibold leading-6 text-gray-900">
Employment Type
Expand Down
1 change: 1 addition & 0 deletions src/app/api/posting.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export default new mongoose.Schema({
streetAddress: String,
addressLocality: String,
addressRegion: String,
language: String,
minCompValue: String,
maxCompValue: String,
compTimeUnit: String,
Expand Down
18 changes: 17 additions & 1 deletion src/components/ui/addJobPostingForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const AddJobPostingForm = ({ onSubmit, email }) => {
streetAddress: '',
addressLocality: '',
addressRegion: '',
language: '',
employmentType: '',
employmentSubType: '',
minCompValue: '',
Expand Down Expand Up @@ -141,7 +142,22 @@ const AddJobPostingForm = ({ onSubmit, email }) => {
</select>
</div>
</div>

<div>
<label className="block text-sm font-semibold leading-6 text-gray-900">
Language
</label>
<div className="mt-2.5">
<input
type="text"
name="language"
value={formData.language}
onChange={handleChange}
placeholder="Language"
required
className="block w-full rounded-md border-0 px-3.5 py-2 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"
/>
</div>
</div>
<div className="sm:col-span-2">
<label className="block text-sm font-semibold leading-6 text-gray-900">
Employment Type
Expand Down

0 comments on commit a52e836

Please sign in to comment.