Compare commits

...

5 Commits

Author SHA1 Message Date
eea390b7da fix img 2025-08-11 19:06:57 +03:00
b33530a7b4 participants list fix 2025-08-11 19:04:27 +03:00
806486146e main menu fix 2025-08-11 19:01:11 +03:00
fed91b4f88 event title validation 2025-07-30 17:33:34 +03:00
7ac2e5d1bd event error msg 2025-07-30 17:30:54 +03:00
4 changed files with 9 additions and 7 deletions

View File

@@ -34,7 +34,7 @@ $assets = new \app\themes\gestalt\assets\GestaltThemesAssets($resources);
data-nimg="1" class="cursor-pointer sm:hidden"
style="color:transparent" src="<?= $resources ?>/out/images/burger.svg"/></div>
<div class="hidden w-full justify-between mt-[10px] gap-[19px] text-[15px] text-dark font-[350] sm:flex sm:max-w-[145px] sm:mt-0 md:gap-[96px]">
<a href="/events">События</a><a href="/participants">Участники</a></div>
<a href="/events">События</a><a href="/psychologists">Участники</a></div>
<a class=" " href="/"><img alt="logo" loading="lazy" width="150" height="48" decoding="async" data-nimg="1"
style="color:transparent" src="<?= $resources ?>/out/logo.svg"/></a>
<div class="flex gap-[13px] sm:gap-[19px]"><a

View File

@@ -31,7 +31,7 @@
<?php foreach ($psychologists['data'] as $psychologist): ?>
<?php /** @var \kernel\app_modules\gestalt_profile\models\Gestalt_profile $psychologist */ ?>
<a class="backdrop-blur-custom border-[1px] border-white rounded-[15px] bg-darkWhite text-black w-fit shadow-custom px-[9px] pt-[11px] pb-[25px] max-w-[370px] w-full sm:max-w-[280px]"
href="/participants/<?= $psychologist->id ?>">
href="/psychologist/<?= $psychologist->id ?>">
<img alt="image" loading="lazy" width="260" height="181" decoding="async"
data-nimg="1" class="w-full"
style="width: 100%; height: 200px; object-fit: cover;color:transparent"
@@ -114,7 +114,7 @@
популяризируем гештальт-подход</p><img alt="palm" loading="lazy" width="217" height="254"
decoding="async" data-nimg="1"
class=" absolute right-0 top-[-20px]"
style="color:transparent" src="/images/palm.svg"/></div>
style="color:transparent" src="<?= $resources ?>/out/images/palm.svg"/></div>
<div class="flex-col w-full max-w-[1083px] px-[25px] flex gap-[53px] items-end m-auto md:flex-row">
<div class="flex justify-center md:justify-start md:max-w-[645px] flex-wrap gap-x-[15px] gap-y-[12px]">
<div class="flex items-center justify-center font-[400] border-blue w-fit px-[10px] py-[6.5px] rounded-[6px] border-[1px] text-[16px] text-blue font-[700]">
@@ -141,11 +141,11 @@
<div class="flex gap-[19px] m-auto">
<div class="flex border-[4px] border-white rounded-[6px] items-center w-[160px] h-[120px] justify-center relative">
<img alt="arrow" loading="lazy" width="11" height="11" decoding="async" data-nimg="1"
class="absolute top-[-18px]" style="color:transparent" src="/images/chevronDown.svg"/><span
class="absolute top-[-18px]" style="color:transparent" src="<?= $resources ?>/out/images/chevronDown.svg"/><span
class="text-[26px] text-black uppercase">Книги</span></div>
<div class="flex border-[4px] border-white rounded-[6px] items-center w-[160px] h-[120px] justify-center relative">
<img alt="arrow" loading="lazy" width="11" height="11" decoding="async" data-nimg="1"
class="absolute top-[-18px]" style="color:transparent" src="/images/chevronDown.svg"/><span
class="absolute top-[-18px]" style="color:transparent" src="<?= $resources ?>/out/images/chevronDown.svg"/><span
class="text-[26px] text-black uppercase">лекции</span></div>
</div>
</div>

View File

@@ -9,6 +9,7 @@ use kernel\app_modules\event\models\forms\CreateEventForm;
use kernel\app_modules\event\models\Event;
use kernel\app_modules\event\services\EventService;
use kernel\EntityRelation;
use kernel\Flash;
use kernel\helpers\Debug;
use kernel\Request;
@@ -41,6 +42,7 @@ class EventController extends AdminController
$this->redirect("/admin/event/view/" . $event->id);
}
}
Flash::setMessage("error", $eventForm->getErrorsStr());
$this->redirect("/admin/event/create");
}

View File

@@ -18,12 +18,12 @@ class CreateEventForm extends FormModel
// 'status' => ''
// ];
return [
'title' => 'required|min-str-len:5|max-str-len:30',
'title' => 'required|min-str-len:5|max-str-len:150',
'type' => 'required|min-str-len:5|max-str-len:30',
'hours_count' => 'required',
'date_start' => 'date',
'date_end' => 'date',
'place' => 'required|min-str-len:5|max-str-len:30',
'place' => 'required|min-str-len:5|max-str-len:50',
'event_format' => '',
'description' => 'required|min-str-len:5',
'additional_info' => '',