[dsfr] Squelette pour tests

This commit is contained in:
2023-11-05 10:12:59 +01:00
parent 74505da148
commit 76889148a1
36 changed files with 5395 additions and 1939 deletions

View File

@@ -5,9 +5,11 @@
<title>{% block title %}Welcome!{% endblock %}</title>
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text></svg>">
{% block stylesheets %}
{{ encore_entry_link_tags('app') }}
{% endblock %}
{% block javascripts %}
{{ encore_entry_script_tags('app') }}
{% endblock %}
</head>
<body>

View File

@@ -0,0 +1,19 @@
{% extends 'base.html.twig' %}
{% block title %}Hello DSFRController!{% endblock %}
{% block body %}
<style>
.example-wrapper { margin: 1em auto; max-width: 800px; width: 95%; font: 18px/1.5 sans-serif; }
.example-wrapper code { background: #F5F5F5; padding: 2px 6px; }
</style>
<div class="example-wrapper">
{# {% form_theme form ['@RadicalDingosDsfrFormTheme/Form/dsfr_form_theme.html.twig'] only %}#}
{{ form_start(form, {'attr': {'novalidate': 'novalidate'}}) }}
{{ form_widget(form) }}
{{ form_end(form) }}
</div>
{% endblock %}