Allowed changing of club's offers

This commit is contained in:
2019-06-26 19:21:17 +02:00
parent 3f96022176
commit 45d3e09c7e
4 changed files with 119 additions and 28 deletions

View File

@@ -79,10 +79,14 @@ $clubid = $this->club->getId();
</div>
</div>
<!--
<div class='clubs_row'>
<div class='clubs_title_row'>Gemeinn&uuml;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&uuml;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&uuml;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>&nbsp;
<?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&auml;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&auml;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>&nbsp; Neue Assoziation anlegen</a></div>
</div>
<?php endif; ?>
<div class='clubs_row'>
<div class='clubs_title_row'>Pr&auml;sident</div>