2023-05-01 23:37:30 +02:00
|
|
|
@extends(templates/layout_normal)
|
|
|
|
|
|
|
|
@section(main)
|
|
|
|
<h2>
|
2023-05-07 01:50:57 +02:00
|
|
|
<a href="<?= Container::$routeCollection->getRoute('community')->generateLink(['communitySlug' => $community->getSlug()]) ?>"><?= $community->getName() ?></a> »
|
2023-05-01 23:37:30 +02:00
|
|
|
Settings
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
<div class="gridContainer marginTop">
|
|
|
|
<div>
|
|
|
|
<h3 class="marginBottom">
|
|
|
|
Members
|
|
|
|
<?php if ($editPermission): ?>
|
2023-05-07 01:50:57 +02:00
|
|
|
<span class="small">[<a href="<?= Container::$routeCollection->getRoute('community.members')->generateLink(['communitySlug' => $community->getSlug()]) ?>">edit</a>]</span>
|
2023-05-01 23:37:30 +02:00
|
|
|
<?php endif; ?>
|
|
|
|
</h3>
|
|
|
|
<?php foreach ($members as $member): ?>
|
|
|
|
<p><?= $member->getUser()->getDisplayName() ?></p>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<h3 class="marginBottom">
|
|
|
|
Currencies
|
|
|
|
<?php if ($editPermission): ?>
|
2023-05-07 01:50:57 +02:00
|
|
|
<span class="small">[<a href="<?= Container::$routeCollection->getRoute('community.currencies')->generateLink(['communitySlug' => $community->getSlug()]) ?>">edit</a>]</span>
|
2023-05-01 23:37:30 +02:00
|
|
|
<?php endif; ?>
|
|
|
|
</h3>
|
|
|
|
<?php foreach ($currencies as $currency): ?>
|
|
|
|
<p>
|
|
|
|
<?php if ($currency->getId() === $community->getMainCurrencyId()): ?>
|
|
|
|
<b><?= $currency->getCode() ?></b>
|
|
|
|
<?php else: ?>
|
2023-05-07 01:50:57 +02:00
|
|
|
<a href="<?= Container::$routeCollection->getRoute('community.currencyExchangeRates')->generateLink(['communitySlug' => $community->getSlug(), 'code' => $currency->getCode()]) ?>"><?= $currency->getCode() ?></a>
|
2023-05-01 23:37:30 +02:00
|
|
|
<?php endif; ?>
|
|
|
|
</p>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|