Skip to content
Snippets Groups Projects
Commit 30d8f362 authored by Huang's avatar Huang
Browse files

minor change on files.html

parent 530b9a18
No related branches found
No related tags found
No related merge requests found
{% extends 'mainTemplate.html' %}
{% block content %}
<div>
<!-- <a href="{% url 'upload' %}">Upload file</a><hr>-->
<div>
{% for file in audio_files %}
<div>
{{ file.name }} --- {{ file.created }}
{% if file.file %}
--- {{ file.filename }} --- {{ file.file.size|filesizeformat }}
{% endif %}
{% include 'base/audioPlayer.html' %}
<br>
<form method="POST"
style="display: inline;"
action="{% url 'delete' file.id %}">
{% csrf_token %}
<input type="submit" value="Delete"/>
</form>
<hr>
</div>
{% endfor %}
</div>
</div>
{% endblock content %}
\ No newline at end of file
......@@ -50,30 +50,4 @@ import { Button } from 'semantic-ui-react'
<h2>Project Description</h2>
<!--<div>-->
<!-- <a href="{% url 'upload' %}">Upload file</a><hr>-->
<!-- <div>-->
<!-- {% for file in audio_files %}-->
<!-- <div>-->
<!-- {{ file.name }} -&#45;&#45; {{ file.created }}-->
<!-- {% if file.file %}-->
<!-- -&#45;&#45; {{ file.filename }} -&#45;&#45; {{ file.file.size|filesizeformat }}-->
<!-- {% endif %}-->
<!-- {% include 'base/audioPlayer.html' %}-->
<!-- <br>-->
<!-- <form method="POST"-->
<!-- style="display: inline;"-->
<!-- action="{% url 'delete' file.id %}">-->
<!-- {% csrf_token %}-->
<!-- <input type="submit" value="Delete"/>-->
<!-- </form>-->
<!-- <hr>-->
<!-- </div>-->
<!-- {% endfor %}-->
<!-- </div>-->
<!--</div>-->
{% endblock content %}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment