-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
theme and send forgot password email
- Loading branch information
Showing
8 changed files
with
88 additions
and
38 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
32 changes: 32 additions & 0 deletions
32
src/FreeBet/Bundle/UserBundle/Resources/views/Form/FOSFormTheme.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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{% block form_widget_compound %} | ||
{% spaceless %} | ||
<div class="body bg-gray"> | ||
{% if form.parent is empty %} | ||
{{ form_errors(form) }} | ||
{% endif %} | ||
{{ block('form_rows') }} | ||
{{ form_rest(form) }} | ||
</div> | ||
{% endspaceless %} | ||
{% endblock form_widget_compound %} | ||
|
||
{% block form_row %} | ||
{% spaceless %} | ||
<div class="form-group"> | ||
{{ form_errors(form) }} | ||
{{ form_widget(form, { 'attr': {'class': 'form-control', 'placeholder': form.vars.label|trans({},'security') } }) }} | ||
</div> | ||
{% endspaceless %} | ||
{% endblock %} | ||
|
||
{% block form_errors %} | ||
{% spaceless %} | ||
{% if errors|length > 0 %} | ||
<div class="alert flat-alert alert-danger"> | ||
{% for error in errors %} | ||
<p>{{ error.message }}</p> | ||
{% endfor %} | ||
</div> | ||
{% endif %} | ||
{% endspaceless %} | ||
{% endblock form_errors %} |
9 changes: 9 additions & 0 deletions
9
src/FreeBet/Bundle/UserBundle/Resources/views/Registration/confirmed.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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{% extends "FOSUserBundle::layout.html.twig" %} | ||
|
||
{% block fos_user_content %} | ||
<p>{{ 'registration.confirmed'|trans({'%username%': user.username}, 'FOSUserBundle') }}</p> | ||
|
||
<a href="{{ path('event_next_list') }}" class="btn btn-primary btn-block"> | ||
{{ "registration.start_betting"|trans({},'security') }} | ||
</a> | ||
{% endblock fos_user_content %} |
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
26 changes: 26 additions & 0 deletions
26
src/FreeBet/Bundle/UserBundle/Resources/views/Resetting/reset.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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{% extends "FreeBetUserBundle::layout.html.twig" %} | ||
|
||
{% block htmlclass %} class="bg-black"{% endblock %} | ||
{% block bodyclass %}bg-black{% endblock %} | ||
|
||
{% block title %}{{ 'reset.title'|trans({}, 'security') }}{% endblock %} | ||
|
||
{% form_theme form "FreeBetUserBundle:Form:FOSFormTheme.html.twig" %} | ||
|
||
{% block body %} | ||
<div class="form-box" id="login-box"> | ||
<div class="header">{{ 'reset.title'|trans({}, 'security') }}</div> | ||
<form action="{{ path('fos_user_resetting_reset', {'token': token}) }}" method="POST"> | ||
<div class="body bg-gray"> | ||
{{ form_widget(form) }} | ||
</div> | ||
<div class="footer"> | ||
<button type="submit" value="{{ 'reset.request.submit'|trans({}, 'security') }}" class="btn bg-olive btn-block"> | ||
{{ 'reset.request.submit'|trans({}, 'security') }} | ||
</button> | ||
<a href="{{ path('fos_user_security_login') }}" class="text-center">{{ 'login.back'|trans({}, 'security') }}</a> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
{% endblock %} |