-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump deps (especially twig updated to 3.12)
- Loading branch information
1 parent
bf084ec
commit 708b58b
Showing
13 changed files
with
340 additions
and
369 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,42 @@ | ||
<?php | ||
// SPDX-License-Identifier: BSD-3-Clause | ||
|
||
declare(strict_types=1); | ||
|
||
namespace DoctrineMigrations; | ||
|
||
use Doctrine\DBAL\Schema\Schema; | ||
use Doctrine\Migrations\AbstractMigration; | ||
|
||
final class Version20240830130542 extends AbstractMigration | ||
{ | ||
public function getDescription(): string | ||
{ | ||
return 'Update format_date arguments (twig 3.12)'; | ||
} | ||
|
||
public function up(Schema $schema): void | ||
{ | ||
$this->addSql(<<<'SQL' | ||
UPDATE certificate_type | ||
SET content_header_left = replace( | ||
content_header_left, | ||
'format_date(\'none\',', 'format_date(pattern:' | ||
), | ||
content_header_right = replace( | ||
content_header_right, | ||
'format_date(\'none\',', 'format_date(pattern:' | ||
), | ||
content_body_right = replace( | ||
content_body_right, | ||
'format_date(\'none\',', 'format_date(pattern:' | ||
), | ||
content_footer = replace( | ||
content_footer, | ||
'format_date(\'none\',', 'format_date(pattern:' | ||
) | ||
SQL); | ||
} | ||
|
||
public function down(Schema $schema): void {} | ||
} |
12 changes: 5 additions & 7 deletions
12
shared/homeless/templates/admin/fields/document_type_type_list.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 |
---|---|---|
@@ -1,11 +1,9 @@ | ||
{% extends '@SonataAdmin/CRUD/base_list_field.html.twig' %} | ||
|
||
{% block field %} | ||
{% apply spaceless %} | ||
{% if value == constant('App\\Entity\\Document::REGISTRATION_YES') %} | ||
<span class="label label-success">{%- trans from 'SonataAdminBundle' %}label_type_yes{% endtrans -%}</span> | ||
{% else %} | ||
<span class="label label-danger">{%- trans from 'SonataAdminBundle' %}label_type_no{% endtrans -%}</span> | ||
{% endif %} | ||
{% endapply %} | ||
{%- if value == constant('App\\Entity\\Document::REGISTRATION_YES') -%} | ||
<span class="label label-success">{%- trans from 'SonataAdminBundle' %}label_type_yes{% endtrans -%}</span> | ||
{%- else -%} | ||
<span class="label label-danger">{%- trans from 'SonataAdminBundle' %}label_type_no{% endtrans -%}</span> | ||
{%- endif -%} | ||
{% 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
4 changes: 1 addition & 3 deletions
4
shared/homeless/templates/bundles/SonataUserBundle/Form/form_admin_fields.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 |
---|---|---|
@@ -1,9 +1,7 @@ | ||
{% extends '@!SonataUser/Form/form_admin_fields.html.twig' %} | ||
|
||
{% block sonata_roles_matrix_widget %} | ||
{% apply spaceless %} | ||
<ul class="list-unstyled"> | ||
{{ renderRolesList(form)|raw }} | ||
{{- renderRolesList(form)|raw -}} | ||
</ul> | ||
{% endapply %} | ||
{% endblock sonata_roles_matrix_widget %} |
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
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
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
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
Oops, something went wrong.