Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
Route FormattedVenueAndCityName to event template
Browse files Browse the repository at this point in the history
  • Loading branch information
klaus committed Feb 9, 2023
1 parent 4abeaa1 commit 6006df7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ruhrpottmetaller/Data/HighLevel/AbstractEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ public function getVenueAndCityName(): AbstractRmString
return $this->venue->asVenueAndCity();
}

public function getFormattedVenueAndCityName(): AbstractRmString
{
return $this->venue->getFormattedVenueAndCity();
}

public function addGigs(RmArray $gigs): AbstractEvent
{
$this->gigs = $gigs;
Expand Down
2 changes: 1 addition & 1 deletion templates/event_main.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<form action="" class="rm_table_row<?=$event->getIsCanceled()->get() ? ' canceled' : ''?>">
<?=$event->getFormattedDate()->asTableCell() ?>
<?=$event->getName()->asTableCell() ?>
<?=$event->getVenueAndCityName()->asTableCell()?>
<?=$event->getFormattedVenueAndCityName()->asTableCell()?>
<?=$event->getBandList()->asTableCell()?>
<?=$event->getUrl()->asWwwUrl()->asTableCell()?>
<?=$event->getId()->asHiddenInput(RmString::new('id'))?>
Expand Down

0 comments on commit 6006df7

Please sign in to comment.