email subscription labels update
This commit is contained in:
@ -246,15 +246,54 @@ export default function PublisherForm({ item, me }) {
|
|||||||
<label className="label" htmlFor="town">Град</label>
|
<label className="label" htmlFor="town">Град</label>
|
||||||
<input type="text" id="town" name="town" value={publisher.town} onChange={handleChange} className="textbox" placeholder="Град" autoFocus />
|
<input type="text" id="town" name="town" value={publisher.town} onChange={handleChange} className="textbox" placeholder="Град" autoFocus />
|
||||||
</div>
|
</div>
|
||||||
<div className="mb-4">
|
|
||||||
{/* notifications */}
|
{/* notifications */}
|
||||||
<div className="form-check">
|
<div className="mb-6 p-4 border border-gray-300 rounded-lg">
|
||||||
<input className="checkbox" type="checkbox" id="isSubscribedToCoverMe" name="isSubscribedToCoverMe" onChange={handleChange} checked={publisher.isSubscribedToCoverMe} autoComplete="off" />
|
<fieldset>
|
||||||
<label className="label" htmlFor="isSubscribedToCoverMe">Абониран за имейли за заместване</label>
|
<legend className="text-lg font-medium mb-2">Известия по имейл</legend>
|
||||||
<input className="checkbox" type="checkbox" id="isSubscribedToReminders" name="isSubscribedToReminders" onChange={handleChange} checked={publisher.isSubscribedToReminders} autoComplete="off" />
|
<div className="space-y-4">
|
||||||
<label className="label" htmlFor="isSubscribedToReminders">Абониран за напомняния (имейл)</label>
|
<div className="form-check">
|
||||||
{/* prompt to install PWA */}
|
<input
|
||||||
</div>
|
className="checkbox cursor-not-allowed opacity-50"
|
||||||
|
type="checkbox"
|
||||||
|
id="isSubscribedToCoverMeMandatory"
|
||||||
|
name="isSubscribedToCoverMeMandatory"
|
||||||
|
onChange={handleChange} // This will not fire due to being disabled, but kept for consistency
|
||||||
|
checked={true} // Always checked
|
||||||
|
disabled={true} // User cannot change this field
|
||||||
|
autoComplete="off" />
|
||||||
|
<label className="label cursor-not-allowed opacity-50" htmlFor="isSubscribedToCoverMeMandatory">
|
||||||
|
Имейли за заместване които отговарят на моите предпочитания
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
<div className="form-check">
|
||||||
|
<input
|
||||||
|
className="checkbox"
|
||||||
|
type="checkbox"
|
||||||
|
id="isSubscribedToCoverMe"
|
||||||
|
name="isSubscribedToCoverMe"
|
||||||
|
onChange={handleChange}
|
||||||
|
checked={publisher.isSubscribedToCoverMe}
|
||||||
|
autoComplete="off" />
|
||||||
|
<label className="label" htmlFor="isSubscribedToCoverMe">
|
||||||
|
Всички заявки за заместване
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
<div className="form-check">
|
||||||
|
<input
|
||||||
|
className="checkbox"
|
||||||
|
type="checkbox"
|
||||||
|
id="isSubscribedToReminders"
|
||||||
|
name="isSubscribedToReminders"
|
||||||
|
onChange={handleChange}
|
||||||
|
checked={publisher.isSubscribedToReminders}
|
||||||
|
autoComplete="off" />
|
||||||
|
<label className="label" htmlFor="isSubscribedToReminders">
|
||||||
|
Други напомняния
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* button to install PWA */}
|
{/* button to install PWA */}
|
||||||
@ -267,6 +306,7 @@ export default function PublisherForm({ item, me }) {
|
|||||||
{/* ADMINISTRATORS ONLY */}
|
{/* ADMINISTRATORS ONLY */}
|
||||||
<ProtectedRoute allowedRoles={[UserRole.ADMIN]} deniedMessage=" " className="">
|
<ProtectedRoute allowedRoles={[UserRole.ADMIN]} deniedMessage=" " className="">
|
||||||
<div className="border border-blue-500 border-solid p-2">
|
<div className="border border-blue-500 border-solid p-2">
|
||||||
|
{/* prompt to install PWA */}
|
||||||
<PwaManager />
|
<PwaManager />
|
||||||
<div className="mb-4">
|
<div className="mb-4">
|
||||||
<label className="label" htmlFor="type">Тип</label>
|
<label className="label" htmlFor="type">Тип</label>
|
||||||
|
Reference in New Issue
Block a user