Skip to content

Commit

Permalink
Bugfix Week.html
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimruhs committed May 3, 2023
1 parent 5b519df commit 2659c4a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
7 changes: 1 addition & 6 deletions Classes/Controller/BookobjectController.php
Original file line number Diff line number Diff line change
Expand Up @@ -801,12 +801,7 @@ public function showWeek()
$view->assign('calendarWeekLabel', $this->translate('calendarWeek'));

$view->assign('now', time());
print_r($view->render());
exit;
// return $this->responseFactory->createResponse()
// ->withAddedHeader('Content-Type', 'text/html; charset=utf-8')
// ->withBody($this->streamFactory->createStream($this->view->render()));

return $view->render();
}

/**
Expand Down
10 changes: 8 additions & 2 deletions Resources/Private/Templates/Standard/Week.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
<div class="bookobjectTitle">{bookobject.name}</div>
<div class="weekSelector">
<img class="previousWeek" bookobjectUid="{bookobject.uid}" date="{dayTime}" hour="{hour}" src="/typo3conf/ext/booking/Resources/Public/Icons/actions-view-paging-previous.svg"/>
<f:translate key="calendarWeek" extensionName="booking"/>
{week} - {year}
{calendarWeekLabel}
{week} - {year}
<img class="nextWeek" bookobjectUid="{bookobject.uid}" date="{dayTime}" hour="{hour}" src="/typo3conf/ext/booking/Resources/Public/Icons/actions-view-paging-next.svg"/>
</div>
<div class="bookobjectWeek">
Expand All @@ -33,6 +33,11 @@
<f:for each="{days}" as="day" iteration="iterDay">
<f:if condition="{iterWeekday.index} == {iterDay.index}">
<f:variable name="weekDate" value='{day}' />
<f:for each="{dayLabels}" as="dayLabel" iteration="iterDayLabel">
<f:if condition="{iterDayLabel.index} == {iterDay.index}">
<f:variable name="dayLabelShort" value='{dayLabel}' />
</f:if>
</f:for>
</f:if>
</f:for>

Expand All @@ -43,6 +48,7 @@
</f:for>

<tr><td class="weekdayTable" date="{weekDate}" bookobjectUid="{bookobject.uid}">
{dayLabelShort}
<f:translate key='<f:format.date format="D">{dayDate}</f:format.date>' /> - <f:format.date format="d.m.Y">{dayDate}</f:format.date></td></tr>
<tr><td>

Expand Down
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
'title' => 'Booking',
'description' => 'Booking extension for FE users',
'category' => 'plugin',
'version' => '2.1.0',
'version' => '2.1.1',
'state' => 'beta',
'uploadfolder' => false,
'clearcacheonload' => false,
Expand Down

0 comments on commit 2659c4a

Please sign in to comment.