Skip to content

Commit

Permalink
oprava zobrazeni detailu programu (#763)
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-stanek authored Nov 10, 2020
1 parent 0b2fac0 commit cea7b30
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
2 changes: 0 additions & 2 deletions app/AdminModule/Presenters/AdminBasePresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,6 @@ public function beforeRender() : void

$this->template->settings = $this->settingsService;

$this->template->containerAttributes = '';

$skautIsUserId = $this->dbuser->getSkautISUserId();
$skautIsRoles = $this->skautIsService->getUserRoles($skautIsUserId);
$skautIsRoleSelectedId = $this->skautIsService->getUserRoleId();
Expand Down
2 changes: 1 addition & 1 deletion app/AdminModule/Presenters/templates/@layout.latte
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
{include main-menu}
</div>

<div class="container-fluid" {$containerAttributes|noescape}>
<div class="container-fluid">
<div id="content" class="row">
<div id="sidebar" class="col-3" n:ifcontent>
{ifset #sidebar}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ class SchedulePresenter extends ProgramBasePresenter
*/
public function renderDefault() : void
{
$this->template->containerAttributes = 'ng-app="scheduleApp" ng-controller="AdminScheduleCtrl"';
$this->template->isAllowedModifySchedule = $this->settingsService->getBoolValue(Settings::IS_ALLOWED_MODIFY_SCHEDULE);
}
}
11 changes: 6 additions & 5 deletions app/assets/web/schedule/Calendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
</div>
<div class="modal-body">
<ul class="list-unstyled">
<li ng-if="event.block.category">
<li v-if="selectedEventInfo.event.extendedProps.block.category">
<strong>Kategorie: </strong>
{{ selectedEventInfo.event.extendedProps.block.category }}
</li>
<li ng-if="event.room">
<li v-if="selectedEventInfo.event.getResources().length > 0">
<strong>Místnost: </strong>
{{ selectedEventInfo.event.getResources().length > 0 ? selectedEventInfo.event.getResources()[0].title : ''}}
{{ selectedEventInfo.event.getResources()[0].title }}
</li>
<li>
<strong>Obsazenost: </strong>
Expand All @@ -26,7 +26,7 @@
</li>
</ul>

<div ng-if="event.block.lectors">
<div v-if="selectedEventInfo.event.extendedProps.block.lectors.length > 0">
<h6>Lektoři</h6>
<div v-for="lector in selectedEventInfo.event.extendedProps.block.lectors">
<b>{{ lector.name }}</b>
Expand Down Expand Up @@ -166,7 +166,8 @@
],
defaultView: localStorage.getItem("fcDefaultView") || "timeGridSeminar",
selectedEventInfo: null,
userAllowedRegisterPrograms: userAllowedRegisterPrograms
userAllowedRegisterPrograms: userAllowedRegisterPrograms,
basePath: basePath
}
},
computed: {
Expand Down

0 comments on commit cea7b30

Please sign in to comment.