-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
5 changed files
with
135 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
src/bundle/Resources/views/themes/admin/ui/component/grid_view/grid_view_item.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{%- import '@ibexadesign/ui/component/macros.html.twig' as html -%} | ||
|
||
{%- set is_template = is_template|default(false) -%} | ||
|
||
{%- set item_attr = item_attr|default({})|merge({ | ||
class: ('ibexa-grid-view-item ' | ||
~ (is_marked|default(false) ? 'ibexa-grid-view-item--marked ') | ||
~ (is_not_selectable|default(false) ? 'ibexa-grid-view-item--not-selectable ') | ||
~ (is_selected|default(false) ? 'ibexa-grid-view-item--selected ') | ||
~ item_attr.class|default(''))|trim, | ||
}) -%} | ||
|
||
{%- set item_element = item_element|default('div') -%} | ||
|
||
{%- block item -%} | ||
<{{ item_element }} {{ html.attributes(item_attr, is_template) }}> | ||
{%- block item_content -%} | ||
{%- block item_image -%} | ||
<div class="ibexa-grid-view-item__image-wrapper"> | ||
{% if image_url is defined and image_url is not null %} | ||
<img class="ibexa-grid-view-item__image" src="{{ image_url }}" alt="" /> | ||
{% else %} | ||
<svg class="ibexa-icon ibexa-icon--dark ibexa-icon--extra-large"> | ||
<use xlink:href="{{ icon_path }}"></use> | ||
</svg> | ||
{% endif %} | ||
</div> | ||
{%- endblock -%} | ||
|
||
{%- block item_footer -%} | ||
<div class="ibexa-grid-view-item__footer"> | ||
{%- block item_footer_contet -%} | ||
{%- block item_title -%} | ||
<div class="ibexa-grid-view-item__title"> | ||
{{ title|default('') }} | ||
</div> | ||
{%- endblock -%} | ||
|
||
{%- block item_detail_a -%} | ||
<div class="ibexa-grid-view-item__detail-a"> | ||
{{ detail_a|default('') }} | ||
</div> | ||
{%- endblock -%} | ||
|
||
{%- block item_detail_b -%} | ||
<div class="ibexa-grid-view-item__detail-b"> | ||
{{ detail_b|default('') }} | ||
</div> | ||
{%- endblock -%} | ||
{%- endblock -%} | ||
</div> | ||
{%- endblock -%} | ||
{%- endblock -%} | ||
</{{ item_element }}> | ||
{%- endblock -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters