login redirects to dashboard
This commit is contained in:
parent
e88127474e
commit
fe8b0aa111
|
@ -8,12 +8,17 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="bg-img"></div>
|
{% if app.user is not defined %}
|
||||||
|
<div class="bg-img"></div>
|
||||||
|
{% else %}
|
||||||
|
<div class="bg-img-logged-in"></div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% block navigation %}
|
{% block navigation %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
<div id="bodyland">
|
<div id="bodyland">
|
||||||
{% block body %}
|
{% block body %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
{% block javascripts %}
|
{% block javascripts %}
|
||||||
<script src="{{ asset('build/app.js') }}"></script>
|
<script src="{{ asset('build/app.js') }}"></script>
|
||||||
|
|
|
@ -0,0 +1,40 @@
|
||||||
|
<div class="product-values">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-4 text-center">
|
||||||
|
<i class="fa fa-check-circle fa-3x"></i>
|
||||||
|
<h2 class="text-center">Gratuit</h2>
|
||||||
|
<p>Gérez votre comptabilité de stand en ligne sans dépenser un rond. Plus besoin de transporter un
|
||||||
|
inventaire et des feuilles de calcul faites à l'arrache.</p>
|
||||||
|
</div>
|
||||||
|
<div class="col-xs-4 text-center">
|
||||||
|
<i class="fa fa-random fa-3x"></i>
|
||||||
|
<h2>Flexible</h2>
|
||||||
|
<p>Modifiez vos produits à la volée, soyez plusieurs à gérer la caisse si vous le souhaitez, changez de
|
||||||
|
responsable en cours de journée. </p>
|
||||||
|
</div>
|
||||||
|
<div class="col-xs-4 text-center">
|
||||||
|
<i class="fa fa-truck fa-3x"></i>
|
||||||
|
<h2>Portable</h2>
|
||||||
|
<p>Fait pour être utilisé sur les marchés et les salons. Votre gestion des stocks n'en sera que
|
||||||
|
simplifiée.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-4 text-center">
|
||||||
|
<i class="fa fa-rotate-left fa-3x"></i>
|
||||||
|
|
||||||
|
<h2>Open Source</h2>
|
||||||
|
<p>Auto hébergeable et modifiable à volonté. Sources disponible sur
|
||||||
|
<a href="https://gitlab.com/tykayn1/fanzine-log">gitlab.</a>
|
||||||
|
Développé par
|
||||||
|
<a href="https://www.cipherbliss.com">CipherBliss</a>
|
||||||
|
.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="col-xs-4 text-center">
|
||||||
|
<i class="fa fa-pie-chart fa-3x"></i>
|
||||||
|
<h2>Statistiques</h2>
|
||||||
|
<p>Données statistiques et brutes exportables librement.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
|
@ -1,11 +1,19 @@
|
||||||
<div class="header-block">
|
<div class="header-block">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-6">
|
|
||||||
{% include 'default/login-choices.html.twig' %}
|
{% if usersCount is defined %}
|
||||||
</div>
|
<div class="col-xs-9">
|
||||||
<div class="col-xs-6">
|
{% include 'default/login-choices.html.twig' %}
|
||||||
<i class="fa fa-users"></i> {{ usersCount *389 }} utilisateurs
|
</div>
|
||||||
</div>
|
<div class="col-xs-3">
|
||||||
|
<i class="fa fa-users"></i> {{ usersCount *389 }} utilisateurs
|
||||||
|
</div>
|
||||||
|
{% else %}
|
||||||
|
<div class="col-xs-12">
|
||||||
|
{% include 'default/login-choices.html.twig' %}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
|
|
|
@ -7,8 +7,6 @@
|
||||||
|
|
||||||
<div id="container" class="container">
|
<div id="container" class="container">
|
||||||
<header>
|
<header>
|
||||||
{% block loginchoices %}
|
|
||||||
{% endblock %}
|
|
||||||
{% include 'default/header.html.twig' %}
|
{% include 'default/header.html.twig' %}
|
||||||
</header>
|
</header>
|
||||||
<main>
|
<main>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<div class="login-choices">
|
<div class="login-choices">
|
||||||
{% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
|
{% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-6">
|
<div class="col-xs-10">
|
||||||
<div id="menu-dashboard">
|
<div id="menu-dashboard">
|
||||||
<ul class="nav nav-pills">
|
<ul class="nav nav-pills">
|
||||||
<li>
|
<li>
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-6 text-right">
|
<div class="col-xs-2 text-right">
|
||||||
Bonjour
|
Bonjour
|
||||||
{#<a href="href={{ path('fos_user_profile_edit') }}">#}
|
{#<a href="href={{ path('fos_user_profile_edit') }}">#}
|
||||||
{##}
|
{##}
|
||||||
|
|
|
@ -11,46 +11,8 @@
|
||||||
<a class="btn btn-primary" href="{{ path('dashboard') }}" class="btn btn-primary">Essayez dès maintenant</a>
|
<a class="btn btn-primary" href="{{ path('dashboard') }}" class="btn btn-primary">Essayez dès maintenant</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="product-values">
|
{% include 'default/description-app.html.twig' %}
|
||||||
<div class="row">
|
|
||||||
<div class="col-xs-4 text-center">
|
|
||||||
<i class="fa fa-check-circle fa-3x"></i>
|
|
||||||
<h2 class="text-center">Gratuit</h2>
|
|
||||||
<p>Gérez votre comptabilité de stand en ligne sans dépenser un rond. Plus besoin de transporter un
|
|
||||||
inventaire et des feuilles de calcul faites à l'arrache.</p>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-4 text-center">
|
|
||||||
<i class="fa fa-random fa-3x"></i>
|
|
||||||
<h2>Flexible</h2>
|
|
||||||
<p>Modifiez vos produits à la volée, soyez plusieurs à gérer la caisse si vous le souhaitez, changez de
|
|
||||||
responsable en cours de journée. </p>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-4 text-center">
|
|
||||||
<i class="fa fa-truck fa-3x"></i>
|
|
||||||
<h2>Portable</h2>
|
|
||||||
<p>Fait pour être utilisé sur les marchés et les salons. Votre gestion des stocks n'en sera que
|
|
||||||
simplifiée.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-xs-4 text-center">
|
|
||||||
<i class="fa fa-rotate-left fa-3x"></i>
|
|
||||||
|
|
||||||
<h2>Open Source</h2>
|
|
||||||
<p>Auto hébergeable et modifiable à volonté. Sources disponible sur
|
|
||||||
<a href="https://gitlab.com/tykayn1/fanzine-log">gitlab.</a>
|
|
||||||
Développé par
|
|
||||||
<a href="https://www.cipherbliss.com">CipherBliss</a>
|
|
||||||
.
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-4 text-center">
|
|
||||||
<i class="fa fa-pie-chart fa-3x"></i>
|
|
||||||
<h2>Statistiques</h2>
|
|
||||||
<p>Données statistiques et brutes exportables librement.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="try">
|
<div class="try">
|
||||||
<a class="btn btn-primary" href="{{ path('dashboard') }}" class="btn btn-success">Essayez dès maintenant</a>
|
<a class="btn btn-primary" href="{{ path('dashboard') }}" class="btn btn-success">Essayez dès maintenant</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -7,13 +7,14 @@
|
||||||
class="btn btn-default"
|
class="btn btn-default"
|
||||||
ng-class="{ 'btn-primary' : activeItemsSold.indexOf(p.id) !==-1}"
|
ng-class="{ 'btn-primary' : activeItemsSold.indexOf(p.id) !==-1}"
|
||||||
ng-click="addProduct( p )">
|
ng-click="addProduct( p )">
|
||||||
|
<img class="product-image" src="{{p.image}}" alt="image" ng-if="p.image.length">
|
||||||
<span class="product-name">
|
<span class="product-name">
|
||||||
{{ p.name }}
|
{{ p.name }}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span class="badge">
|
<span class="badge">
|
||||||
{{ p.price }} €
|
{{ p.price }} €
|
||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
{% endverbatim %}
|
{% endverbatim %}
|
||||||
|
|
|
@ -5,7 +5,8 @@
|
||||||
<div id="container" class="container">
|
<div id="container" class="container">
|
||||||
|
|
||||||
<div id="caisse-now" class="tab-pane fade in active">
|
<div id="caisse-now" class="tab-pane fade in active">
|
||||||
<h2>Caisse</h2>
|
|
||||||
|
{% include 'default/header.html.twig' %}
|
||||||
{% include 'logged/caisse-main.html.twig' %}
|
{% include 'logged/caisse-main.html.twig' %}
|
||||||
</div>
|
</div>
|
||||||
<div id="categories" class="tab-pane fade">
|
<div id="categories" class="tab-pane fade">
|
||||||
|
|
|
@ -18,16 +18,15 @@ security:
|
||||||
form_login:
|
form_login:
|
||||||
provider: fos_userbundle
|
provider: fos_userbundle
|
||||||
csrf_token_generator: security.csrf.token_manager
|
csrf_token_generator: security.csrf.token_manager
|
||||||
|
default_target_path: dashboard
|
||||||
logout: true
|
logout: true
|
||||||
anonymous: true
|
anonymous: true
|
||||||
logout_on_user_change: true
|
logout_on_user_change: true
|
||||||
|
# https://symfony.com/doc/current/security/form_login_setup.html
|
||||||
# activate different ways to authenticate
|
# activate different ways to authenticate
|
||||||
|
|
||||||
# https://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate
|
# https://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate
|
||||||
#http_basic: ~
|
#http_basic: ~
|
||||||
|
|
||||||
# https://symfony.com/doc/current/security/form_login_setup.html
|
|
||||||
#form_login: ~
|
|
||||||
secured_area:
|
secured_area:
|
||||||
anonymous: ~
|
anonymous: ~
|
||||||
logout_on_user_change: true
|
logout_on_user_change: true
|
||||||
|
|
Loading…
Reference in New Issue