Skip to content

Commit

Permalink
Use deprecated tag instead of sonata_template_deprecate
Browse files Browse the repository at this point in the history
  • Loading branch information
franmomu authored and phansys committed Jul 15, 2020
1 parent 591efc7 commit 50974bc
Show file tree
Hide file tree
Showing 20 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"symfony/http-kernel": "^4.4",
"symfony/options-resolver": "^4.4",
"symfony/security-acl": "^3.0",
"twig/twig": "^1.41 || ^2.10"
"twig/twig": "^2.10"
},
"conflict": {
"simplethings/entity-audit-bundle": ">=2.0",
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/views/CRUD/edit_modal.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ file that was distributed with this source code.
#}

{% sonata_template_deprecate '@SonataAdmin/CRUD/Association/edit_modal.html.twig' %}
{% deprecated 'The "edit_modal.html.twig" template is deprecated, use "@SonataAdmin/CRUD/Association/edit_modal.html.twig" instead.' %}

<div class="modal fade" id="field_dialog_{{ id }}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ This code manage the many-to-[one|many] association field popup
#}

{% sonata_template_deprecate '@SonataAdmin/CRUD/Association/edit_many_script.html.twig' %}
{% deprecated 'The "edit_orm_many_association_script.html.twig" template is deprecated, use "@SonataAdmin/CRUD/Association/edit_many_script.html.twig" instead.' %}

{% autoescape false %}

Expand Down
2 changes: 1 addition & 1 deletion src/Resources/views/CRUD/edit_orm_many_to_many.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ file that was distributed with this source code.
#}

{% sonata_template_deprecate '@SonataAdmin/CRUD/Association/edit_many_to_many.html.twig' %}
{% deprecated 'The "edit_orm_many_to_many.html.twig" template is deprecated, use "@SonataAdmin/CRUD/Association/edit_many_to_many.html.twig" instead.' %}

{% if sonata_admin.field_description.hasassociationadmin %}
<div id="field_container_{{ id }}" class="field-container">
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/views/CRUD/edit_orm_many_to_one.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ file that was distributed with this source code.
#}

{% sonata_template_deprecate '@SonataAdmin/CRUD/Association/edit_many_to_one.html.twig' %}
{% deprecated 'The "edit_orm_many_to_one.html.twig" template is deprecated, use "@SonataAdmin/CRUD/Association/edit_many_to_one.html.twig" instead.' %}

{% if not sonata_admin.field_description.hasassociationadmin%}
{{ value|render_relation_element(sonata_admin.field_description) }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ This code manage the one-to-many association field popup
#}

{% sonata_template_deprecate '@SonataAdmin/CRUD/Association/edit_one_script.html.twig' %}
{% deprecated 'The "edit_orm_one_association_script.html.twig" template is deprecated, use "@SonataAdmin/CRUD/Association/edit_one_script.html.twig" instead.' %}

{% autoescape false %}

Expand Down
2 changes: 1 addition & 1 deletion src/Resources/views/CRUD/edit_orm_one_to_many.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ file that was distributed with this source code.
#}

{% sonata_template_deprecate '@SonataAdmin/CRUD/Association/edit_one_to_many.html.twig' %}
{% deprecated 'The "edit_orm_one_to_many.html.twig" template is deprecated, use "@SonataAdmin/CRUD/Association/edit_one_to_many.html.twig" instead.' %}

{% if not sonata_admin.field_description.hasassociationadmin %}
{% for element in value %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ file that was distributed with this source code.
#}

{% sonata_template_deprecate '@SonataAdmin/CRUD/Association/edit_one_to_many_inline_table.html.twig' %}
{% deprecated 'The "edit_orm_one_to_many_inline_table.html.twig" template is deprecated, use "@SonataAdmin/CRUD/Association/edit_one_to_many_inline_table.html.twig" instead.' %}

<table class="table table-bordered">
<thead>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ file that was distributed with this source code.
#}

{% sonata_template_deprecate '@SonataAdmin/CRUD/Association/edit_one_to_many_inline_tabs.html.twig' %}
{% deprecated 'The "edit_orm_one_to_many_inline_tabs.html.twig" template is deprecated, use "@SonataAdmin/CRUD/Association/edit_one_to_many_inline_tabs.html.twig" instead.' %}

<div class="sonata-ba-tabs">
{% for nested_group_field in form.children %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ file that was distributed with this source code.
#}

{% sonata_template_deprecate '@SonataAdmin/CRUD/Association/edit_one_to_many_sortable_script_table.html.twig' %}
{% deprecated 'The "edit_orm_one_to_many_sortable_script_table.html.twig" template is deprecated, use "@SonataAdmin/CRUD/Association/edit_one_to_many_sortable_script_table.html.twig" instead.' %}

<script type="text/javascript">
jQuery('div#field_container_{{ id }} tbody.sonata-ba-tbody').first().sortable({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ file that was distributed with this source code.
#}

{% sonata_template_deprecate '@SonataAdmin/CRUD/Association/edit_one_to_many_sortable_script_tabs.html.twig' %}
{% deprecated 'The "edit_orm_one_to_many_sortable_script_tabs.html.twig" template is deprecated, use "@SonataAdmin/CRUD/Association/edit_one_to_many_sortable_script_tabs.html.twig" instead.' %}

<script type="text/javascript">
jQuery('div#field_container_{{ id }} .sonata-ba-tabs').sortable({
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/views/CRUD/edit_orm_one_to_one.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ file that was distributed with this source code.
#}

{% sonata_template_deprecate '@SonataAdmin/CRUD/Association/edit_one_to_one.html.twig' %}
{% deprecated 'The "edit_orm_one_to_one.html.twig" template is deprecated, use "@SonataAdmin/CRUD/Association/edit_one_to_one.html.twig" instead.' %}

{% if not sonata_admin.field_description.hasassociationadmin%}
{{ value|render_relation_element(sonata_admin.field_description) }}
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/views/CRUD/list_orm_many_to_many.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ file that was distributed with this source code.

{% extends admin.getTemplate('base_list_field') %}

{% sonata_template_deprecate '@SonataAdmin/CRUD/Association/list_many_to_many.html.twig' %}
{% deprecated 'The "list_orm_many_to_many.html.twig" template is deprecated, use "@SonataAdmin/CRUD/Association/list_many_to_many.html.twig" instead.' %}

{% block field %}
{% set route_name = field_description.options.route.name %}
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/views/CRUD/list_orm_many_to_one.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ file that was distributed with this source code.

{% extends admin.getTemplate('base_list_field') %}

{% sonata_template_deprecate '@SonataAdmin/CRUD/Association/list_many_to_one.html.twig' %}
{% deprecated 'The "list_orm_many_to_one.html.twig" template is deprecated, use "@SonataAdmin/CRUD/Association/list_many_to_one.html.twig" instead.' %}

{% block field %}
{% if value %}
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/views/CRUD/list_orm_one_to_many.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ file that was distributed with this source code.

{% extends admin.getTemplate('base_list_field') %}

{% sonata_template_deprecate '@SonataAdmin/CRUD/Association/list_one_to_many.html.twig' %}
{% deprecated 'The "list_orm_one_to_many.html.twig" template is deprecated, use "@SonataAdmin/CRUD/Association/list_one_to_many.html.twig" instead.' %}

{% block field %}
{% set route_name = field_description.options.route.name %}
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/views/CRUD/list_orm_one_to_one.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ file that was distributed with this source code.

{% extends admin.getTemplate('base_list_field') %}

{% sonata_template_deprecate '@SonataAdmin/CRUD/Association/list_one_to_one.html.twig' %}
{% deprecated 'The "list_orm_one_to_one.html.twig" template is deprecated, use "@SonataAdmin/CRUD/Association/list_one_to_one.html.twig" instead.' %}

{% block field %}
{% set route_name = field_description.options.route.name %}
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/views/CRUD/show_orm_many_to_many.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ file that was distributed with this source code.

{% extends '@SonataAdmin/CRUD/base_show_field.html.twig' %}

{% sonata_template_deprecate '@SonataAdmin/CRUD/Association/show_many_to_one.html.twig' %}
{% deprecated 'The "show_orm_many_to_many.html.twig" template is deprecated, use "@SonataAdmin/CRUD/Association/show_many_to_many.html.twig" instead.' %}

{% block field %}
<ul class="sonata-ba-show-many-to-many">
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/views/CRUD/show_orm_many_to_one.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ file that was distributed with this source code.

{% extends '@SonataAdmin/CRUD/base_show_field.html.twig' %}

{% sonata_template_deprecate '@SonataAdmin/CRUD/Association/show_many_to_one.html.twig' %}
{% deprecated 'The "show_orm_many_to_one.html.twig" template is deprecated, use "@SonataAdmin/CRUD/Association/show_many_to_one.html.twig" instead.' %}

{% block field %}
{% if value %}
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/views/CRUD/show_orm_one_to_many.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ file that was distributed with this source code.

{% extends '@SonataAdmin/CRUD/base_show_field.html.twig' %}

{% sonata_template_deprecate '@SonataAdmin/CRUD/Association/show_one_to_many.html.twig' %}
{% deprecated 'The "show_orm_one_to_many.html.twig" template is deprecated, use "@SonataAdmin/CRUD/Association/show_one_to_many.html.twig" instead.' %}

{% block field %}
<ul class="sonata-ba-show-one-to-many">
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/views/CRUD/show_orm_one_to_one.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ file that was distributed with this source code.

{% extends '@SonataAdmin/CRUD/base_show_field.html.twig' %}

{% sonata_template_deprecate '@SonataAdmin/CRUD/Association/show_one_to_one.html.twig' %}
{% deprecated 'The "show_orm_one_to_one.html.twig" template is deprecated, use "@SonataAdmin/CRUD/Association/show_one_to_one.html.twig" instead.' %}

{% block field %}
{% set route_name = field_description.options.route.name %}
Expand Down

0 comments on commit 50974bc

Please sign in to comment.