add column with role

This commit is contained in:
Uwe Steinmann 2016-03-04 09:38:37 +01:00
parent 304a5d804e
commit 795f03f8b8

View File

@ -50,7 +50,7 @@ class SeedDMS_View_UserList extends SeedDMS_Bootstrap_Style {
?> ?>
<table class="table table-condensed"> <table class="table table-condensed">
<tr><th></th><th><?php printMLText('name'); ?></th><th><?php printMLText('groups'); ?></th><th><?php printMLText('discspace'); ?></th><th><?php printMLText('authentication'); ?></th><th></th></tr> <thead><tr><th></th><th><?php printMLText('name'); ?></th><th><?php printMLText('groups'); ?></th><th><?php printMLText('role'); ?></th><th><?php printMLText('discspace'); ?></th><th><?php printMLText('authentication'); ?></th><th></th></tr></thead><tbody>
<?php <?php
foreach ($allUsers as $currUser) { foreach ($allUsers as $currUser) {
echo "<tr>"; echo "<tr>";
@ -74,6 +74,9 @@ class SeedDMS_View_UserList extends SeedDMS_Bootstrap_Style {
} }
echo "</td>"; echo "</td>";
echo "<td>"; echo "<td>";
echo htmlspecialchars($currUser->getRole()->getName());
echo "</td>";
echo "<td>";
echo SeedDMS_Core_File::format_filesize($currUser->getUsedDiskSpace()); echo SeedDMS_Core_File::format_filesize($currUser->getUsedDiskSpace());
if($quota) { if($quota) {
echo " / "; echo " / ";
@ -109,7 +112,7 @@ class SeedDMS_View_UserList extends SeedDMS_Bootstrap_Style {
echo "</td>"; echo "</td>";
echo "</tr>"; echo "</tr>";
} }
echo "</table>"; echo "</tbody></table>";
$this->contentContainerEnd(); $this->contentContainerEnd();
$this->htmlEndPage(); $this->htmlEndPage();