Refactor MoveFile.js and folder.ejs to improve file moving functionality
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-06-02 18:17:15 +02:00
parent ce8f1bbbac
commit f05a7aff79
2 changed files with 2 additions and 6 deletions

View File

@@ -143,8 +143,9 @@
<form class="file-actions d-flex align-items-center mb-2" action="/api/dpanel/dashboard/movefile/<%= folderName %>" method="post">
<input type="hidden" name="fileName" value="<%= file.name %>">
<input type="hidden" name="userName" value="<%= userName %>">
<select class="form-control rounded mr-2 custom-dropdown" name="folderName">
<select class="form-control rounded mr-2 custom-dropdown" name="newFolderName">
<option value="" disabled selected>Déplacer vers...</option>
<option value="root">Dossier Racine</option>
<% allFolders.forEach(folder => { %>
<option value="<%= folder %>"><%= folder %></option>
<% }); %>