Browse Source

[Feature] Parrainage

develop
Fab 3 years ago
parent
commit
4f09fe6529
2 changed files with 11 additions and 7 deletions
  1. +3
    -1
      ShopBundle/Resources/views/backend/default/field/user.html.twig
  2. +8
    -6
      ShopBundle/Resources/views/backend/default/list.html.twig

+ 3
- 1
ShopBundle/Resources/views/backend/default/field/user.html.twig View File

{% if item.user is not null %}
{% if item is defined and item.user is defined and item.user is not null %}
<a href="{{ path('easyadmin', {"entity": 'User', 'action': "show", "id" : item.user.id})}}">{{ value }}</a> <a href="{{ path('easyadmin', {"entity": 'User', 'action': "show", "id" : item.user.id})}}">{{ value }}</a>
{% elseif user is defined and user is not null %}
<a href="{{ path('easyadmin', {"entity": 'User', 'action': "show", "id" : user.id})}}">{{ user }}</a>
{% else %} {% else %}
{{ value }} {{ value }}
{% endif %} {% endif %}

+ 8
- 6
ShopBundle/Resources/views/backend/default/list.html.twig View File

</th> </th>
{% endfor %} {% endfor %}


{% if _list_item_actions|length > 0 %}
{# {% if _list_item_actions|length > 0 %}#}
<th {% if _entity_config.list.collapse_actions %}width="10px"{% endif %} {{ easyadmin_config('design.rtl') ? 'dir="rtl"' }}> <th {% if _entity_config.list.collapse_actions %}width="10px"{% endif %} {{ easyadmin_config('design.rtl') ? 'dir="rtl"' }}>
<span class="sr-only">{{ 'list.row_actions'|trans(_trans_parameters, 'EasyAdminBundle') }}</span> <span class="sr-only">{{ 'list.row_actions'|trans(_trans_parameters, 'EasyAdminBundle') }}</span>
</th> </th>
{% endif %}
{#{% endif %}#}
</tr> </tr>
{% endblock table_head %} {% endblock table_head %}
{% block table_filters %} {% block table_filters %}


</th> </th>
{% endfor %} {% endfor %}
{% if _list_item_actions|length > 0 %}
{#{% if _list_item_actions|length > 0 %}#}
<th class="actions"> <th class="actions">
<button type="submit" form="filters-form" class="btn btn-sm btn-info" <button type="submit" form="filters-form" class="btn btn-sm btn-info"
data-toggle="tooltip" data-toggle="tooltip"




</th> </th>
{% endif %}
{# {% endif %}#}


</tr> </tr>
{% endif %} {% endif %}
</td> </td>
{% endfor %} {% endfor %}


<td class="actions">
{% if _list_item_actions|length > 0 %} {% if _list_item_actions|length > 0 %}
{% set _column_label = 'list.row_actions'|trans(_trans_parameters, 'EasyAdminBundle') %} {% set _column_label = 'list.row_actions'|trans(_trans_parameters, 'EasyAdminBundle') %}
<td class="actions">
{% block item_actions %} {% block item_actions %}
{% set _actions_template = '@LcShop/backend/default/block/actions.html.twig' %} {% set _actions_template = '@LcShop/backend/default/block/actions.html.twig' %}
{{ include(_actions_template, { {{ include(_actions_template, {
item: item item: item
}, with_context = false) }} }, with_context = false) }}
{% endblock item_actions %} {% endblock item_actions %}
</td>
{% endif %} {% endif %}
</td>

</tr> </tr>
{% endif %} {% endif %}
{% else %} {% else %}

Loading…
Cancel
Save