Los archivos se guardan en la base de datos y se agregaron categorias

Si, creo que eso nada mas
This commit is contained in:
Daniel Cortes
2019-03-09 02:44:17 -03:00
parent fcf30823f7
commit cd2087c567
12 changed files with 340 additions and 41 deletions

View File

@@ -0,0 +1,12 @@
{% extends 'base.html' %}
{% block title %}Categories{% endblock %}
{% block content %}
<h3>Create a new Category</h3>
<form method="post">
<label for="name">~/name</label>
<input type="text" class="u-full-width" name="name" id="name">
<input type="submit" class="button-primary" value="create">
</form>
{% endblock %}

View File

@@ -0,0 +1,13 @@
{% extends 'base.html' %}
{% block title %}category{% endblock %}
{% block content %}
<div class="grid">
{% for category in categories %}
<a href="{{ url_for('categories.view', id=category.id) }}">{{ category.name }}</a>
{% endfor %}
</div>
{% endblock %}

View File

@@ -0,0 +1,13 @@
{% extends 'base.html' %}
{% block title %}categories/view/{{ category.name }}{% endblock %}
{% block content %}
<h3>{{ category.name }}</h3>
<div class="grid">
{% for file in files %}
<a href="{{ url_for('files.preview_file', id=file.id) }}">{{ file.filename }}</a>
{% endfor %}
</div>
{% endblock %}