mirror of
https://git.code.sf.net/p/seeddms/code
synced 2026-01-20 16:19:16 +00:00
list download links on seperate tab
This commit is contained in:
parent
20dadf38a1
commit
9c6917bf5f
|
|
@ -495,6 +495,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
|||
$approvalStatus = $latestContent->getApprovalStatus();
|
||||
$receiptStatus = $latestContent->getReceiptStatus();
|
||||
$revisionStatus = $latestContent->getRevisionStatus();
|
||||
$downloadlinks = $latestContent->getDownloadLinks($user->isAdmin() ? null : $user);
|
||||
?>
|
||||
|
||||
<div class="row-fluid">
|
||||
|
|
@ -540,6 +541,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
|||
?>
|
||||
<li class="<?php if($currenttab == 'attachments') echo 'active'; ?>"><a data-target="#attachments" data-toggle="tab"><?php printMLText('linked_files'); echo (count($files)) ? " (".count($files).")" : ""; ?></a></li>
|
||||
<li class="<?php if($currenttab == 'links') echo 'active'; ?>"><a data-target="#links" data-toggle="tab"><?php printMLText('linked_documents'); echo (count($links)) ? " (".count($links).")" : ""; ?></a></li>
|
||||
<li class="<?php if($currenttab == 'downloadlinks') echo 'active'; ?>"><a data-target="#downloadlinks" data-toggle="tab"><?php printMLText('download_links'); echo (count($downloadlinks)) ? " (".count($downloadlinks).")" : ""; ?></a></li>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane <?php if(!$currenttab || $currenttab == 'docinfo') echo 'active'; ?>" id="docinfo">
|
||||
|
|
@ -1677,6 +1679,32 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
|||
print "</tbody>\n</table>\n";
|
||||
$this->contentContainerEnd();
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<div class="tab-pane <?php if($currenttab == 'downloadlinks') echo 'active'; ?>" id="downloadlinks">
|
||||
<?php
|
||||
$this->contentContainerStart();
|
||||
if (count($downloadlinks) > 0) {
|
||||
print "<table class=\"table table-condensed\">";
|
||||
print "<thead>\n<tr>\n";
|
||||
print "<th>".getMLText('user')."</th>\n";
|
||||
print "<th>".getMLText('hash')."</th>\n";
|
||||
print "</tr>\n</thead>\n<tbody>\n";
|
||||
|
||||
foreach($downloadlinks as $link) {
|
||||
print "<tr>";
|
||||
print "<td>";
|
||||
$responsibleUser = $link->getUser();
|
||||
print htmlspecialchars($responsibleUser->getFullName());
|
||||
print "</td>";
|
||||
print "<td>";
|
||||
echo $link->getHash();
|
||||
print "</td>";
|
||||
print "</tr>";
|
||||
}
|
||||
print "</tbody>\n</table>\n";
|
||||
}
|
||||
$this->contentContainerEnd();
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user