parent
70080f9f0a
commit
8a7e7c1614
7 changed files with 105 additions and 23 deletions
@ -0,0 +1,23 @@ |
|||||||
|
<div class="col-md-4 col-xs-4 col-sm-4 col-lg-4"> |
||||||
|
<div class="thumbnail"> |
||||||
|
{% set im = child.image|thumbnail("420x420") %} |
||||||
|
<a href="{{ child.get_absolute_url() }}"> |
||||||
|
|
||||||
|
<img src="/static/{{ im.url }}" |
||||||
|
class="img-responsive" alt="Купить {{ child.title }}" |
||||||
|
title="Купить {{ child.title }}" width="210" height="210"></a> |
||||||
|
|
||||||
|
<div class="caption"><br> |
||||||
|
<div class="title text-center"> |
||||||
|
<a href="{{ child.get_absolute_url() }}"> |
||||||
|
{{ child.title }} |
||||||
|
</a> |
||||||
|
</div> |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div> |
||||||
|
|
||||||
|
|
||||||
|
</div> |
||||||
|
</div> |
||||||
File diff suppressed because one or more lines are too long
@ -0,0 +1,19 @@ |
|||||||
|
# -*- coding: utf-8 -*- |
||||||
|
from __future__ import unicode_literals |
||||||
|
|
||||||
|
from django.db import models, migrations |
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration): |
||||||
|
|
||||||
|
dependencies = [ |
||||||
|
('store', '0036_auto_20150925_1215'), |
||||||
|
] |
||||||
|
|
||||||
|
operations = [ |
||||||
|
migrations.AddField( |
||||||
|
model_name='category', |
||||||
|
name='hide_products', |
||||||
|
field=models.BooleanField(verbose_name='Показывать дочерние категории вместо товаров', default=False), |
||||||
|
), |
||||||
|
] |
||||||
Loading…
Reference in new issue