fix migration casing, UI improvements
This commit is contained in:
@ -213,13 +213,16 @@ const SurveyForm: React.FC<SurveyFormProps> = ({ existingItem }) => {
|
|||||||
<label className="block text-gray-700 text-sm font-bold mb-2" htmlFor="date">
|
<label className="block text-gray-700 text-sm font-bold mb-2" htmlFor="date">
|
||||||
Видима от
|
Видима от
|
||||||
</label>
|
</label>
|
||||||
<DatePicker className="textbox form-input px-4 py-2 rounded" name="publicFrom" onChange={(newDate) => handleDateChange('publicFrom', newDate)} value={dayjs(item?.publicFrom)} />
|
<DatePicker className="textbox form-input px-4 py-2 rounded" name="publicFrom" onChange={(newDate) => handleDateChange('publicFrom', newDate)}
|
||||||
|
value={item && item.publicFrom ? dayjs(item.publicFrom) : null} />
|
||||||
</div>
|
</div>
|
||||||
<div className="mb-4">
|
<div className="mb-4">
|
||||||
<label className="block text-gray-700 text-sm font-bold mb-2" htmlFor="date">
|
<label className="block text-gray-700 text-sm font-bold mb-2" htmlFor="date">
|
||||||
Видима до
|
Видима до
|
||||||
</label>
|
</label>
|
||||||
<DatePicker className="textbox form-input px-4 py-2 rounded" name="publicUntil" onChange={(newDate) => handleDateChange('publicUntil', newDate)} value={dayjs(item?.publicUntil)} />
|
<DatePicker className="textbox form-input px-4 py-2 rounded" name="publicUntil" onChange={(newDate) => handleDateChange('publicUntil', newDate)}
|
||||||
|
value={item && item.publicUntil ? dayjs(item.publicUntil) : null}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="mb-4">
|
<div className="mb-4">
|
||||||
<label className="block text-gray-700 text-sm font-bold mb-2" htmlFor="content">
|
<label className="block text-gray-700 text-sm font-bold mb-2" htmlFor="content">
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
-- AlterTable
|
-- AlterTable
|
||||||
ALTER TABLE `message` MODIFY `content` TEXT NOT NULL;
|
ALTER TABLE `Message` MODIFY `content` TEXT NOT NULL;
|
||||||
|
|
||||||
-- AlterTable
|
-- AlterTable
|
||||||
ALTER TABLE `survey` MODIFY `content` TEXT NOT NULL;
|
ALTER TABLE `Survey` MODIFY `content` TEXT NOT NULL;
|
Reference in New Issue
Block a user