From a4f978fcee215112208046d4823b5551f1cf39cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Stan=C4=9Bk?= Date: Mon, 27 Sep 2021 14:23:42 +0200 Subject: [PATCH 1/2] bootstrap 5 --- app/AdminModule/ConfigurationModule/Forms/BankFormFactory.php | 4 ++-- .../ConfigurationModule/Forms/MailingFormFactory.php | 4 ++-- app/AdminModule/ConfigurationModule/Forms/PaymentForm.php | 4 ++-- .../ConfigurationModule/Forms/PaymentProofFormFactory.php | 4 ++-- .../ConfigurationModule/Forms/ProgramFormFactory.php | 4 ++-- .../ConfigurationModule/Forms/SeminarFormFactory.php | 4 ++-- .../ConfigurationModule/Forms/SkautIsEventFormFactory.php | 4 ++-- .../ConfigurationModule/Forms/TicketsFormFactory.php | 4 ++-- app/AdminModule/ConfigurationModule/Forms/WebFormFactory.php | 4 ++-- app/AdminModule/Forms/BaseFormFactory.php | 4 ++-- app/WebModule/Forms/BaseFormFactory.php | 4 ++-- 11 files changed, 22 insertions(+), 22 deletions(-) diff --git a/app/AdminModule/ConfigurationModule/Forms/BankFormFactory.php b/app/AdminModule/ConfigurationModule/Forms/BankFormFactory.php index b83067729..cea6e6e1c 100644 --- a/app/AdminModule/ConfigurationModule/Forms/BankFormFactory.php +++ b/app/AdminModule/ConfigurationModule/Forms/BankFormFactory.php @@ -16,7 +16,7 @@ use Nette\Application\UI\Form; use Nette\Forms\Controls\TextInput; use Nextras\FormComponents\Controls\DateControl; -use Nextras\FormsRendering\Renderers\Bs4FormRenderer; +use Nextras\FormsRendering\Renderers\Bs5FormRenderer; use stdClass; use Throwable; use Tracy\Debugger; @@ -54,7 +54,7 @@ public function create(): Form $form = $this->baseFormFactory->create(); $renderer = $form->getRenderer(); - assert($renderer instanceof Bs4FormRenderer); + assert($renderer instanceof Bs5FormRenderer); $renderer->wrappers['control']['container'] = 'div class="col-7"'; $renderer->wrappers['label']['container'] = 'div class="col-5 col-form-label"'; diff --git a/app/AdminModule/ConfigurationModule/Forms/MailingFormFactory.php b/app/AdminModule/ConfigurationModule/Forms/MailingFormFactory.php index fa936c03e..7826e3866 100644 --- a/app/AdminModule/ConfigurationModule/Forms/MailingFormFactory.php +++ b/app/AdminModule/ConfigurationModule/Forms/MailingFormFactory.php @@ -23,7 +23,7 @@ use Nette\Application\LinkGenerator; use Nette\Application\UI\Form; use Nette\Forms\Controls\TextInput; -use Nextras\FormsRendering\Renderers\Bs4FormRenderer; +use Nextras\FormsRendering\Renderers\Bs5FormRenderer; use stdClass; use Throwable; @@ -82,7 +82,7 @@ public function create(int $id): Form $form = $this->baseFormFactory->create(); $renderer = $form->getRenderer(); - assert($renderer instanceof Bs4FormRenderer); + assert($renderer instanceof Bs5FormRenderer); $renderer->wrappers['control']['container'] = 'div class="col-7"'; $renderer->wrappers['label']['container'] = 'div class="col-5 col-form-label"'; diff --git a/app/AdminModule/ConfigurationModule/Forms/PaymentForm.php b/app/AdminModule/ConfigurationModule/Forms/PaymentForm.php index 94dfd400f..3bb1590e9 100644 --- a/app/AdminModule/ConfigurationModule/Forms/PaymentForm.php +++ b/app/AdminModule/ConfigurationModule/Forms/PaymentForm.php @@ -20,7 +20,7 @@ use Nette\Application\UI; use Nette\Application\UI\Form; use Nextras\FormComponents\Controls\DateControl; -use Nextras\FormsRendering\Renderers\Bs4FormRenderer; +use Nextras\FormsRendering\Renderers\Bs5FormRenderer; use stdClass; use Throwable; @@ -71,7 +71,7 @@ public function createComponentForm(): Form $form = $this->baseFormFactory->create(); $renderer = $form->getRenderer(); - assert($renderer instanceof Bs4FormRenderer); + assert($renderer instanceof Bs5FormRenderer); $renderer->wrappers['control']['container'] = 'div class="col-7"'; $renderer->wrappers['label']['container'] = 'div class="col-5 col-form-label"'; diff --git a/app/AdminModule/ConfigurationModule/Forms/PaymentProofFormFactory.php b/app/AdminModule/ConfigurationModule/Forms/PaymentProofFormFactory.php index b84b0054b..b3481cbaa 100644 --- a/app/AdminModule/ConfigurationModule/Forms/PaymentProofFormFactory.php +++ b/app/AdminModule/ConfigurationModule/Forms/PaymentProofFormFactory.php @@ -12,7 +12,7 @@ use App\Services\QueryBus; use Nette; use Nette\Application\UI\Form; -use Nextras\FormsRendering\Renderers\Bs4FormRenderer; +use Nextras\FormsRendering\Renderers\Bs5FormRenderer; use stdClass; use Throwable; @@ -48,7 +48,7 @@ public function create(): Form $form = $this->baseFormFactory->create(); $renderer = $form->getRenderer(); - assert($renderer instanceof Bs4FormRenderer); + assert($renderer instanceof Bs5FormRenderer); $renderer->wrappers['control']['container'] = 'div class="col-7"'; $renderer->wrappers['label']['container'] = 'div class="col-5 col-form-label"'; diff --git a/app/AdminModule/ConfigurationModule/Forms/ProgramFormFactory.php b/app/AdminModule/ConfigurationModule/Forms/ProgramFormFactory.php index 33f5f59c9..a916ccaa6 100644 --- a/app/AdminModule/ConfigurationModule/Forms/ProgramFormFactory.php +++ b/app/AdminModule/ConfigurationModule/Forms/ProgramFormFactory.php @@ -20,7 +20,7 @@ use Nette\Application\UI\Form; use Nette\Utils\DateTime; use Nextras\FormComponents\Controls\DateTimeControl; -use Nextras\FormsRendering\Renderers\Bs4FormRenderer; +use Nextras\FormsRendering\Renderers\Bs5FormRenderer; use stdClass; use Throwable; @@ -56,7 +56,7 @@ public function create(): Form $form = $this->baseFormFactory->create(); $renderer = $form->getRenderer(); - assert($renderer instanceof Bs4FormRenderer); + assert($renderer instanceof Bs5FormRenderer); $renderer->wrappers['control']['container'] = 'div class="col-7"'; $renderer->wrappers['label']['container'] = 'div class="col-5 col-form-label"'; diff --git a/app/AdminModule/ConfigurationModule/Forms/SeminarFormFactory.php b/app/AdminModule/ConfigurationModule/Forms/SeminarFormFactory.php index 6062bb855..4cfdd5835 100644 --- a/app/AdminModule/ConfigurationModule/Forms/SeminarFormFactory.php +++ b/app/AdminModule/ConfigurationModule/Forms/SeminarFormFactory.php @@ -17,7 +17,7 @@ use Nette\Application\UI\Form; use Nette\Utils\DateTime; use Nextras\FormComponents\Controls\DateControl; -use Nextras\FormsRendering\Renderers\Bs4FormRenderer; +use Nextras\FormsRendering\Renderers\Bs5FormRenderer; use stdClass; use Throwable; @@ -56,7 +56,7 @@ public function create(): Form $form = $this->baseFormFactory->create(); $renderer = $form->getRenderer(); - assert($renderer instanceof Bs4FormRenderer); + assert($renderer instanceof Bs5FormRenderer); $renderer->wrappers['control']['container'] = 'div class="col-7"'; $renderer->wrappers['label']['container'] = 'div class="col-5 col-form-label"'; diff --git a/app/AdminModule/ConfigurationModule/Forms/SkautIsEventFormFactory.php b/app/AdminModule/ConfigurationModule/Forms/SkautIsEventFormFactory.php index 4cca623ff..6ed468d6f 100644 --- a/app/AdminModule/ConfigurationModule/Forms/SkautIsEventFormFactory.php +++ b/app/AdminModule/ConfigurationModule/Forms/SkautIsEventFormFactory.php @@ -21,7 +21,7 @@ use Doctrine\ORM\ORMException; use Nette; use Nette\Application\UI\Form; -use Nextras\FormsRendering\Renderers\Bs4FormRenderer; +use Nextras\FormsRendering\Renderers\Bs5FormRenderer; use stdClass; use Throwable; @@ -77,7 +77,7 @@ public function create(): Form $form = $this->baseFormFactory->create(); $renderer = $form->getRenderer(); - assert($renderer instanceof Bs4FormRenderer); + assert($renderer instanceof Bs5FormRenderer); $renderer->wrappers['control']['container'] = 'div class="col-7"'; $renderer->wrappers['label']['container'] = 'div class="col-5 col-form-label"'; diff --git a/app/AdminModule/ConfigurationModule/Forms/TicketsFormFactory.php b/app/AdminModule/ConfigurationModule/Forms/TicketsFormFactory.php index 49e7a8f67..f7fac8664 100644 --- a/app/AdminModule/ConfigurationModule/Forms/TicketsFormFactory.php +++ b/app/AdminModule/ConfigurationModule/Forms/TicketsFormFactory.php @@ -12,7 +12,7 @@ use App\Services\QueryBus; use Nette\Application\UI\Form; use Nextras\FormComponents\Controls\DateTimeControl; -use Nextras\FormsRendering\Renderers\Bs4FormRenderer; +use Nextras\FormsRendering\Renderers\Bs5FormRenderer; use stdClass; use Throwable; @@ -46,7 +46,7 @@ public function create(): Form $form = $this->baseFormFactory->create(); $renderer = $form->getRenderer(); - assert($renderer instanceof Bs4FormRenderer); + assert($renderer instanceof Bs5FormRenderer); $renderer->wrappers['control']['container'] = 'div class="col-7"'; $renderer->wrappers['label']['container'] = 'div class="col-5 col-form-label"'; diff --git a/app/AdminModule/ConfigurationModule/Forms/WebFormFactory.php b/app/AdminModule/ConfigurationModule/Forms/WebFormFactory.php index 41b1034b5..f82645103 100644 --- a/app/AdminModule/ConfigurationModule/Forms/WebFormFactory.php +++ b/app/AdminModule/ConfigurationModule/Forms/WebFormFactory.php @@ -15,7 +15,7 @@ use Nette; use Nette\Application\UI\Form; use Nette\Http\FileUpload; -use Nextras\FormsRendering\Renderers\Bs4FormRenderer; +use Nextras\FormsRendering\Renderers\Bs5FormRenderer; use stdClass; use Throwable; @@ -67,7 +67,7 @@ public function create(): Form $form = $this->baseFormFactory->create(); $renderer = $form->getRenderer(); - assert($renderer instanceof Bs4FormRenderer); + assert($renderer instanceof Bs5FormRenderer); $renderer->wrappers['control']['container'] = 'div class="col-7"'; $renderer->wrappers['label']['container'] = 'div class="col-5 col-form-label"'; diff --git a/app/AdminModule/Forms/BaseFormFactory.php b/app/AdminModule/Forms/BaseFormFactory.php index c2412e6cf..d074e2ab1 100644 --- a/app/AdminModule/Forms/BaseFormFactory.php +++ b/app/AdminModule/Forms/BaseFormFactory.php @@ -7,7 +7,7 @@ use Nette; use Nette\Application\UI\Form; use Nette\Localization\Translator; -use Nextras\FormsRendering\Renderers\Bs4FormRenderer; +use Nextras\FormsRendering\Renderers\Bs5FormRenderer; /** * BaseFormFactory pro AdminModule. @@ -31,7 +31,7 @@ public function create(): Form $form = new Form(); $form->setTranslator($this->translator); - $renderer = new Bs4FormRenderer(); + $renderer = new Bs5FormRenderer(); $renderer->wrappers['control']['container'] = 'div class="col-9"'; $renderer->wrappers['label']['container'] = 'div class="col-3 col-form-label"'; diff --git a/app/WebModule/Forms/BaseFormFactory.php b/app/WebModule/Forms/BaseFormFactory.php index 029d780a0..0de03ea54 100644 --- a/app/WebModule/Forms/BaseFormFactory.php +++ b/app/WebModule/Forms/BaseFormFactory.php @@ -7,7 +7,7 @@ use Nette; use Nette\Application\UI\Form; use Nette\Localization\Translator; -use Nextras\FormsRendering\Renderers\Bs4FormRenderer; +use Nextras\FormsRendering\Renderers\Bs5FormRenderer; /** * BaseFormFactory pro WebModule. @@ -31,7 +31,7 @@ public function create(): Form $form = new Form(); $form->setTranslator($this->translator); - $renderer = new Bs4FormRenderer(); + $renderer = new Bs5FormRenderer(); $renderer->wrappers['control']['container'] = 'div class="col-md-9"'; $renderer->wrappers['label']['container'] = 'div class="col-md-3 col-form-label"'; From 06dcf8a7fad6638d88eea09d76d05f4dc5d43c39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Stan=C4=9Bk?= Date: Mon, 27 Sep 2021 14:50:46 +0200 Subject: [PATCH 2/2] breaking changes fix --- .../templates/applications_grid_detail.latte | 20 +++---- .../templates/Dashboard/default.latte | 52 +++++++++---------- .../Presenters/templates/Users/detail.latte | 8 +-- .../templates/includes/main_menu.latte | 10 ++-- .../Presenters/templates/Blocks/detail.latte | 10 ++-- .../templates/IncomeProof/pdf.latte | 8 +-- .../Presenters/templates/Ticket/pdf.latte | 12 ++--- .../Components/templates/blocks_content.latte | 2 +- .../templates/lectors_content.latte | 4 +- .../Presenters/templates/@layout.latte | 2 +- .../templates/Profile/default.latte | 10 ++-- .../templates/includes/main_menu.latte | 2 +- app/assets/admin/schedule/BlocksList.vue | 10 ++-- app/assets/admin/schedule/Calendar.vue | 4 +- app/assets/web/schedule/Calendar.vue | 12 ++--- 15 files changed, 83 insertions(+), 83 deletions(-) diff --git a/app/AdminModule/Components/templates/applications_grid_detail.latte b/app/AdminModule/Components/templates/applications_grid_detail.latte index 8fb2b100d..605892a04 100644 --- a/app/AdminModule/Components/templates/applications_grid_detail.latte +++ b/app/AdminModule/Components/templates/applications_grid_detail.latte @@ -7,14 +7,14 @@ {_admin.users.users_applications_roles} {_admin.users.users_applications_subevents} - {_admin.users.users_applications_fee} + {_admin.users.users_applications_fee} {_admin.users.users_applications_variable_symbol} - {_admin.users.users_applications_maturity_date} + {_admin.users.users_applications_maturity_date} {_admin.users.users_applications_payment_method} - {_admin.users.users_applications_payment_date} + {_admin.users.users_applications_payment_date} {_admin.users.users_applications_state} - {_admin.users.users_applications_valid_from} - {_admin.users.users_applications_valid_to} + {_admin.users.users_applications_valid_from} + {_admin.users.users_applications_valid_to} {_admin.users.users_applications_created_by} @@ -22,14 +22,14 @@ {$application->getRolesText()} {$application->getSubeventsText()} - {$application->getFee()} + {$application->getFee()} {$application->getVariableSymbolText()} - {$application->getMaturityDateText()} + {$application->getMaturityDateText()} {if $application->getPaymentMethod()}{_'common.payment.' . $application->getPaymentMethod()}{/if} - {$application->getPaymentDateText()} + {$application->getPaymentDateText()} {_'common.application_state.' . $application->getState()} - {$application->getValidFrom()|date:'j. n. Y H:i'} - {$application->getValidTo()|date:'j. n. Y H:i'} + {$application->getValidFrom()|date:'j. n. Y H:i'} + {$application->getValidTo()|date:'j. n. Y H:i'} {if $application->getCreatedBy()}{$application->getCreatedBy()->getDisplayName()}{/if} diff --git a/app/AdminModule/Presenters/templates/Dashboard/default.latte b/app/AdminModule/Presenters/templates/Dashboard/default.latte index 3ed3bb43b..50e875b1b 100644 --- a/app/AdminModule/Presenters/templates/Dashboard/default.latte +++ b/app/AdminModule/Presenters/templates/Dashboard/default.latte @@ -7,22 +7,22 @@
{_admin.menu.cms}
@@ -37,22 +37,22 @@
{_admin.menu.program}
@@ -67,7 +67,7 @@
{_admin.menu.users}
@@ -82,7 +82,7 @@
{_admin.menu.payments}
@@ -97,7 +97,7 @@
{_admin.menu.acl}
@@ -112,17 +112,17 @@
{_admin.menu.mailing}
@@ -137,62 +137,62 @@
{_admin.menu.configuration}
diff --git a/app/AdminModule/Presenters/templates/Users/detail.latte b/app/AdminModule/Presenters/templates/Users/detail.latte index 2e600726d..22496ce09 100644 --- a/app/AdminModule/Presenters/templates/Users/detail.latte +++ b/app/AdminModule/Presenters/templates/Users/detail.latte @@ -166,8 +166,8 @@ - - + + @@ -175,12 +175,12 @@ - -
{_admin.users.users_from}{_admin.users.users_to}{_admin.users.users_from}{_admin.users.users_to} {_admin.users.users_program_name} {_admin.users.users_room} {_admin.users.users_lectors}
+ {var $startDay = $program->getStart()->format('N')} {_common.day.$startDay} {$program->getStart()|date:"j. n. G:i"} + {var $endDay = $program->getEnd()->format('N')} {_common.day.$endDay} {$program->getEnd()|date:"j. n. G:i"} diff --git a/app/AdminModule/Presenters/templates/includes/main_menu.latte b/app/AdminModule/Presenters/templates/includes/main_menu.latte index 68f22ea40..5349e37bc 100644 --- a/app/AdminModule/Presenters/templates/includes/main_menu.latte +++ b/app/AdminModule/Presenters/templates/includes/main_menu.latte @@ -2,7 +2,7 @@