|
@@ -24,14 +24,18 @@ This template can be customized to match your needs. You should only extends the
|
|
|
|
|
|
<div class="col-xs-6 col-sm-3 mosaic-box sonata-ba-list-field-batch sonata-ba-list-field" objectId="{{ admin.id(object) }}">
|
|
<div class="col-xs-6 col-sm-3 mosaic-box sonata-ba-list-field-batch sonata-ba-list-field" objectId="{{ admin.id(object) }}">
|
|
|
|
|
|
- <div class="mosaic-box-outter" style="background: url({% block sonata_mosaic_background %}{{ meta.image }}{% endblock %}) white no-repeat center center; background-size: 100% auto">
|
|
|
|
|
|
+ <div class="mosaic-box-outter">
|
|
<div class="mosaic-inner-box">
|
|
<div class="mosaic-inner-box">
|
|
{#
|
|
{#
|
|
This box will be display when the mouse is not on the box
|
|
This box will be display when the mouse is not on the box
|
|
#}
|
|
#}
|
|
|
|
+
|
|
<div class="mosaic-inner-box-default">
|
|
<div class="mosaic-inner-box-default">
|
|
|
|
+ {% block sonata_mosaic_background %}
|
|
|
|
+ <img src="{{ meta.image }}" alt="" />
|
|
|
|
+ {% endblock %}
|
|
{% block sonata_mosaic_default_view %}
|
|
{% block sonata_mosaic_default_view %}
|
|
- <span class="label label-primary pull-right">#{{ admin.id(object) }}</span>
|
|
|
|
|
|
+ <span class="mosaic-box-label label label-primary pull-right">#{{ admin.id(object) }}</span>
|
|
{% endblock %}
|
|
{% endblock %}
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -41,8 +45,7 @@ This template can be customized to match your needs. You should only extends the
|
|
#}
|
|
#}
|
|
<div class="mosaic-inner-box-hover">
|
|
<div class="mosaic-inner-box-hover">
|
|
{% block sonata_mosaic_hover_view %}
|
|
{% block sonata_mosaic_hover_view %}
|
|
- <span class="label label-primary pull-right">#{{ admin.id(object) }}</span>
|
|
|
|
-
|
|
|
|
|
|
+ <span class="mosaic-box-label label label-primary pull-right">#{{ admin.id(object) }}</span>
|
|
{{ meta.description }}
|
|
{{ meta.description }}
|
|
{% endblock %}
|
|
{% endblock %}
|
|
</div>
|
|
</div>
|
|
@@ -52,9 +55,9 @@ This template can be customized to match your needs. You should only extends the
|
|
|
|
|
|
{% block sonata_mosaic_description %}
|
|
{% block sonata_mosaic_description %}
|
|
{% if admin.isGranted('EDIT', object) and admin.hasRoute('edit') %}
|
|
{% if admin.isGranted('EDIT', object) and admin.hasRoute('edit') %}
|
|
- <a href="{{ admin.generateUrl('edit', {'id' : object|sonata_urlsafeid }) }}">{{ meta.title|truncate(40) }}</a>
|
|
|
|
|
|
+ <a class="mosaic-inner-link" href="{{ admin.generateUrl('edit', {'id' : object|sonata_urlsafeid }) }}">{{ meta.title|truncate(40) }}</a>
|
|
{% elseif admin.isGranted('SHOW', object) and admin.hasRoute('show') %}
|
|
{% elseif admin.isGranted('SHOW', object) and admin.hasRoute('show') %}
|
|
- <a href="{{ admin.generateUrl('show', {'id' : object|sonata_urlsafeid }) }}">{{ meta.title|truncate(40) }}</a>
|
|
|
|
|
|
+ <a class="mosaic-inner-link" href="{{ admin.generateUrl('show', {'id' : object|sonata_urlsafeid }) }}">{{ meta.title|truncate(40) }}</a>
|
|
{% else %}
|
|
{% else %}
|
|
{{ meta.title|truncate(40) }}
|
|
{{ meta.title|truncate(40) }}
|
|
{% endif %}
|
|
{% endif %}
|