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>
<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">
{availability.id ? "Редактирай" : "Създай"} Достъпност
{availability.id ? "Редактирай" : "Нова"} възможност
</h3>
<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">
<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 className="h-4 p-10">

View File

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

View File

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

View File

@ -528,7 +528,7 @@ export default function CalendarPage({ initialEvents, initialShifts }) {
isOpen={isConfirmModalOpen}
onClose={() => setConfirmModalOpen(false)}
onConfirm={() => {
toast.info("Вие потвърдихте!", { autoClose: 2000 });
toast.info("Потвърдено!", { autoClose: 2000 });
setConfirmModalOpen(false);
sendMails()
}}
@ -666,7 +666,7 @@ export default function CalendarPage({ initialEvents, initialShifts }) {
{pub.firstName} {pub.lastName}
</span>
<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}
</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()],
text:
"Здравейте, " + publisher.firstName + " " + publisher.lastName + "!\n\n" +
"Вие сте регистриран да получавате известия за нови смени на количка.\n" +
"Ти регистриран да получавате известия за нови смени на количка.\n" +
`За месец ${CON.monthNamesBG[date.getMonth()]} имате следните смени:\n` +
` ${shftStr} \n\n\n` +
"Поздрави,\n" +