add column with role

This commit is contained in:
Uwe Steinmann 2016-03-04 16:01:40 +01:00
parent 85ac4314f5
commit 535012f844

View File

@ -48,7 +48,7 @@ class SeedDMS_View_SubstituteUser extends SeedDMS_Bootstrap_Style {
$this->contentContainerStart();
?>
<table class="table table-condensed">
<tr><th><?php printMLText('name'); ?></th><th><?php printMLText('email');?></th><th><?php printMLText('groups'); ?></th><th></th></tr>
<thead><tr><th><?php printMLText('name'); ?></th><th><?php printMLText('email');?></th><th><?php printMLText('role'); ?></th><th><?php printMLText('groups'); ?></th><th></th></tr></thead><tbody>
<?php
foreach ($allUsers as $currUser) {
echo "<tr>";
@ -60,6 +60,9 @@ class SeedDMS_View_SubstituteUser extends SeedDMS_Bootstrap_Style {
echo "<a href=\"mailto:".htmlspecialchars($currUser->getEmail())."\">".htmlspecialchars($currUser->getEmail())."</a><br />";
echo "</td>";
echo "<td>";
echo htmlspecialchars($currUser->getRole()->getName());
echo "</td>";
echo "<td>";
$groups = $currUser->getGroups();
if (count($groups) != 0) {
for ($j = 0; $j < count($groups); $j++) {
@ -76,7 +79,7 @@ class SeedDMS_View_SubstituteUser extends SeedDMS_Bootstrap_Style {
echo "</td>";
echo "</tr>";
}
echo "</table>";
echo "</tbody></table>";
$this->contentContainerEnd();
$this->htmlEndPage();