renames
This commit is contained in:
@ -39,7 +39,7 @@ export default function AvailabilityForm({ publisherId, existingItems, inline, o
|
||||
dayOfMonth: null,
|
||||
// startTime: "08:00",
|
||||
// endTime: "20:00",
|
||||
isactive: true,
|
||||
isActive: true,
|
||||
repeatWeekly: false,
|
||||
endDate: null,
|
||||
isFirst: false,
|
||||
|
@ -36,7 +36,7 @@ model Availability {
|
||||
weekOfMonth Int?
|
||||
startTime DateTime
|
||||
endTime DateTime
|
||||
isactive Boolean @default(true)
|
||||
isActive Boolean @default(true)
|
||||
type AvailabilityType @default(Weekly)
|
||||
isWithTransport Boolean @default(false)
|
||||
isFromPreviousAssignment Boolean @default(false)
|
||||
@ -69,7 +69,7 @@ export default function AvailabilityForm({ publisherId, existingItem, inline, on
|
||||
dayOfMonth: null,
|
||||
startTime: "08:00",
|
||||
endTime: "20:00",
|
||||
isactive: true,
|
||||
isActive: true,
|
||||
repeatWeekly: false,
|
||||
endDate: null,
|
||||
});
|
||||
@ -554,11 +554,11 @@ export default function AvailabilityForm({ publisherId, existingItem, inline, on
|
||||
|
||||
<div className="mb-2 hidden">
|
||||
<div className="form-check">
|
||||
<input className="checkbox form-input" type="checkbox" id="isactive" name="isactive" onChange={handleChange} checked={availability.isactive} autoComplete="off" />
|
||||
<label className="label" htmlFor="isactive">активно</label>
|
||||
<input className="checkbox form-input" type="checkbox" id="isActive" name="isActive" onChange={handleChange} checked={availability.isActive} autoComplete="off" />
|
||||
<label className="label" htmlFor="isActive">активно</label>
|
||||
</div>
|
||||
</div>
|
||||
{/* <input type="hidden" name="isactive" value={availability.isactive} /> */}
|
||||
{/* <input type="hidden" name="isActive" value={availability.isActive} /> */}
|
||||
|
||||
<div className="panel-actions">
|
||||
<button className="action-button" onClick={() => handleCompletion()}> Отмени </button>
|
||||
|
@ -56,7 +56,7 @@ export default function AvailabilityList({ publisher, showNew }) {
|
||||
</thead>
|
||||
<tbody>
|
||||
{items?.sort((a, b) => new Date(a.startTime) - new Date(b.startTime)).map(item => (
|
||||
<tr key={item.id} availability={item} disabled={!item.isactive} className={`${item.isFromPreviousMonth ? 'bg-yellow-200' : ''} ${!item.isactive ? 'opacity-50' : ''}`}>
|
||||
<tr key={item.id} availability={item} disabled={!item.isActive} className={`${item.isFromPreviousMonth ? 'bg-yellow-200' : ''} ${!item.isActive ? 'opacity-50' : ''}`}>
|
||||
<td className="px-6 py-4 whitespace-nowrap">
|
||||
{item.dayOfMonth ? `${common.getDateFormated(new Date(item.startTime))}` : `Всеки(Всяка) ${common.getDayOfWeekName(new Date(item.startTime))}`}
|
||||
{/* {common.getDateFormated(new Date(item.startTime))} */}
|
||||
|
Reference in New Issue
Block a user