Skip to content

Commit 8e087cc

Browse files
committed
Added before and after form blocks
1 parent c6eea23 commit 8e087cc

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

src/Resources/views/resetting/request.html.twig

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
</div>
88
{% endif %}
99

10-
<div class="title">Reset your password</div>
11-
12-
<p>Enter the email address you used when you joined and we'll send you instructions to reset your password.</p>
10+
{% block before_form %}
11+
<div class="title">Reset your password</div>
12+
<p>Enter the email address you used when you joined and we'll send you instructions to reset your password.</p>
13+
{% endblock %}
1314

1415
<form action="{{ path('resetting_send_email') }}" autocomplete="off" method="post">
1516
<div class="form-group has-icon has-floating-label">
@@ -20,4 +21,6 @@
2021

2122
<button type="submit" class="btn btn-primary btn-block btn-large mt-4">Send Reset Instructions</button>
2223
</form>
24+
25+
{% block after_form %}{% endblock %}
2326
{% endblock %}

src/Resources/views/resetting/reset.html.twig

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
</div>
88
{% endif %}
99

10-
<div class="title">Reset your password</div>
11-
12-
<p>Reset your password to continue.</p>
10+
{% block before_form %}
11+
<div class="title">Reset your password</div>
12+
<p>Reset your password to continue.</p>
13+
{% endblock %}
1314

1415
{{ form_start(form, {
1516
action: path('resetting_reset', {token: token}),
@@ -32,4 +33,6 @@
3233
{{ form_rest(form) }}
3334
</div>
3435
{{ form_end(form) }}
36+
37+
{% block after_form %}{% endblock %}
3538
{% endblock %}

src/Resources/views/security/login.html.twig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{% extends '@SymfonyAdmin/layout/auth/layout.html.twig' %}
22

33
{% block body %}
4-
<div class="title">Sign In</div>
5-
6-
{% block before_form %}{% endblock %}
4+
{% block before_form %}
5+
<div class="title">Sign In</div>
6+
{% endblock %}
77

88
<form action="{{ path('security_login') }}" autocomplete="off" method="post">
99
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}" />

0 commit comments

Comments
 (0)