User assiciations are changable from within the backend interface from the clubs.
This commit is contained in:
@@ -86,7 +86,7 @@ defined('_JEXEC') or die;
|
||||
<?php if(sizeof($this->object->getUsers()) == 0 ): ?>
|
||||
<p>Dem Verein ist bisher kein Posten zugewiesen.</p>
|
||||
<?php else: ?>
|
||||
<table width='100%' class='table table-stiped, table-hover'>
|
||||
<table width='100%' class='table table-stiped, table-hover' id='userassocs'>
|
||||
<tr>
|
||||
<th width='20%'>Rolle</th>
|
||||
<th width='25%'>Name</th>
|
||||
@@ -96,28 +96,42 @@ defined('_JEXEC') or die;
|
||||
<th width='5%'>ID</th>
|
||||
</tr>
|
||||
<?php foreach($this->object->getUsers() as $ua): ?>
|
||||
<tr>
|
||||
<?php
|
||||
$user = $ua->getUser();
|
||||
if($user == null)
|
||||
{
|
||||
$username = '<i>Derzeit vakant</i>';
|
||||
$usercity = '';
|
||||
}
|
||||
else
|
||||
{
|
||||
$username = htmlentities($user->getName());
|
||||
$usercity = htmlentities($user->getCity());
|
||||
}
|
||||
?>
|
||||
<tr id='userassoc-<?php echo $ua->getId(); ?>'>
|
||||
<td><?php echo htmlentities($ua->getPosition()->getName()); ?></td>
|
||||
<td><?php echo htmlentities($ua->getUser()->getName()); ?></td>
|
||||
<td><?php echo htmlentities($ua->getUser()->getCity()); ?></td>
|
||||
<td><?php echo $username; ?></td>
|
||||
<td><?php echo $usercity; ?></td>
|
||||
<td style='text-align: center;'><?php if($ua->isAdmin()) echo "<span class='icon-checkmark'></span>"; ?></td>
|
||||
<td>
|
||||
<a href='#'><span class='icon-edit'></span></a>
|
||||
<a href='#'><span class='icon-delete'></span></a>
|
||||
<a href='<?php echo Route::_("index.php?option=com_clubs&view=clubposition&layout=edit&club={$this->object->getId()}&id={$ua->getId()}"); ?>' class='edit-position'><span class='icon-edit'></span></a>
|
||||
<a href='<?php echo Route::_("index.php?option=com_clubs&task=clubposition.delete&format=json&id={$ua->getId()}"); ?>' class='del-position'><span class='icon-delete'></span></a>
|
||||
</td>
|
||||
<td><?php echo $ua->getId(); ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
<p><a href='<?php echo Route::_('index.php?option=com_clubs&view=clubposition&layout=new'); ?>' id='new-position'><span class='icon-new'></span> Neuen Posten einfügen</a></p>
|
||||
<p><a href='<?php echo Route::_("index.php?option=com_clubs&view=clubposition&layout=edit&club={$this->object->getId()}&id=new"); ?>' id='new-position'><span class='icon-new'></span> Neuen Posten einfügen</a></p>
|
||||
<?php endif; ?>
|
||||
|
||||
<input type='submit' value='Speichern'> <br /><a href='<?php echo Route::_('index.php?option=com_clubs&view=clubs'); ?>'>Zurück zur Übersicht</a>
|
||||
<input type='submit' value='Speichern' class='form-exit'> <br /><a href='<?php echo Route::_('index.php?option=com_clubs&view=clubs'); ?>' class='form-exit'>Zurück zur Übersicht</a>
|
||||
</form>
|
||||
|
||||
<div id='dialog-club' class='dialog-hidden'>
|
||||
<div class='background'></div>
|
||||
<div class='dialog'>Ein Test</div>
|
||||
<div id='hidden-id'><?php echo $this->object->getId(); ?></div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user