Modification de l'affichage des catégories.
This commit is contained in:
parent
df75c6f7b0
commit
9fdd7c9786
3 changed files with 21 additions and 2 deletions
18
content/migrations/0008_auto_20180315_1337.py
Normal file
18
content/migrations/0008_auto_20180315_1337.py
Normal 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'),
|
||||||
|
),
|
||||||
|
]
|
|
@ -19,7 +19,8 @@ class Category(models.Model):
|
||||||
)
|
)
|
||||||
description = models.TextField(
|
description = models.TextField(
|
||||||
verbose_name="Description de la catégorie",
|
verbose_name="Description de la catégorie",
|
||||||
default=""
|
default="",
|
||||||
|
blank=True
|
||||||
)
|
)
|
||||||
image = models.ImageField(
|
image = models.ImageField(
|
||||||
verbose_name="Illustration de la catégorie",
|
verbose_name="Illustration de la catégorie",
|
||||||
|
|
|
@ -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="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">
|
<div class="col-md-5 p-lg-5 mx-auto my-5 title-block">
|
||||||
<h1 class="display-4 font-weight-normal">{{category.name}}</h1>
|
<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>
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
|
|
Loading…
Reference in a new issue