adding missing schema for event
This commit is contained in:
@@ -4,11 +4,17 @@ mutation CreateStaff(
|
|||||||
$vendorName: String,
|
$vendorName: String,
|
||||||
$manager: String,
|
$manager: String,
|
||||||
$contactNumber: String,
|
$contactNumber: String,
|
||||||
|
$phone:String # nuevo,
|
||||||
$email: String,
|
$email: String,
|
||||||
$department: StaffDepartment,
|
$department: StaffDepartment,
|
||||||
$hubLocation: String,
|
$hubLocation: String,
|
||||||
|
$eventLocation:String, # nuevo
|
||||||
|
$address:String, # nuevo
|
||||||
|
$city:String, # nuevo
|
||||||
$track: String,
|
$track: String,
|
||||||
$position: String,
|
$position: String,
|
||||||
|
$position2:String, # nuevo
|
||||||
|
$initial:String, # nuevo
|
||||||
$profileType: ProfileType,
|
$profileType: ProfileType,
|
||||||
$employmentType: EmploymentType,
|
$employmentType: EmploymentType,
|
||||||
$english: EnglishLevel,
|
$english: EnglishLevel,
|
||||||
@@ -16,7 +22,20 @@ mutation CreateStaff(
|
|||||||
$rating: Float,
|
$rating: Float,
|
||||||
$reliabilityScore: Int,
|
$reliabilityScore: Int,
|
||||||
$backgroundCheckStatus: BackgroundCheckStatus,
|
$backgroundCheckStatus: BackgroundCheckStatus,
|
||||||
$notes: String
|
$notes: String,
|
||||||
|
$accountingComments:String, # nuevo
|
||||||
|
$shiftCoveragePercentage:Int, # nuevo
|
||||||
|
$cancellationCount:Int, # nuevo
|
||||||
|
$noShowCount:Int, # nuevo
|
||||||
|
$totalShifts:Int, # nuevo
|
||||||
|
$invoiced:Boolean, # nuevo
|
||||||
|
$englishRequired:Boolean, # nuevo
|
||||||
|
$checkIn:String, # nuevo
|
||||||
|
$scheduleDays:String, # nuevo
|
||||||
|
$replacedBy:String, # nuevo
|
||||||
|
$action:String, # nuevo
|
||||||
|
$ro:String, # nuevo
|
||||||
|
$mon:String, # nuevo
|
||||||
) @auth(level: USER) {
|
) @auth(level: USER) {
|
||||||
staff_insert(
|
staff_insert(
|
||||||
data: {
|
data: {
|
||||||
@@ -25,11 +44,17 @@ mutation CreateStaff(
|
|||||||
vendorName: $vendorName
|
vendorName: $vendorName
|
||||||
manager: $manager
|
manager: $manager
|
||||||
contactNumber: $contactNumber
|
contactNumber: $contactNumber
|
||||||
|
phone:$phone
|
||||||
email: $email
|
email: $email
|
||||||
department: $department
|
department: $department
|
||||||
hubLocation: $hubLocation
|
hubLocation: $hubLocation
|
||||||
|
eventLocation:$eventLocation
|
||||||
|
address:$address
|
||||||
|
city:$city
|
||||||
track: $track
|
track: $track
|
||||||
position: $position
|
position: $position
|
||||||
|
position2:$position2
|
||||||
|
initial:$initial
|
||||||
profileType: $profileType
|
profileType: $profileType
|
||||||
employmentType: $employmentType
|
employmentType: $employmentType
|
||||||
english: $english
|
english: $english
|
||||||
@@ -38,6 +63,19 @@ mutation CreateStaff(
|
|||||||
reliabilityScore: $reliabilityScore
|
reliabilityScore: $reliabilityScore
|
||||||
backgroundCheckStatus: $backgroundCheckStatus
|
backgroundCheckStatus: $backgroundCheckStatus
|
||||||
notes: $notes
|
notes: $notes
|
||||||
|
accountingComments:$accountingComments
|
||||||
|
shiftCoveragePercentage:$shiftCoveragePercentage
|
||||||
|
cancellationCount:$cancellationCount
|
||||||
|
noShowCount:$noShowCount
|
||||||
|
totalShifts:$totalShifts
|
||||||
|
invoiced:$invoiced
|
||||||
|
englishRequired:$englishRequired
|
||||||
|
checkIn:$checkIn
|
||||||
|
scheduleDays:$scheduleDays
|
||||||
|
replacedBy:$replacedBy
|
||||||
|
action:$action
|
||||||
|
ro:$ro
|
||||||
|
mon:$mon
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@@ -49,19 +87,38 @@ mutation UpdateStaff(
|
|||||||
$vendorName: String,
|
$vendorName: String,
|
||||||
$manager: String,
|
$manager: String,
|
||||||
$contactNumber: String,
|
$contactNumber: String,
|
||||||
|
$phone: String,
|
||||||
$email: String,
|
$email: String,
|
||||||
$department: StaffDepartment,
|
$department: StaffDepartment,
|
||||||
$hubLocation: String,
|
$hubLocation: String,
|
||||||
|
$eventLocation: String,
|
||||||
|
$address: String,
|
||||||
|
$city: String,
|
||||||
$track: String,
|
$track: String,
|
||||||
$position: String,
|
$position: String,
|
||||||
|
$position2:String,
|
||||||
|
$initial:String,
|
||||||
$profileType: ProfileType,
|
$profileType: ProfileType,
|
||||||
$employmentType: EmploymentType,
|
$employmentType: EmploymentType,
|
||||||
$english: EnglishLevel,
|
$english: EnglishLevel,
|
||||||
|
$englishRequired:Boolean # nuevo
|
||||||
$rate: Float,
|
$rate: Float,
|
||||||
$rating: Float,
|
$rating: Float,
|
||||||
$reliabilityScore: Int,
|
$reliabilityScore: Int,
|
||||||
$backgroundCheckStatus: BackgroundCheckStatus,
|
$backgroundCheckStatus: BackgroundCheckStatus,
|
||||||
$notes: String
|
$notes: String,
|
||||||
|
$accountingComments:String,
|
||||||
|
$shiftCoveragePercentage:Int,
|
||||||
|
$cancellationCount:Int,
|
||||||
|
$noShowCount:Int,
|
||||||
|
$totalShifts:Int,
|
||||||
|
$invoiced:Boolean,
|
||||||
|
$checkIn:String,
|
||||||
|
$scheduleDays:String,
|
||||||
|
$replacedBy:String,
|
||||||
|
$action:String,
|
||||||
|
$ro:String,
|
||||||
|
$mon:String,
|
||||||
) @auth(level: USER) {
|
) @auth(level: USER) {
|
||||||
staff_update(
|
staff_update(
|
||||||
id: $id,
|
id: $id,
|
||||||
@@ -71,19 +128,38 @@ mutation UpdateStaff(
|
|||||||
vendorName: $vendorName
|
vendorName: $vendorName
|
||||||
manager: $manager
|
manager: $manager
|
||||||
contactNumber: $contactNumber
|
contactNumber: $contactNumber
|
||||||
|
phone:$phone # nuevo
|
||||||
email: $email
|
email: $email
|
||||||
department: $department
|
department: $department
|
||||||
hubLocation: $hubLocation
|
hubLocation: $hubLocation
|
||||||
|
eventLocation:$eventLocation # nuevo
|
||||||
|
address:$address # nuevo
|
||||||
|
city:$city # nuevo
|
||||||
track: $track
|
track: $track
|
||||||
position: $position
|
position: $position
|
||||||
|
position2:$position2 # nuevo
|
||||||
|
initial:$initial # nuevo
|
||||||
profileType: $profileType
|
profileType: $profileType
|
||||||
employmentType: $employmentType
|
employmentType: $employmentType
|
||||||
english: $english
|
english: $english
|
||||||
|
englishRequired:$englishRequired # nuevo
|
||||||
rate: $rate
|
rate: $rate
|
||||||
rating: $rating
|
rating: $rating
|
||||||
reliabilityScore: $reliabilityScore
|
reliabilityScore: $reliabilityScore
|
||||||
backgroundCheckStatus: $backgroundCheckStatus
|
backgroundCheckStatus: $backgroundCheckStatus
|
||||||
notes: $notes
|
notes: $notes
|
||||||
|
accountingComments:$accountingComments # nuevo
|
||||||
|
shiftCoveragePercentage:$shiftCoveragePercentage # nuevo
|
||||||
|
cancellationCount:$cancellationCount # nuevo
|
||||||
|
noShowCount:$noShowCount # nuevo
|
||||||
|
totalShifts:$totalShifts # nuevo
|
||||||
|
invoiced:$invoiced # nuevo
|
||||||
|
checkIn:$checkIn # nuevo
|
||||||
|
scheduleDays:$scheduleDays # nuevo
|
||||||
|
replacedBy:$replacedBy # nuevo
|
||||||
|
action:$action # nuevo
|
||||||
|
ro:$ro # nuevo
|
||||||
|
mon:$mon # nuevo
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,19 +6,38 @@ query listStaff @auth(level: USER) {
|
|||||||
vendorName
|
vendorName
|
||||||
manager
|
manager
|
||||||
contactNumber
|
contactNumber
|
||||||
|
phone # nuevo
|
||||||
email
|
email
|
||||||
department
|
department
|
||||||
hubLocation
|
hubLocation
|
||||||
|
eventLocation # nuevo
|
||||||
|
address # nuevo
|
||||||
|
city # nuevo
|
||||||
track
|
track
|
||||||
position
|
position
|
||||||
|
position2
|
||||||
|
initial # nuevo
|
||||||
profileType
|
profileType
|
||||||
employmentType
|
employmentType
|
||||||
english
|
english
|
||||||
|
englishRequired # nuevo
|
||||||
rate
|
rate
|
||||||
rating
|
rating
|
||||||
reliabilityScore
|
reliabilityScore
|
||||||
backgroundCheckStatus
|
backgroundCheckStatus
|
||||||
notes
|
notes
|
||||||
|
accountingComments # nuevo
|
||||||
|
shiftCoveragePercentage # nuevo
|
||||||
|
cancellationCount # nuevo
|
||||||
|
noShowCount # nuevo
|
||||||
|
totalShifts # nuevo
|
||||||
|
invoiced # nuevo
|
||||||
|
checkIn # nuevo
|
||||||
|
scheduleDays # nuevo
|
||||||
|
replacedBy # nuevo
|
||||||
|
action # nuevo
|
||||||
|
ro # nuevo
|
||||||
|
mon # nuevo
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -32,11 +51,17 @@ query getStaffById(
|
|||||||
vendorName
|
vendorName
|
||||||
manager
|
manager
|
||||||
contactNumber
|
contactNumber
|
||||||
|
phone # nuevo
|
||||||
email
|
email
|
||||||
department
|
department
|
||||||
hubLocation
|
hubLocation
|
||||||
|
eventLocation # nuevo
|
||||||
|
address # nuevo
|
||||||
|
city # nuevo
|
||||||
track
|
track
|
||||||
position
|
position
|
||||||
|
position2 # nuevo
|
||||||
|
initial # nuevo
|
||||||
profileType
|
profileType
|
||||||
employmentType
|
employmentType
|
||||||
english
|
english
|
||||||
@@ -45,6 +70,19 @@ query getStaffById(
|
|||||||
reliabilityScore
|
reliabilityScore
|
||||||
backgroundCheckStatus
|
backgroundCheckStatus
|
||||||
notes
|
notes
|
||||||
|
accountingComments # nuevo
|
||||||
|
shiftCoveragePercentage # nuevo
|
||||||
|
cancellationCount # nuevo
|
||||||
|
noShowCount # nuevo
|
||||||
|
totalShifts # nuevo
|
||||||
|
invoiced # nuevo
|
||||||
|
englishRequired # nuevo
|
||||||
|
checkIn # nuevo
|
||||||
|
scheduleDays # nuevo
|
||||||
|
replacedBy # nuevo
|
||||||
|
action # nuevo
|
||||||
|
ro # nuevo
|
||||||
|
mon # nuevo
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -71,7 +109,10 @@ query filterStaff(
|
|||||||
vendorId
|
vendorId
|
||||||
vendorName
|
vendorName
|
||||||
department
|
department
|
||||||
|
hubLocation
|
||||||
|
eventLocation # nuevo
|
||||||
position
|
position
|
||||||
|
position2
|
||||||
employmentType
|
employmentType
|
||||||
english
|
english
|
||||||
rate
|
rate
|
||||||
@@ -79,5 +120,6 @@ query filterStaff(
|
|||||||
reliabilityScore
|
reliabilityScore
|
||||||
backgroundCheckStatus
|
backgroundCheckStatus
|
||||||
notes
|
notes
|
||||||
|
invoiced # nuevo
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,16 +42,22 @@ enum BackgroundCheckStatus {
|
|||||||
|
|
||||||
type Staff @table(name: "staffs") {
|
type Staff @table(name: "staffs") {
|
||||||
id: UUID! @default(expr: "uuidV4()")
|
id: UUID! @default(expr: "uuidV4()")
|
||||||
employeeName: String! @col(name: "employee_name")
|
employeeName: String! @col(name: "employee_name")
|
||||||
vendorId: String @col(name: "vendor_id") # vendor_id (FK lógica a Vendor.id)
|
initial:String@col(name:"initial") # nuevo
|
||||||
|
vendorId: String @default(expr: "auth.uid")#String @col(name: "vendor_id") # vendor_id (FK lógica a Vendor.id)
|
||||||
vendorName: String @col(name: "vendor_name")
|
vendorName: String @col(name: "vendor_name")
|
||||||
manager: String
|
manager: String
|
||||||
contactNumber: String @col(name: "contact_number")
|
contactNumber: String @col(name: "contact_number")
|
||||||
|
phone: String @col(name:"phone") # nuevo
|
||||||
email: String
|
email: String
|
||||||
department: StaffDepartment
|
department: StaffDepartment
|
||||||
hubLocation: String @col(name: "hub_location")
|
hubLocation: String @col(name: "hub_location")
|
||||||
|
eventLocation:String@col(name:"event_location") # nuevo
|
||||||
|
address:String@col(name:"address") # nuevo
|
||||||
|
city:String@col(name:"city") # nuevo
|
||||||
track: String
|
track: String
|
||||||
position: String
|
position: String
|
||||||
|
position2: String @col(name:"position_2") # nuevo
|
||||||
profileType: ProfileType @col(name: "profile_type")
|
profileType: ProfileType @col(name: "profile_type")
|
||||||
employmentType: EmploymentType @col(name: "employment_type")
|
employmentType: EmploymentType @col(name: "employment_type")
|
||||||
english: EnglishLevel
|
english: EnglishLevel
|
||||||
@@ -60,6 +66,19 @@ type Staff @table(name: "staffs") {
|
|||||||
reliabilityScore: Int @col(name: "reliability_score")
|
reliabilityScore: Int @col(name: "reliability_score")
|
||||||
backgroundCheckStatus: BackgroundCheckStatus @col(name: "background_check_status")
|
backgroundCheckStatus: BackgroundCheckStatus @col(name: "background_check_status")
|
||||||
notes: String
|
notes: String
|
||||||
|
accountingComments: String @col(name:"accounting_comments") # nuevo
|
||||||
|
shiftCoveragePercentage: Int @col(name:"shift_coverage_percentage") # nuevo
|
||||||
|
cancellationCount: Int @col(name:"cancellation_count") # nuevo
|
||||||
|
noShowCount: Int @col(name:"no_show_count") # nuevo
|
||||||
|
totalShifts: Int @col(name:"total_shifts") # nuevo
|
||||||
|
invoiced: Boolean @default(expr:"false") # nuevo
|
||||||
|
englishRequired: Boolean @col(name:"english_required")@default(expr:"false") # nuevo
|
||||||
|
checkIn: String @col(name:"check_in") # nuevo
|
||||||
|
scheduleDays: String @col(name:"schedule_days") # nuevo
|
||||||
|
replacedBy: String @col(name:"replaced_by") # nuevo
|
||||||
|
action: String # nuevo
|
||||||
|
ro: String # nuevo
|
||||||
|
mon: String # nuevo
|
||||||
createdDate: Timestamp @default(expr: "request.time")
|
createdDate: Timestamp @default(expr: "request.time")
|
||||||
updatedDate: Timestamp @default(expr: "request.time")
|
updatedDate: Timestamp @default(expr: "request.time")
|
||||||
createdBy: String @default(expr: "auth.uid")
|
createdBy: String @default(expr: "auth.uid")
|
||||||
|
|||||||
@@ -365,7 +365,7 @@ const toCamel = (value) => {
|
|||||||
}
|
}
|
||||||
if (value && typeof value === "object") {
|
if (value && typeof value === "object") {
|
||||||
return Object.entries(value).reduce((acc, [key, val]) => {
|
return Object.entries(value).reduce((acc, [key, val]) => {
|
||||||
const camelKey = key.replace(/_([a-z])/g, (_, c) => c.toUpperCase());
|
const camelKey = key.replace(/_([a-z0-9])/g, (_, c) => c.toUpperCase());
|
||||||
acc[camelKey] = toCamel(val);
|
acc[camelKey] = toCamel(val);
|
||||||
return acc;
|
return acc;
|
||||||
}, {});
|
}, {});
|
||||||
@@ -382,6 +382,7 @@ const toSnake = (value) => {
|
|||||||
return Object.entries(value).reduce((acc, [key, val]) => {
|
return Object.entries(value).reduce((acc, [key, val]) => {
|
||||||
const snakeKey = key
|
const snakeKey = key
|
||||||
.replace(/([A-Z])/g, "_$1")
|
.replace(/([A-Z])/g, "_$1")
|
||||||
|
.replace(/([a-z])([0-9]+)/g, "$1_$2")
|
||||||
.toLowerCase();
|
.toLowerCase();
|
||||||
acc[snakeKey] = toSnake(val);
|
acc[snakeKey] = toSnake(val);
|
||||||
return acc;
|
return acc;
|
||||||
|
|||||||
@@ -14,35 +14,35 @@ export default function StaffForm({ staff, onSubmit, isSubmitting }) {
|
|||||||
employee_name: "",
|
employee_name: "",
|
||||||
manager: "",
|
manager: "",
|
||||||
contact_number: "",
|
contact_number: "",
|
||||||
//phone: "",
|
phone: "",
|
||||||
email: "", // Added email field
|
email: "", // Added email field
|
||||||
department: "",
|
department: "",
|
||||||
hub_location: "",
|
hub_location: "",
|
||||||
//event_location: "",
|
event_location: "",
|
||||||
track: "",
|
track: "",
|
||||||
//address: "",
|
address: "",
|
||||||
//city: "",
|
city: "",
|
||||||
position: "",
|
position: "",
|
||||||
//position_2: "",
|
position_2: "",
|
||||||
//initial: "",
|
initial: "",
|
||||||
profile_type: "",
|
profile_type: "",
|
||||||
employment_type: "",
|
employment_type: "",
|
||||||
english: "",
|
english: "",
|
||||||
//english_required: false,
|
english_required: false,
|
||||||
//check_in: "",
|
check_in: "",
|
||||||
//replaced_by: "",
|
replaced_by: "",
|
||||||
//ro: "",
|
ro: "",
|
||||||
//mon: "",
|
mon: "",
|
||||||
//schedule_days: "",
|
schedule_days: "",
|
||||||
//invoiced: false,
|
invoiced: false,
|
||||||
//action: "",
|
action: "",
|
||||||
notes: "",
|
notes: "",
|
||||||
//accounting_comments: "",
|
accounting_comments: "",
|
||||||
rating: 0,
|
rating: 0,
|
||||||
//shift_coverage_percentage: 100,
|
shift_coverage_percentage: 100,
|
||||||
//cancellation_count: 0,
|
cancellation_count: 0,
|
||||||
//no_show_count: 0, // Added no_show_count field
|
no_show_count: 0, // Added no_show_count field
|
||||||
//total_shifts: 0,
|
total_shifts: 0,
|
||||||
reliability_score: 100
|
reliability_score: 100
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -81,7 +81,7 @@ export default function StaffForm({ staff, onSubmit, isSubmitting }) {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* <div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<Label htmlFor="initial" className="text-slate-700 font-medium">Initials</Label>
|
<Label htmlFor="initial" className="text-slate-700 font-medium">Initials</Label>
|
||||||
<Input
|
<Input
|
||||||
id="initial"
|
id="initial"
|
||||||
@@ -90,7 +90,7 @@ export default function StaffForm({ staff, onSubmit, isSubmitting }) {
|
|||||||
maxLength={3}
|
maxLength={3}
|
||||||
className="border-slate-200"
|
className="border-slate-200"
|
||||||
/>
|
/>
|
||||||
</div> */}
|
</div>
|
||||||
|
|
||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<Label htmlFor="position" className="text-slate-700 font-medium">Primary Skill</Label>
|
<Label htmlFor="position" className="text-slate-700 font-medium">Primary Skill</Label>
|
||||||
@@ -103,7 +103,7 @@ export default function StaffForm({ staff, onSubmit, isSubmitting }) {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* <div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<Label htmlFor="position_2" className="text-slate-700 font-medium">Secondary Skill</Label>
|
<Label htmlFor="position_2" className="text-slate-700 font-medium">Secondary Skill</Label>
|
||||||
<Input
|
<Input
|
||||||
id="position_2"
|
id="position_2"
|
||||||
@@ -112,7 +112,7 @@ export default function StaffForm({ staff, onSubmit, isSubmitting }) {
|
|||||||
placeholder="e.g., Dishwasher, Prep Cook"
|
placeholder="e.g., Dishwasher, Prep Cook"
|
||||||
className="border-slate-200"
|
className="border-slate-200"
|
||||||
/>
|
/>
|
||||||
</div> */}
|
</div>
|
||||||
|
|
||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<Label htmlFor="profile_type" className="text-slate-700 font-medium">Skill Level</Label>
|
<Label htmlFor="profile_type" className="text-slate-700 font-medium">Skill Level</Label>
|
||||||
@@ -187,7 +187,7 @@ export default function StaffForm({ staff, onSubmit, isSubmitting }) {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* <div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<Label htmlFor="phone" className="text-slate-700 font-medium">Additional Phone</Label>
|
<Label htmlFor="phone" className="text-slate-700 font-medium">Additional Phone</Label>
|
||||||
<Input
|
<Input
|
||||||
id="phone"
|
id="phone"
|
||||||
@@ -196,7 +196,7 @@ export default function StaffForm({ staff, onSubmit, isSubmitting }) {
|
|||||||
onChange={(e) => handleChange('phone', e.target.value)}
|
onChange={(e) => handleChange('phone', e.target.value)}
|
||||||
className="border-slate-200"
|
className="border-slate-200"
|
||||||
/>
|
/>
|
||||||
</div> */}
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
@@ -234,7 +234,7 @@ export default function StaffForm({ staff, onSubmit, isSubmitting }) {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* <div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<Label htmlFor="shift_coverage_percentage" className="text-slate-700 font-medium">Shift Coverage %</Label>
|
<Label htmlFor="shift_coverage_percentage" className="text-slate-700 font-medium">Shift Coverage %</Label>
|
||||||
<Input
|
<Input
|
||||||
id="shift_coverage_percentage"
|
id="shift_coverage_percentage"
|
||||||
@@ -245,9 +245,9 @@ export default function StaffForm({ staff, onSubmit, isSubmitting }) {
|
|||||||
onChange={(e) => handleChange('shift_coverage_percentage', parseInt(e.target.value) || 0)}
|
onChange={(e) => handleChange('shift_coverage_percentage', parseInt(e.target.value) || 0)}
|
||||||
className="border-slate-200"
|
className="border-slate-200"
|
||||||
/>
|
/>
|
||||||
</div> */}
|
</div>
|
||||||
|
|
||||||
{/* <div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<Label htmlFor="cancellation_count" className="text-slate-700 font-medium">Cancellation Count</Label>
|
<Label htmlFor="cancellation_count" className="text-slate-700 font-medium">Cancellation Count</Label>
|
||||||
<Input
|
<Input
|
||||||
id="cancellation_count"
|
id="cancellation_count"
|
||||||
@@ -257,10 +257,10 @@ export default function StaffForm({ staff, onSubmit, isSubmitting }) {
|
|||||||
onChange={(e) => handleChange('cancellation_count', parseInt(e.target.value) || 0)}
|
onChange={(e) => handleChange('cancellation_count', parseInt(e.target.value) || 0)}
|
||||||
className="border-slate-200"
|
className="border-slate-200"
|
||||||
/>
|
/>
|
||||||
</div> */}
|
</div>
|
||||||
|
|
||||||
{/* New No Show Count field */}
|
{/* New No Show Count field */}
|
||||||
{/* <div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<Label htmlFor="no_show_count" className="text-slate-700 font-medium">No Show Count</Label>
|
<Label htmlFor="no_show_count" className="text-slate-700 font-medium">No Show Count</Label>
|
||||||
<Input
|
<Input
|
||||||
id="no_show_count"
|
id="no_show_count"
|
||||||
@@ -270,10 +270,10 @@ export default function StaffForm({ staff, onSubmit, isSubmitting }) {
|
|||||||
onChange={(e) => handleChange('no_show_count', parseInt(e.target.value) || 0)}
|
onChange={(e) => handleChange('no_show_count', parseInt(e.target.value) || 0)}
|
||||||
className="border-slate-200"
|
className="border-slate-200"
|
||||||
/>
|
/>
|
||||||
</div> */}
|
</div>
|
||||||
{/* End new No Show Count field */}
|
{/* End new No Show Count field */}
|
||||||
|
|
||||||
{/* <div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<Label htmlFor="total_shifts" className="text-slate-700 font-medium">Total Shifts</Label>
|
<Label htmlFor="total_shifts" className="text-slate-700 font-medium">Total Shifts</Label>
|
||||||
<Input
|
<Input
|
||||||
id="total_shifts"
|
id="total_shifts"
|
||||||
@@ -283,9 +283,9 @@ export default function StaffForm({ staff, onSubmit, isSubmitting }) {
|
|||||||
onChange={(e) => handleChange('total_shifts', parseInt(e.target.value) || 0)}
|
onChange={(e) => handleChange('total_shifts', parseInt(e.target.value) || 0)}
|
||||||
className="border-slate-200"
|
className="border-slate-200"
|
||||||
/>
|
/>
|
||||||
</div> */}
|
</div>
|
||||||
|
|
||||||
{/* <div className="space-y-2 flex items-end">
|
<div className="space-y-2 flex items-end">
|
||||||
<div className="flex items-center space-x-2">
|
<div className="flex items-center space-x-2">
|
||||||
<Checkbox
|
<Checkbox
|
||||||
id="invoiced"
|
id="invoiced"
|
||||||
@@ -296,7 +296,7 @@ export default function StaffForm({ staff, onSubmit, isSubmitting }) {
|
|||||||
Invoiced
|
Invoiced
|
||||||
</Label>
|
</Label>
|
||||||
</div>
|
</div>
|
||||||
</div> */}
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
@@ -326,7 +326,7 @@ export default function StaffForm({ staff, onSubmit, isSubmitting }) {
|
|||||||
</Select>
|
</Select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* <div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<Label htmlFor="city" className="text-slate-700 font-medium">City</Label>
|
<Label htmlFor="city" className="text-slate-700 font-medium">City</Label>
|
||||||
<Input
|
<Input
|
||||||
id="city"
|
id="city"
|
||||||
@@ -335,7 +335,7 @@ export default function StaffForm({ staff, onSubmit, isSubmitting }) {
|
|||||||
placeholder="e.g., San Francisco"
|
placeholder="e.g., San Francisco"
|
||||||
className="border-slate-200"
|
className="border-slate-200"
|
||||||
/>
|
/>
|
||||||
</div> */}
|
</div>
|
||||||
|
|
||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<Label htmlFor="hub_location" className="text-slate-700 font-medium">Hub Location</Label>
|
<Label htmlFor="hub_location" className="text-slate-700 font-medium">Hub Location</Label>
|
||||||
@@ -347,7 +347,7 @@ export default function StaffForm({ staff, onSubmit, isSubmitting }) {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* <div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<Label htmlFor="event_location" className="text-slate-700 font-medium">Event Location</Label>
|
<Label htmlFor="event_location" className="text-slate-700 font-medium">Event Location</Label>
|
||||||
<Input
|
<Input
|
||||||
id="event_location"
|
id="event_location"
|
||||||
@@ -355,7 +355,7 @@ export default function StaffForm({ staff, onSubmit, isSubmitting }) {
|
|||||||
onChange={(e) => handleChange('event_location', e.target.value)}
|
onChange={(e) => handleChange('event_location', e.target.value)}
|
||||||
className="border-slate-200"
|
className="border-slate-200"
|
||||||
/>
|
/>
|
||||||
</div> */}
|
</div>
|
||||||
|
|
||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<Label htmlFor="track" className="text-slate-700 font-medium">Track</Label>
|
<Label htmlFor="track" className="text-slate-700 font-medium">Track</Label>
|
||||||
@@ -367,7 +367,7 @@ export default function StaffForm({ staff, onSubmit, isSubmitting }) {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* <div className="space-y-2 md:col-span-2">
|
<div className="space-y-2 md:col-span-2">
|
||||||
<Label htmlFor="address" className="text-slate-700 font-medium">Address</Label>
|
<Label htmlFor="address" className="text-slate-700 font-medium">Address</Label>
|
||||||
<Textarea
|
<Textarea
|
||||||
id="address"
|
id="address"
|
||||||
@@ -376,7 +376,7 @@ export default function StaffForm({ staff, onSubmit, isSubmitting }) {
|
|||||||
rows={2}
|
rows={2}
|
||||||
className="border-slate-200"
|
className="border-slate-200"
|
||||||
/>
|
/>
|
||||||
</div> */}
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
@@ -402,7 +402,7 @@ export default function StaffForm({ staff, onSubmit, isSubmitting }) {
|
|||||||
</Select>
|
</Select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* <div className="space-y-2 flex items-end">
|
<div className="space-y-2 flex items-end">
|
||||||
<div className="flex items-center space-x-2">
|
<div className="flex items-center space-x-2">
|
||||||
<Checkbox
|
<Checkbox
|
||||||
id="english_required"
|
id="english_required"
|
||||||
@@ -413,9 +413,9 @@ export default function StaffForm({ staff, onSubmit, isSubmitting }) {
|
|||||||
English Required
|
English Required
|
||||||
</Label>
|
</Label>
|
||||||
</div>
|
</div>
|
||||||
</div> */}
|
</div>
|
||||||
|
|
||||||
{/* <div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<Label htmlFor="check_in" className="text-slate-700 font-medium">Last Check-in</Label>
|
<Label htmlFor="check_in" className="text-slate-700 font-medium">Last Check-in</Label>
|
||||||
<Input
|
<Input
|
||||||
id="check_in"
|
id="check_in"
|
||||||
@@ -424,9 +424,9 @@ export default function StaffForm({ staff, onSubmit, isSubmitting }) {
|
|||||||
onChange={(e) => handleChange('check_in', e.target.value)}
|
onChange={(e) => handleChange('check_in', e.target.value)}
|
||||||
className="border-slate-200"
|
className="border-slate-200"
|
||||||
/>
|
/>
|
||||||
</div> */}
|
</div>
|
||||||
|
|
||||||
{/* <div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<Label htmlFor="schedule_days" className="text-slate-700 font-medium">Schedule Days</Label>
|
<Label htmlFor="schedule_days" className="text-slate-700 font-medium">Schedule Days</Label>
|
||||||
<Input
|
<Input
|
||||||
id="schedule_days"
|
id="schedule_days"
|
||||||
@@ -435,7 +435,7 @@ export default function StaffForm({ staff, onSubmit, isSubmitting }) {
|
|||||||
placeholder="e.g., Mon-Fri, 9AM-5PM"
|
placeholder="e.g., Mon-Fri, 9AM-5PM"
|
||||||
className="border-slate-200"
|
className="border-slate-200"
|
||||||
/>
|
/>
|
||||||
</div> */}
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
@@ -446,7 +446,7 @@ export default function StaffForm({ staff, onSubmit, isSubmitting }) {
|
|||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardContent className="p-6">
|
<CardContent className="p-6">
|
||||||
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
|
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
|
||||||
{/* <div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<Label htmlFor="replaced_by" className="text-slate-700 font-medium">Replaced By</Label>
|
<Label htmlFor="replaced_by" className="text-slate-700 font-medium">Replaced By</Label>
|
||||||
<Input
|
<Input
|
||||||
id="replaced_by"
|
id="replaced_by"
|
||||||
@@ -454,9 +454,9 @@ export default function StaffForm({ staff, onSubmit, isSubmitting }) {
|
|||||||
onChange={(e) => handleChange('replaced_by', e.target.value)}
|
onChange={(e) => handleChange('replaced_by', e.target.value)}
|
||||||
className="border-slate-200"
|
className="border-slate-200"
|
||||||
/>
|
/>
|
||||||
</div> */}
|
</div>
|
||||||
|
|
||||||
{/* <div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<Label htmlFor="action" className="text-slate-700 font-medium">Action</Label>
|
<Label htmlFor="action" className="text-slate-700 font-medium">Action</Label>
|
||||||
<Input
|
<Input
|
||||||
id="action"
|
id="action"
|
||||||
@@ -464,9 +464,9 @@ export default function StaffForm({ staff, onSubmit, isSubmitting }) {
|
|||||||
onChange={(e) => handleChange('action', e.target.value)}
|
onChange={(e) => handleChange('action', e.target.value)}
|
||||||
className="border-slate-200"
|
className="border-slate-200"
|
||||||
/>
|
/>
|
||||||
</div> */}
|
</div>
|
||||||
|
|
||||||
{/* <div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<Label htmlFor="ro" className="text-slate-700 font-medium">R.O</Label>
|
<Label htmlFor="ro" className="text-slate-700 font-medium">R.O</Label>
|
||||||
<Input
|
<Input
|
||||||
id="ro"
|
id="ro"
|
||||||
@@ -474,9 +474,9 @@ export default function StaffForm({ staff, onSubmit, isSubmitting }) {
|
|||||||
onChange={(e) => handleChange('ro', e.target.value)}
|
onChange={(e) => handleChange('ro', e.target.value)}
|
||||||
className="border-slate-200"
|
className="border-slate-200"
|
||||||
/>
|
/>
|
||||||
</div> */}
|
</div>
|
||||||
|
|
||||||
{/* <div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<Label htmlFor="mon" className="text-slate-700 font-medium">MON</Label>
|
<Label htmlFor="mon" className="text-slate-700 font-medium">MON</Label>
|
||||||
<Input
|
<Input
|
||||||
id="mon"
|
id="mon"
|
||||||
@@ -484,7 +484,7 @@ export default function StaffForm({ staff, onSubmit, isSubmitting }) {
|
|||||||
onChange={(e) => handleChange('mon', e.target.value)}
|
onChange={(e) => handleChange('mon', e.target.value)}
|
||||||
className="border-slate-200"
|
className="border-slate-200"
|
||||||
/>
|
/>
|
||||||
</div> */}
|
</div>
|
||||||
|
|
||||||
<div className="space-y-2 md:col-span-2">
|
<div className="space-y-2 md:col-span-2">
|
||||||
<Label htmlFor="notes" className="text-slate-700 font-medium">Notes</Label>
|
<Label htmlFor="notes" className="text-slate-700 font-medium">Notes</Label>
|
||||||
@@ -497,7 +497,7 @@ export default function StaffForm({ staff, onSubmit, isSubmitting }) {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* <div className="space-y-2 md:col-span-2">
|
<div className="space-y-2 md:col-span-2">
|
||||||
<Label htmlFor="accounting_comments" className="text-slate-700 font-medium">Accounting Comments</Label>
|
<Label htmlFor="accounting_comments" className="text-slate-700 font-medium">Accounting Comments</Label>
|
||||||
<Textarea
|
<Textarea
|
||||||
id="accounting_comments"
|
id="accounting_comments"
|
||||||
@@ -506,7 +506,7 @@ export default function StaffForm({ staff, onSubmit, isSubmitting }) {
|
|||||||
rows={3}
|
rows={3}
|
||||||
className="border-slate-200"
|
className="border-slate-200"
|
||||||
/>
|
/>
|
||||||
</div> */}
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
|
|||||||
Reference in New Issue
Block a user