-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fixed simple.html.twig Twig template with rz-accent-color for lo…
…gin and custom-form
- Loading branch information
1 parent
06548e2
commit 2fa84b6
Showing
14 changed files
with
93 additions
and
226 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
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
56 changes: 32 additions & 24 deletions
56
lib/RoadizCoreBundle/templates/customForm/base_custom_form.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,26 +1,34 @@ | ||
{% set formattedLocale = request.locale|replace({'_': '-'})|lower %} | ||
{% set formattedLocale = app.request.locale|replace({'_': '-'})|lower %} | ||
<!DOCTYPE html> | ||
<html class="no-js" lang="{{ formattedLocale }}"{% if request.locale is rtl %} dir="rtl"{% endif %}> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<title>{% block title %}{{ head.siteTitle }}{% endblock %}</title> | ||
<meta name="description" content="" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
|
||
{% include '@RoadizRozier/partials/css-inject.html.twig' %} | ||
|
||
<script src="{{ asset('vendor/modernizr.custom.50380.js', 'Rozier') }}"></script> | ||
</head> | ||
<body id="custom-form-front"> | ||
|
||
<!-- Add your site or application content here --> | ||
<section id="main-content"> | ||
{% block content %} | ||
<h1>{% trans %}Welcome{% endtrans %}</h1> | ||
{% endblock %} | ||
</section> | ||
|
||
<!-- ##debug_panel## --> | ||
</body> | ||
<html class="no-js" lang="{{ formattedLocale }}"{% if app.request.locale is rtl %} dir="rtl"{% endif %}> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<title>{% block title %}{{ head.siteTitle }}{% endblock %}</title> | ||
<meta name="description" content="{% block description %}{% trans %}back_office{% endtrans %}{% endblock %}"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"> | ||
{% include '@RoadizRozier/admin/meta-icon.html.twig' %} | ||
{# CSS scripts inclusions / Using webpack #} | ||
{% include '@RoadizRozier/partials/css-inject.html.twig' %} | ||
{% if head.mainColor %} | ||
<style> | ||
:root { | ||
--rz-accent-color: {{ head.mainColor|raw }}; | ||
--rz-accent-color-lighter: color-mix(in srgb, var(--rz-accent-color) var(--color-light-mix), white); | ||
--rz-accent-color-darker: color-mix(in srgb, var(--rz-accent-color) var(--color-darker-mix), black); | ||
--rz-accent-color-darkest: color-mix(in srgb, var(--rz-accent-color) var(--color-darkest-mix), black); | ||
} | ||
</style> | ||
{% endif %} | ||
<script src="{{ asset('vendor/modernizr.custom.50380.js', 'Rozier') }}"></script> | ||
</head> | ||
<body id="custom-form-front"> | ||
{% include '@RoadizRozier/includes/messages.html.twig' %} | ||
<section id="main-content"> | ||
{% block content %} | ||
<h1>{% trans %}Welcome{% endtrans %}</h1> | ||
{% endblock %} | ||
</section> | ||
{% block customScripts %}{% endblock %} | ||
</body> | ||
</html> |
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
2 changes: 1 addition & 1 deletion
2
lib/RoadizCoreBundle/templates/customForm/customFormSent.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
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.