Added all modified files to allow branching

This commit is contained in:
2019-05-21 11:15:41 +02:00
parent 6209d1aca6
commit 852f110967
8 changed files with 267 additions and 5 deletions

View File

@@ -13,8 +13,21 @@ class ClubsViewClub extends AbstractClubsViewSingle
{
ToolbarHelper::title('Club-Management - Verein');
$this->prepareDisplay();
$this->users = ClubsUser::loadUsers();
if(! $this->isNew)
{
$offers = ClubsOffer::loadOffers();
$currentOffers = $this->object->getOffers();
$this->offers = array_map(function($offer) use ($currentOffers){
$mark = False;
return array('offer'=>$offer, 'mark'=>$mark);
}, $offers);
}
parent::display($tpl);
}