Visual enhancement of club's presentation

This commit is contained in:
Christian Wolf 2019-06-11 14:12:37 +02:00
parent 9cef15b4f5
commit 150dfd8f60

View File

@ -83,29 +83,33 @@ defined('_JEXEC') or die;
<?php endforeach; ?> <?php endforeach; ?>
<h2>Posten</h2> <h2>Posten</h2>
<table width='100%' class='table table-stiped, table-hover'> <?php if(sizeof($this->object->getUsers()) == 0 ): ?>
<tr> <p>Dem Verein ist bisher kein Posten zugewiesen.</p>
<th width='20%'>Rolle</th> <?php else: ?>
<th width='25%'>Name</th> <table width='100%' class='table table-stiped, table-hover'>
<th width='10%'>Stadt</th> <tr>
<th width='5%' style='text-align: center;'>Admin?</th> <th width='20%'>Rolle</th>
<th></th> <th width='25%'>Name</th>
<th width='5%'>ID</th> <th width='10%'>Stadt</th>
</tr> <th width='5%' style='text-align: center;'>Admin?</th>
<?php foreach($this->object->getUsers() as $ua): ?> <th></th>
<tr> <th width='5%'>ID</th>
<td><?php echo htmlentities($ua->getPosition()->getName()); ?></td> </tr>
<td><?php echo htmlentities($ua->getUser()->getName()); ?></td> <?php foreach($this->object->getUsers() as $ua): ?>
<td><?php echo htmlentities($ua->getUser()->getCity()); ?></td> <tr>
<td style='text-align: center;'><?php if($ua->isAdmin()) echo "<span class='icon-checkmark'></span>"; ?></td> <td><?php echo htmlentities($ua->getPosition()->getName()); ?></td>
<td> <td><?php echo htmlentities($ua->getUser()->getName()); ?></td>
<a href='#'><span class='icon-edit'></span></a> <td><?php echo htmlentities($ua->getUser()->getCity()); ?></td>
<a href='#'><span class='icon-delete'></span></a> <td style='text-align: center;'><?php if($ua->isAdmin()) echo "<span class='icon-checkmark'></span>"; ?></td>
</td> <td>
<td><?php echo $ua->getId(); ?></td> <a href='#'><span class='icon-edit'></span></a>
</tr> <a href='#'><span class='icon-delete'></span></a>
<?php endforeach; ?> </td>
</table> <td><?php echo $ua->getId(); ?></td>
</tr>
<?php endforeach; ?>
</table>
<?php endif; ?>
<p><a href='#'><span class='icon-new'></span> Neuen Posten einf&uuml;gen</a></p> <p><a href='#'><span class='icon-new'></span> Neuen Posten einf&uuml;gen</a></p>
<?php endif; ?> <?php endif; ?>