Se modifico un poco el layout y la opcion de cambiar la categoria

This commit is contained in:
Daniel Cortes
2019-03-11 23:58:56 -03:00
parent cb89bf932d
commit f12fe5b46d
11 changed files with 90 additions and 50 deletions

View File

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

View File

@@ -1,8 +1,9 @@
{% extends 'base.html' %}
{% block title %}category{% endblock %}
{% block title %}categories{% endblock %}
{% block content %}
<h4>Categories</h4>
<div class="grid">
{% for category in categories %}
<a href="{{ url_for('categories.view', id=category.id) }}">{{ category.name }}</a>
@@ -10,4 +11,3 @@
</div>
{% endblock %}

View File

@@ -3,7 +3,7 @@
{% block title %}categories/view/{{ category.name }}{% endblock %}
{% block content %}
<h3>{{ category.name }}</h3>
<h4>{{ category.name }}</h4>
<div class="grid">
{% for file in files %}
<a href="{{ url_for('files.preview_file', id=file.id) }}">{{ file.filename }}</a>