-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
15fa984
commit 2cecce2
Showing
18 changed files
with
64 additions
and
18 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
Binary file added
BIN
+17 KB
src/Sylius/Bundle/AdminBundle/Resources/assets/images/sylius-logo-dark-text.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
|
@@ -11,4 +11,8 @@ | |
&.navbar-nav { | ||
gap: 0.5rem; | ||
} | ||
|
||
&.navbar-brand-image { | ||
height: 4rem; | ||
} | ||
} |
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
1 change: 1 addition & 0 deletions
1
...s/Bundle/AdminBundle/Resources/views/Security/Login/Content/Form/_passwordField.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 @@ | ||
{{ form_row(form._password) }} |
1 change: 1 addition & 0 deletions
1
...Bundle/AdminBundle/Resources/views/Security/Login/Content/Form/_rememberMeField.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 @@ | ||
{{ form_row(form._remember_me) }} |
3 changes: 3 additions & 0 deletions
3
...us/Bundle/AdminBundle/Resources/views/Security/Login/Content/Form/_submitButton.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,3 @@ | ||
{% import '@SyliusAdmin/Shared/Helper/button.html.twig' as _button %} | ||
|
||
{{ _button.primary({ text: 'sylius.ui.login'|trans, type: 'submit', class: 'btn btn-primary w-100' }) }} |
1 change: 1 addition & 0 deletions
1
...s/Bundle/AdminBundle/Resources/views/Security/Login/Content/Form/_usernameField.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 @@ | ||
{{ form_row(form._username, {'value': last_username|default('')}) }} |
7 changes: 7 additions & 0 deletions
7
src/Sylius/Bundle/AdminBundle/Resources/views/Security/Login/Content/_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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{% form_theme form 'bootstrap_5_layout.html.twig' %} | ||
{% set event_name = _context.event_prefix ~ '.form' %} | ||
|
||
{{ form_start(form, {'action': path('sylius_admin_login_check'), 'attr': {'class': 'ui large loadable form', 'novalidate': 'novalidate'}}) }} | ||
{{ sylius_template_event(event_name, _context|merge({ event_prefix: event_name })) }} | ||
<input type="hidden" name="_csrf_admin_security_token" value="{{ csrf_token('admin_authenticate') }}"> | ||
{{ form_end(form, {'render_rest': false}) }} |
1 change: 1 addition & 0 deletions
1
src/Sylius/Bundle/AdminBundle/Resources/views/Security/Login/Content/_header.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 @@ | ||
<h2 class="h2 text-center mb-4">{{ 'sylius.ui.login_to_your_account'|trans }}</h2> |
7 changes: 7 additions & 0 deletions
7
src/Sylius/Bundle/AdminBundle/Resources/views/Security/Login/_content.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,7 @@ | ||
{% set event_name = _context.event_prefix ~ '.content' %} | ||
|
||
<div class="card card-md"> | ||
<div class="card-body"> | ||
{{ sylius_template_event(event_name, _context|merge({ event_prefix: event_name })) }} | ||
</div> | ||
</div> |
3 changes: 3 additions & 0 deletions
3
src/Sylius/Bundle/AdminBundle/Resources/views/Security/Login/_logo.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,3 @@ | ||
<div class="text-center mb-4"> | ||
<img src="{{ asset('build/admin/images/sylius-logo-dark-text.png', 'admin') }}" alt="Sylius" class="sylius navbar-brand-image"> | ||
</div> |
6 changes: 0 additions & 6 deletions
6
src/Sylius/Bundle/AdminBundle/Resources/views/Security/_content.html.twig
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
src/Sylius/Bundle/AdminBundle/Resources/views/Security/_logo.html.twig
This file was deleted.
Oops, something went wrong.
20 changes: 10 additions & 10 deletions
20
src/Sylius/Bundle/AdminBundle/Resources/views/Security/login.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,15 +1,15 @@ | ||
{% extends '@SyliusUi/Layout/centered.html.twig' %} | ||
{% extends '@SyliusAdmin/Shared/Layout/base.html.twig' %} | ||
|
||
{% block title %}Sylius | {{ 'sylius.ui.administration_panel_login'|trans }}{% endblock %} | ||
{% set event_name = 'sylius.admin.security.login' %} | ||
|
||
{% block stylesheets %} | ||
{{ sylius_template_event('sylius.admin.layout.stylesheets') }} | ||
{% endblock %} | ||
{% block title %}Sylius | {{ 'sylius.ui.administration_panel_login'|trans }}{% endblock %} | ||
|
||
{% block content %} | ||
{{ sylius_template_event('sylius.admin.login.content', _context) }} | ||
{% endblock %} | ||
{% block body_class %}d-flex flex-column{% endblock %} | ||
|
||
{% block javascripts %} | ||
{{ sylius_template_event('sylius.admin.layout.javascripts') }} | ||
{% block body %} | ||
<div class="page page-center"> | ||
<div class="container container-tight py-4"> | ||
{{ sylius_template_event(event_name, { event_prefix: event_name }|merge(_context)) }} | ||
</div> | ||
</div> | ||
{% 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
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