aboutsummaryrefslogtreecommitdiff
path: root/app/views/files/index.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+github@gmail.com>2024-06-11 22:31:40 +0200
committerJan-Hendrik Willms <tleilax+github@gmail.com>2024-07-04 15:37:55 +0200
commite9765e298b4972ae1066348bdb4b4299e081d026 (patch)
treea3315b8f9215c8057f809a54618f45a2404f6643 /app/views/files/index.php
parenta9c40e363b3e13223bb771105c190be9475021a5 (diff)
files wiptic-4299
Diffstat (limited to 'app/views/files/index.php')
-rw-r--r--app/views/files/index.php25
1 files changed, 11 insertions, 14 deletions
diff --git a/app/views/files/index.php b/app/views/files/index.php
index 6bf28f7..841799a 100644
--- a/app/views/files/index.php
+++ b/app/views/files/index.php
@@ -87,23 +87,20 @@
</form>
<? endif ?>
- <form method="post"
- id="files_table_form"
- action="<?= $controller->link_for('file/bulk/' . $topFolder->getId()) ?>"
- data-files="<?= htmlReady(json_encode($vue_files)) ?>"
- data-folders="<?= htmlReady(json_encode((array) $vue_folders)) ?>"
- data-breadcrumbs="<?= htmlReady(json_encode((array) array_reverse($vue_breadcrumbs))) ?>"
- data-topfolder="<?= htmlReady(json_encode((array) $vue_topFolder)) ?>">
+ <form method="post" action="<?= $controller->link_for('file/bulk/' . $topFolder->getId()) ?>">
<?= CSRFProtection::tokenTag() ?>
<input type="hidden" name="parent_folder_id" value="<?= $topFolder->getId() ?>">
- <files-table :showdownloads="<?= $show_downloads ? "true" : "false" ?>"
- :breadcrumbs="breadcrumbs"
- :files="files"
- :folders="folders"
- :topfolder="topfolder"
- ></files-table>
+
+ <?= Studip\VueApp::create('FilesTable')
+ ->withProps([
+ 'breadcrumbs' => $vue_breadcrumbs,
+ 'files' => $vue_files,
+ 'folders' => $vue_folders,
+ 'showdownloads' => $show_downloads,
+ 'topfolder' => $vue_topFolder,
+ ]) ?>
</form>
- <? if ($GLOBALS['user']->id !== 'nobody') : ?>
+ <? if (User::findCurrent()) : ?>
<?= $this->render_partial('file/upload_window.php') ?>
<?= $this->render_partial('file/add_files_window.php', [