RVRNEXT-5 add links to community main page

This commit is contained in:
Bence Pőcze 2023-04-23 20:46:11 +02:00
parent ef16e70235
commit 47567c9b75
Signed by: bence
GPG Key ID: DC5BD6E95A333E6D
3 changed files with 9 additions and 3 deletions

View File

@ -1,7 +1,7 @@
@extends(templates/layout_normal)
@section(main)
<h2><?= $community->getName() ?> - Edit currencies</h2>
<h2><a href="<?= Container::$routeCollection->getRoute('community')->generateLink(['communityId' => $community->getId()]) ?>"><?= $community->getName() ?></a> - Edit currencies</h2>
<div class="box">
<table class="fullWidth">
<thead>

View File

@ -1,7 +1,13 @@
@extends(templates/layout_normal)
@section(main)
<h2><?= isset($community) ? $community->getName() . ' - Edit' : 'New community' ?></h2>
<h2>
<?php if (isset($community)): ?>
<a href="<?= Container::$routeCollection->getRoute('community')->generateLink(['communityId' => $community->getId()]) ?>"><?= $community->getName() ?></a> - Edit
<?php else: ?>
New community
<?php endif; ?>
</h2>
<div class="box">
<?php
$formAction = isset($community) ?

View File

@ -5,7 +5,7 @@
@extends(templates/layout_normal)
@section(main)
<h2><?= $community->getName() ?> - Edit members</h2>
<h2><a href="<?= Container::$routeCollection->getRoute('community')->generateLink(['communityId' => $community->getId()]) ?>"><?= $community->getName() ?></a> - Edit members</h2>
<div class="box">
<table class="fullWidth">
<thead>