Modification de l'affichage des catégories.

This commit is contained in:
Hugo LEVY-FALK 2018-03-18 11:37:27 +01:00
parent df75c6f7b0
commit 9fdd7c9786
3 changed files with 21 additions and 2 deletions

View file

@ -0,0 +1,18 @@
# Generated by Django 2.0.1 on 2018-03-15 12:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('content', '0007_auto_20180309_1315'),
]
operations = [
migrations.AlterField(
model_name='category',
name='description',
field=models.TextField(blank=True, default='', verbose_name='Description de la catégorie'),
),
]

View file

@ -19,7 +19,8 @@ class Category(models.Model):
)
description = models.TextField(
verbose_name="Description de la catégorie",
default=""
default="",
blank=True
)
image = models.ImageField(
verbose_name="Illustration de la catégorie",

View file

@ -22,7 +22,7 @@ $('html, body').animate({scrollTop: $('#category-content').offset().top}, 800);
<div class="position-relative overflow-hidden p-3 p-md-5 text-center bg-light page-title">
<div class="col-md-5 p-lg-5 mx-auto my-5 title-block">
<h1 class="display-4 font-weight-normal">{{category.name}}</h1>
<p class="lead font-weight-normal">{{category.description_short}}</p>
<p class="lead font-weight-normal">{{category.description_short|safe}}</p>
</div>
</div>
<br />