This commit is contained in:
Dobromir Popov
2024-03-02 21:46:37 +02:00
parent 5998371222
commit 8de48e1c41
6 changed files with 11 additions and 11 deletions

View File

@ -441,7 +441,7 @@ export default function AvailabilityForm({ publisherId, existingItem, inline, on
<ToastContainer></ToastContainer> <ToastContainer></ToastContainer>
<form id="formAv" className="form p-5 bg-white shadow-md rounded-lg p-8 pr-12" onSubmit={handleSubmit}> <form id="formAv" className="form p-5 bg-white shadow-md rounded-lg p-8 pr-12" onSubmit={handleSubmit}>
<h3 className="text-xl font-semibold mb-5 text-gray-800 border-b pb-2"> <h3 className="text-xl font-semibold mb-5 text-gray-800 border-b pb-2">
{availability.id ? "Редактирай" : "Създай"} Достъпност {availability.id ? "Редактирай" : "Нова"} възможност
</h3> </h3>
<LocalizationProvider dateAdapter={AdapterDateFns} localeText={bgBG} adapterLocale={bg}> <LocalizationProvider dateAdapter={AdapterDateFns} localeText={bgBG} adapterLocale={bg}>

View File

@ -87,7 +87,7 @@ export default function AvailabilityList({ publisher, showNew }) {
{<div className="flex justify-center mt-2"> {<div className="flex justify-center mt-2">
<button className="btn bg-blue-500 hover:bg-blue-600 text-white font-semibold py-2 px-4 rounded transition duration-300" <button className="btn bg-blue-500 hover:bg-blue-600 text-white font-semibold py-2 px-4 rounded transition duration-300"
onClick={() => { setSelectedItem(null); setShowAv(true) }}>Нова възможност</button> onClick={() => { setSelectedItem(null); setShowAv(true) }}>Добави нова възможност</button>
</div> </div>
} }
<div className="h-4 p-10"> <div className="h-4 p-10">

View File

@ -311,7 +311,7 @@ const AvCalendar = ({ publisherId, events, selectedDate }) => {
const onConfirm = (event) => { const onConfirm = (event) => {
console.log("onConfirm: " + event.id); console.log("onConfirm: " + event.id);
toast.info("Вие потвърдихте!", { autoClose: 2000 }); toast.info("Потвърдено!", { autoClose: 2000 });
// Update the event data // Update the event data
event.isConfirmed = true; event.isConfirmed = true;
event.isactive = false; event.isactive = false;

View File

@ -4,7 +4,7 @@ import { UserRole } from "@prisma/client";
const sidemenu = [ const sidemenu = [
{ {
id: "dashboard", id: "dashboard",
text: "Предпочитания", text: "Възможности",
url: "/dash", url: "/dash",
roles: [UserRole.ADMIN, UserRole.USER, UserRole.POWERUSER], roles: [UserRole.ADMIN, UserRole.USER, UserRole.POWERUSER],
svgData: svgData:
@ -46,7 +46,7 @@ const sidemenu = [
}, },
{ {
id: "contactAll", id: "contactAll",
text: "Контакти", text: "Участници",
url: "/cart/publishers/contacts", url: "/cart/publishers/contacts",
}, },
{ {
@ -56,7 +56,7 @@ const sidemenu = [
}, },
{ {
id: "admin", id: "admin",
text: "Админ", text: "Администрация",
url: "/admin", url: "/admin",
roles: [UserRole.ADMIN, UserRole.POWERUSER], roles: [UserRole.ADMIN, UserRole.POWERUSER],
svgData: svgData:
@ -118,12 +118,12 @@ const footerMenu = [
}, },
{ {
id: "privacy-policy", id: "privacy-policy",
text: "Поверителност", text: "Политика за поверителност",
url: "/privacy", url: "/privacy",
}, },
{ {
id: "feedback", id: "feedback",
text: "Отзив", text: "Отзиви",
url: "/feedback", url: "/feedback",
}, },

View File

@ -528,7 +528,7 @@ export default function CalendarPage({ initialEvents, initialShifts }) {
isOpen={isConfirmModalOpen} isOpen={isConfirmModalOpen}
onClose={() => setConfirmModalOpen(false)} onClose={() => setConfirmModalOpen(false)}
onConfirm={() => { onConfirm={() => {
toast.info("Вие потвърдихте!", { autoClose: 2000 }); toast.info("Потвърдено!", { autoClose: 2000 });
setConfirmModalOpen(false); setConfirmModalOpen(false);
sendMails() sendMails()
}} }}
@ -666,7 +666,7 @@ export default function CalendarPage({ initialEvents, initialShifts }) {
{pub.firstName} {pub.lastName} {pub.firstName} {pub.lastName}
</span> </span>
<div className="flex space-x-1 overflow-hidden"> <div className="flex space-x-1 overflow-hidden">
<span title="Достъпност: часове | дни" className={`badge py-1 px-2 rounded-md text-xs ${pub.currentMonthAvailabilityHoursCount || pub.currentMonthAvailabilityDaysCount ? 'bg-teal-500 text-white' : 'bg-teal-200 text-gray-300'} hover:underline`} > <span title="Възможност: часове | дни" className={`badge py-1 px-2 rounded-md text-xs ${pub.currentMonthAvailabilityHoursCount || pub.currentMonthAvailabilityDaysCount ? 'bg-teal-500 text-white' : 'bg-teal-200 text-gray-300'} hover:underline`} >
{pub.currentMonthAvailabilityDaysCount || 0} | {pub.currentMonthAvailabilityHoursCount || 0} {pub.currentMonthAvailabilityDaysCount || 0} | {pub.currentMonthAvailabilityHoursCount || 0}
</span> </span>
<span title="участия тази седмица" className={`badge py-1 px-2 rounded-full text-xs ${pub.currentWeekAssignments ? 'bg-yellow-500 text-white' : 'bg-yellow-200 text-gray-400'}`}>{pub.currentWeekAssignments || 0}</span> <span title="участия тази седмица" className={`badge py-1 px-2 rounded-full text-xs ${pub.currentWeekAssignments ? 'bg-yellow-500 text-white' : 'bg-yellow-200 text-gray-400'}`}>{pub.currentWeekAssignments || 0}</span>

View File

@ -144,7 +144,7 @@ exports.SendEmail_NewShifts = async function (publisher, shifts) {
subject: "[CCC]: вашите смени през " + CON.monthNamesBG[date.getMonth()], subject: "[CCC]: вашите смени през " + CON.monthNamesBG[date.getMonth()],
text: text:
"Здравейте, " + publisher.firstName + " " + publisher.lastName + "!\n\n" + "Здравейте, " + publisher.firstName + " " + publisher.lastName + "!\n\n" +
"Вие сте регистриран да получавате известия за нови смени на количка.\n" + "Ти регистриран да получавате известия за нови смени на количка.\n" +
`За месец ${CON.monthNamesBG[date.getMonth()]} имате следните смени:\n` + `За месец ${CON.monthNamesBG[date.getMonth()]} имате следните смени:\n` +
` ${shftStr} \n\n\n` + ` ${shftStr} \n\n\n` +
"Поздрави,\n" + "Поздрави,\n" +