Skip to content

Commit

Permalink
breaking changes fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-stanek committed Mar 3, 2022
1 parent a4f978f commit 06dcf8a
Show file tree
Hide file tree
Showing 15 changed files with 83 additions and 83 deletions.
20 changes: 10 additions & 10 deletions app/AdminModule/Components/templates/applications_grid_detail.latte
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,29 @@
<tr class="bg-white">
<th>{_admin.users.users_applications_roles}</th>
<th>{_admin.users.users_applications_subevents}</th>
<th class="text-right">{_admin.users.users_applications_fee}</th>
<th class="text-end">{_admin.users.users_applications_fee}</th>
<th>{_admin.users.users_applications_variable_symbol}</th>
<th class="text-right">{_admin.users.users_applications_maturity_date}</th>
<th class="text-end">{_admin.users.users_applications_maturity_date}</th>
<th>{_admin.users.users_applications_payment_method}</th>
<th class="text-right">{_admin.users.users_applications_payment_date}</th>
<th class="text-end">{_admin.users.users_applications_payment_date}</th>
<th>{_admin.users.users_applications_state}</th>
<th class="text-right">{_admin.users.users_applications_valid_from}</th>
<th class="text-right">{_admin.users.users_applications_valid_to}</th>
<th class="text-end">{_admin.users.users_applications_valid_from}</th>
<th class="text-end">{_admin.users.users_applications_valid_to}</th>
<th>{_admin.users.users_applications_created_by}</th>
</tr>
</thead>
<tbody class="bg-white">
<tr n:foreach="$applications as $application">
<td>{$application->getRolesText()}</td>
<td>{$application->getSubeventsText()}</td>
<td class="text-right">{$application->getFee()}</td>
<td class="text-end">{$application->getFee()}</td>
<td>{$application->getVariableSymbolText()}</td>
<td class="text-right">{$application->getMaturityDateText()}</td>
<td class="text-end">{$application->getMaturityDateText()}</td>
<td>{if $application->getPaymentMethod()}{_'common.payment.' . $application->getPaymentMethod()}{/if}</td>
<td class="text-right">{$application->getPaymentDateText()}</td>
<td class="text-end">{$application->getPaymentDateText()}</td>
<td>{_'common.application_state.' . $application->getState()}</td>
<td class="text-right">{$application->getValidFrom()|date:'j. n. Y H:i'}</td>
<td class="text-right">{$application->getValidTo()|date:'j. n. Y H:i'}</td>
<td class="text-end">{$application->getValidFrom()|date:'j. n. Y H:i'}</td>
<td class="text-end">{$application->getValidTo()|date:'j. n. Y H:i'}</td>
<td>{if $application->getCreatedBy()}{$application->getCreatedBy()->getDisplayName()}{/if}</td>
</tr>
</tbody>
Expand Down
52 changes: 26 additions & 26 deletions app/AdminModule/Presenters/templates/Dashboard/default.latte
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,22 @@
<h5 class="card-title">{_admin.menu.cms}</h5>
<div class="row">
<div class="col-6 mb-3">
<a href="{plink Cms:Pages:default}" class="btn btn-secondary btn-sm btn-block">
<a href="{plink Cms:Pages:default}" class="btn btn-secondary btn-sm">
<span class="fa fa-2x fa-file-lines"></span><br>{_admin.cms.menu.pages}
</a>
</div>
<div class="col-6 mb-3">
<a href="{plink Cms:News:default}" class="btn btn-secondary btn-sm btn-block">
<a href="{plink Cms:News:default}" class="btn btn-secondary btn-sm">
<span class="fa fa-2x fa-newspaper"></span><br>{_admin.cms.menu.news}
</a>
</div>
<div class="col-6 mb-3">
<a href="{plink Cms:Documents:default}" class="btn btn-secondary btn-sm btn-block">
<a href="{plink Cms:Documents:default}" class="btn btn-secondary btn-sm">
<span class="fa fa-2x fa-folder"></span><br>{_admin.cms.menu.documents}
</a>
</div>
<div class="col-6 mb-3">
<a href="{plink Cms:Faq:default}" class="btn btn-secondary btn-sm btn-block">
<a href="{plink Cms:Faq:default}" class="btn btn-secondary btn-sm">
<span class="fa fa-2x fa-comments"></span><br>{_admin.cms.menu.faq}
</a>
</div>
Expand All @@ -37,22 +37,22 @@
<h5 class="card-title">{_admin.menu.program}</h5>
<div class="row">
<div class="col-6 mb-3">
<a href="{plink Program:Blocks:default}" class="btn btn-secondary btn-sm btn-block">
<a href="{plink Program:Blocks:default}" class="btn btn-secondary btn-sm">
<span class="fa fa-2x fa-calendar-day"></span><br>{_admin.program.menu.blocks}
</a>
</div>
<div class="col-6 mb-3">
<a href="{plink Program:Schedule:default}" class="btn btn-secondary btn-sm btn-block">
<a href="{plink Program:Schedule:default}" class="btn btn-secondary btn-sm">
<span class="fa fa-2x fa-calendar-days"></span><br>{_admin.program.menu.schedule}
</a>
</div>
<div class="col-6 mb-3" n:if="$user->isAllowed($resourceProgram, $permissionManageCategories)">
<a href="{plink Program:Categories:default}" class="btn btn-secondary btn-sm btn-block">
<a href="{plink Program:Categories:default}" class="btn btn-secondary btn-sm">
<span class="fa fa-2x fa-tags"></span><br>{_admin.program.menu.categories}
</a>
</div>
<div class="col-6 mb-3" n:if="$user->isAllowed($resourceProgram, $permissionManageRooms)">
<a href="{plink Program:Rooms:default}" class="btn btn-secondary btn-sm btn-block">
<a href="{plink Program:Rooms:default}" class="btn btn-secondary btn-sm">
<span class="fa fa-2x fa-house-chimney"></span><br>{_admin.program.menu.rooms}
</a>
</div>
Expand All @@ -67,7 +67,7 @@
<h5 class="card-title">{_admin.menu.users}</h5>
<div class="row">
<div class="col-6 mb-3">
<a href="{plink Users:default}" class="btn btn-secondary btn-sm btn-block">
<a href="{plink Users:default}" class="btn btn-secondary btn-sm">
<span class="fa fa-2x fa-users"></span><br>{_admin.menu.users}
</a>
</div>
Expand All @@ -82,7 +82,7 @@
<h5 class="card-title">{_admin.menu.payments}</h5>
<div class="row">
<div class="col-6 mb-3">
<a href="{plink Payments:Payments:default}" class="btn btn-secondary btn-sm btn-block">
<a href="{plink Payments:Payments:default}" class="btn btn-secondary btn-sm">
<span class="fa fa-2x fa-money-bill"></span><br>{_admin.menu.payments}
</a>
</div>
Expand All @@ -97,7 +97,7 @@
<h5 class="card-title">{_admin.menu.acl}</h5>
<div class="row">
<div class="col-6 mb-3">
<a href="{plink Acl:default}" class="btn btn-secondary btn-sm btn-block">
<a href="{plink Acl:default}" class="btn btn-secondary btn-sm">
<span class="fa fa-2x fa-user-group"></span><br>{_admin.menu.acl}
</a>
</div>
Expand All @@ -112,17 +112,17 @@
<h5 class="card-title">{_admin.menu.mailing}</h5>
<div class="row">
<div class="col-6 mb-3">
<a href="{plink Mailing:Templates:default}" class="btn btn-secondary btn-sm btn-block">
<a href="{plink Mailing:Templates:default}" class="btn btn-secondary btn-sm">
<span class="fa fa-2x fa-envelope"></span><br>{_admin.mailing.menu.templates}
</a>
</div>
<div class="col-6 mb-3">
<a href="{plink Mailing:Send:default}" class="btn btn-secondary btn-sm btn-block">
<a href="{plink Mailing:Send:default}" class="btn btn-secondary btn-sm">
<span class="fa fa-2x fa-envelope-open-text"></span><br>{_admin.mailing.menu.send}
</a>
</div>
<div class="col-6 mb-3">
<a href="{plink Mailing:History:default}" class="btn btn-secondary btn-sm btn-block">
<a href="{plink Mailing:History:default}" class="btn btn-secondary btn-sm">
<span class="fa fa-2x fa-box-archive"></span><br>{_admin.mailing.menu.history}
</a>
</div>
Expand All @@ -137,62 +137,62 @@
<h5 class="card-title">{_admin.menu.configuration}</h5>
<div class="row">
<div class="col-2 mb-3">
<a href="{plink Configuration:Seminar:default}" class="btn btn-secondary btn-sm btn-block">
<a href="{plink Configuration:Seminar:default}" class="btn btn-secondary btn-sm">
<span class="fa fa-2x fa-calendar"></span><br>{_admin.configuration.menu.seminar}
</a>
</div>
<div class="col-2 mb-3">
<a href="{plink Configuration:Program:default}" class="btn btn-secondary btn-sm btn-block">
<a href="{plink Configuration:Program:default}" class="btn btn-secondary btn-sm">
<span class="fa fa-2x fa-calendar-days"></span><br>{_admin.configuration.menu.program}
</a>
</div>
<div class="col-2 mb-3">
<a href="{plink Configuration:Subevents:default}" class="btn btn-secondary btn-sm btn-block">
<a href="{plink Configuration:Subevents:default}" class="btn btn-secondary btn-sm">
<span class="fa fa-2x fa-calendar-week"></span><br>{_admin.configuration.menu.subevents}
</a>
</div>
<div class="col-2 mb-3">
<a href="{plink Configuration:Application:default}" class="btn btn-secondary btn-sm btn-block">
<a href="{plink Configuration:Application:default}" class="btn btn-secondary btn-sm">
<span class="fa fa-2x fa-address-card"></span><br>{_admin.configuration.menu.application}
</a>
</div>
<div class="col-2 mb-3">
<a href="{plink Configuration:Payment:default}" class="btn btn-secondary btn-sm btn-block">
<a href="{plink Configuration:Payment:default}" class="btn btn-secondary btn-sm">
<span class="fa fa-2x fa-file-invoice"></span><br>{_admin.configuration.menu.payment}
</a>
</div>
<div class="col-2 mb-3" n:if="$explicitSubeventsExists">
<a href="{plink Configuration:Discounts:default}" class="btn btn-secondary btn-sm btn-block">
<a href="{plink Configuration:Discounts:default}" class="btn btn-secondary btn-sm">
<span class="fa fa-2x fa-percent"></span><br>{_admin.configuration.menu.discounts}
</a>
</div>
<div class="col-2 mb-3">
<a href="{plink Configuration:Tickets:default}" class="btn btn-secondary btn-sm btn-block">
<a href="{plink Configuration:Tickets:default}" class="btn btn-secondary btn-sm">
<span class="fa fa-2x fa-ticket"></span><br>{_admin.configuration.menu.tickets}
</a>
</div>
<div class="col-2 mb-3">
<a href="{plink Configuration:Place:default}" class="btn btn-secondary btn-sm btn-block">
<a href="{plink Configuration:Place:default}" class="btn btn-secondary btn-sm">
<span class="fa fa-2x fa-map-location-dot"></span><br>{_admin.configuration.menu.place}
</a>
</div>
<div class="col-2 mb-3">
<a href="{plink Configuration:Mailing:default}" class="btn btn-secondary btn-sm btn-block">
<a href="{plink Configuration:Mailing:default}" class="btn btn-secondary btn-sm">
<span class="fa fa-2x fa-envelopes-bulk"></span><br>{_admin.configuration.menu.mailing}
</a>
</div>
<div class="col-2 mb-3">
<a href="{plink Configuration:SkautIs:default}" class="btn btn-secondary btn-sm btn-block">
<a href="{plink Configuration:SkautIs:default}" class="btn btn-secondary btn-sm">
<span class="fa fa-2x fa-rotate"></span><br>{_admin.configuration.menu.skautis}
</a>
</div>
<div class="col-2 mb-3">
<a href="{plink Configuration:Web:default}" class="btn btn-secondary btn-sm btn-block">
<a href="{plink Configuration:Web:default}" class="btn btn-secondary btn-sm">
<span class="fa fa-2x fa-file-code"></span><br>{_admin.configuration.menu.web}
</a>
</div>
<div class="col-2 mb-3">
<a href="{plink Configuration:System:default}" class="btn btn-secondary btn-sm btn-block">
<a href="{plink Configuration:System:default}" class="btn btn-secondary btn-sm">
<span class="fa fa-2x fa-gear"></span><br>{_admin.configuration.menu.system}
</a>
</div>
Expand Down
8 changes: 4 additions & 4 deletions app/AdminModule/Presenters/templates/Users/detail.latte
Original file line number Diff line number Diff line change
Expand Up @@ -166,21 +166,21 @@
<table class="table table-sm table-bordered table-striped">
<thead>
<tr>
<th class="text-right" style="width: 15%">{_admin.users.users_from}</th>
<th class="text-right" style="width: 15%">{_admin.users.users_to}</th>
<th class="text-end" style="width: 15%">{_admin.users.users_from}</th>
<th class="text-end" style="width: 15%">{_admin.users.users_to}</th>
<th style="width: 25%">{_admin.users.users_program_name}</th>
<th style="width: 20%">{_admin.users.users_room}</th>
<th style="width: 25%">{_admin.users.users_lectors}</th>
</tr>
</thead>
<tbody>
<tr n:foreach="$detailUserPrograms as $program">
<td class="text-right">
<td class="text-end">
{var $startDay = $program->getStart()->format('N')}
{_common.day.$startDay}
{$program->getStart()|date:"j. n. G:i"}
</td>
<td class="text-right">
<td class="text-end">
{var $endDay = $program->getEnd()->format('N')}
{_common.day.$endDay}
{$program->getEnd()|date:"j. n. G:i"}
Expand Down
10 changes: 5 additions & 5 deletions app/AdminModule/Presenters/templates/includes/main_menu.latte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<nav class="navbar navbar-expand-sm navbar-dark fixed-top bg-dark" style="min-width: 1200px;">
<a class="navbar-brand" href="{plink :Web:Page:default}">{_admin.common.heading, [seminar_name => $seminarName]}</a>

<ul class="navbar-nav mr-auto">
<ul class="navbar-nav me-auto">
<li n:class="nav-item, $presenter->isLinkCurrent(':Admin:Dashboard:*') ? active">
<a class="nav-link" href="{plink :Admin:Dashboard:default}">{_admin.menu.dashboard}</a>
</li>
Expand Down Expand Up @@ -58,16 +58,16 @@
</li>
</ul>

<ul class="navbar-nav ml-auto">
<li class="nav-item mr-1">
<ul class="navbar-nav ms-auto">
<li class="nav-item me-1">
<div class="navbar-btn">
<a class="btn btn-light btn-sm" href="https://napoveda.skaut.cz/srs" target="_blank">
<i class="fa fa-question-circle"></i> {_admin.menu.help}
</a>
</div>
</li>

<li class="nav-item dropdown mr-1 ml-1" id="role-menu">
<li class="nav-item dropdown me-1 ms-1" id="role-menu">
<div class="navbar-btn">
<button class="btn btn-light btn-sm dropdown-toggle" data-toggle="dropdown">
<span id="role-menu-text">
Expand All @@ -84,7 +84,7 @@
</div>
</li>

<li class="nav-item dropdown ml-1" id="user-menu">
<li class="nav-item dropdown ms-1" id="user-menu">
<div class="navbar-btn">
<button class="btn btn-light btn-sm dropdown-toggle" data-toggle="dropdown">
<span class="fa fa-user-circle"></span>
Expand Down
Loading

0 comments on commit 06dcf8a

Please sign in to comment.