added server side directory adding, validation and redirecting, show directory path and mention 'files' near filecount in panel header

This commit is contained in:
Xevion
2020-10-31 18:34:54 -05:00
parent 4cc1402d21
commit 688ffe88dd
3 changed files with 27 additions and 5 deletions

View File

@@ -17,7 +17,7 @@
<br>
Additionally, files can be matched <i>recursively</i> if you so wish. Please note that this functionality may create anomalous behavior around duplicate files.
</p>
<form action="{% url 'add_submit' %}">
<form action="{% url 'add_submit' %}" method="post">
{% csrf_token %}
<div class="field">
<label class="label">Directory</label>

View File

@@ -2,9 +2,9 @@
{% block content %}
<div class="panel">
<div class="panel-heading">
Files
{{ directory.path }}
<span style="font-weight: 400; font-style: italic; font-size: 70%;">
{{ files|length }}
{{ files|length }} files
</span>
<span style="vertical-align: middle;" class="panel-icon">
<a href="{% url 'index' %}">