Allowed changing of club's offers
This commit is contained in:
@@ -79,10 +79,14 @@ $clubid = $this->club->getId();
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--
|
||||
<div class='clubs_row'>
|
||||
<div class='clubs_title_row'>Gemeinnützigkeit</div>
|
||||
<div class='clubs_content_row'><span class='icon-<?php echo $this->club->isCharitable() ? 'ok' : 'cancel'; ?>'></span> Der Verein ist <?php echo $this->club->isCharitable() ? '' : '<b>nicht</b>'; ?> gemeinnützig.</div>
|
||||
<div class='clubs_content_row'>
|
||||
<span class='icon-<?php echo $this->club->isCharitable() ? 'ok' : 'cancel'; ?>'></span> Der Verein ist <?php echo $this->club->isCharitable() ? '' : '<b>nicht</b>'; ?> gemeinnützig.
|
||||
</div>
|
||||
</div>
|
||||
-->
|
||||
|
||||
<!--<div class='clubs_row'>
|
||||
<div class='clubs_title_row'>Telefon</div>
|
||||
@@ -92,29 +96,16 @@ $clubid = $this->club->getId();
|
||||
<div class='clubs_row'>
|
||||
<div class='clubs_title_row'>Angebote</div>
|
||||
<div class='clubs_content_row'>
|
||||
<?php if($this->hasOffers):
|
||||
|
||||
// Put all options there
|
||||
foreach($this->club->getOffers() as $o):
|
||||
?>
|
||||
<span class='icon-<?php echo $o['valid'] ? 'ok' : 'cancel-2'; ?>'></span>
|
||||
<?php if($o['valid']) echo '<b>'; ?>
|
||||
<?php echo htmlentities($o['offer']->getName()); ?><br />
|
||||
<?php if($o['valid']) echo '</b>'; ?>
|
||||
<?php
|
||||
endforeach;
|
||||
|
||||
else:
|
||||
|
||||
// No options specified in the database
|
||||
?>Der Verein hat keine Angebote festgelegt.<?php
|
||||
endif; ?>
|
||||
<?php
|
||||
$partHandler = new ClubsPartClubOffers($clubid);
|
||||
echo $partHandler->getViewPart();
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if(count($this->club->getPlaces()) > 0): ?>
|
||||
<div class='clubs_row'>
|
||||
<div class='clubs_title_row'>Räumlichkeiten</div>
|
||||
<?php if(count($this->club->getPlaces()) > 0): ?>
|
||||
<?php foreach($this->club->getPlaces() as $p): ?>
|
||||
<div class='clubs_content_row'>
|
||||
<b><?php echo htmlentities($p->getName()); ?></b><br />
|
||||
@@ -123,9 +114,11 @@ endif; ?>
|
||||
<?php echo $p->getArea() === null ? '' : '<br />Fläche: ' . htmlentities($p->getArea()) . 'qm'; ?>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<?php else: ?>
|
||||
Der Verein hat keine Angebote festgelegt.
|
||||
<?php endif; ?>
|
||||
<div class='clubs_content_row'><a href='<?php echo ""; ?>'><span class='icon-new'></span> Neue Assoziation anlegen</a></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class='clubs_row'>
|
||||
<div class='clubs_title_row'>Präsident</div>
|
||||
|
||||
Reference in New Issue
Block a user