This commit is contained in:
pika 2025-03-24 20:34:42 +01:00
parent 34afc48816
commit 4e781ba819
8 changed files with 855 additions and 160 deletions

View file

@ -0,0 +1,16 @@
{% extends "base.html" %}
{% block title %}Page Not Found - Flask Files{% endblock %}
{% block content %}
<div class="error-container">
<div class="error-icon">
<i class="fas fa-exclamation-triangle"></i>
</div>
<h1>404 Not Found</h1>
<p>The page you're looking for doesn't exist.</p>
<a href="{{ url_for('dashboard.index') }}" class="btn primary">
<i class="fas fa-home"></i> Return to Dashboard
</a>
</div>
{% endblock %}

View file

@ -72,19 +72,19 @@
<div id="new-folder-modal" class="modal">
<div class="modal-content">
<div class="modal-header">
<h3>Create New Folder</h3>
<h2>Create New Folder</h2>
<button class="modal-close">&times;</button>
</div>
<div class="modal-body">
<form id="new-folder-form" action="{{ url_for('files.create_folder') }}" method="post">
<form action="{{ url_for('files.create_folder') }}" method="post">
<div class="form-group">
<label for="folder-name">Folder Name</label>
<input type="text" id="folder-name" name="name" required placeholder="Enter folder name">
<input type="hidden" id="parent-folder-id" name="parent_id"
value="{% if current_folder %}{{ current_folder.id }}{% endif %}">
<label for="folder_name">Folder Name</label>
<input type="text" id="folder_name" name="folder_name" required>
</div>
<input type="hidden" id="parent_id" name="parent_id"
value="{{ current_folder.id if current_folder else '' }}">
<div class="form-actions">
<button type="button" class="btn modal-cancel">Cancel</button>
<button type="button" class="btn secondary modal-cancel">Cancel</button>
<button type="submit" class="btn primary">Create Folder</button>
</div>
</form>
@ -139,4 +139,21 @@
<!-- Context Menu -->
<div id="context-menu" class="context-menu"></div>
<!-- Add this before the closing content block -->
<div id="selection-actions" class="selection-actions">
<span class="selection-count">0 items selected</span>
<button class="action-btn" id="selection-download">
<i class="fas fa-download"></i> Download
</button>
<button class="action-btn" id="selection-move">
<i class="fas fa-cut"></i> Cut
</button>
<button class="action-btn" id="selection-copy">
<i class="fas fa-copy"></i> Copy
</button>
<button class="action-btn danger" id="selection-delete">
<i class="fas fa-trash"></i> Delete
</button>
</div>
{% endblock %}