Commit 2e352890 authored by Chrystel Moreau's avatar Chrystel Moreau
Browse files

dashboard participant + menu -> done

parent 806d2957
......@@ -45,4 +45,21 @@ $container[App\Action\ConfirmInscriptionAction::class] = function ($c) {
$container[App\Action\ConnexionAction::class] = function ($c) {
return new App\Action\ConnexionAction($c->get('view'), $c->get('logger'), $c->get('em'));
};
\ No newline at end of file
};
// =============================================================
// Dashboard Participant
// =============================================================
$container[App\Action\DashboardAction::class] = function ($c) {
return new App\Action\DashboardAction($c->get('view'), $c->get('logger'));
};
$container[App\Action\DashboardInscriptionAction::class] = function ($c) {
return new App\Action\DashboardInscriptionAction($c->get('view'), $c->get('logger'));
};
$container[App\Action\DashboardParcoursAction::class] = function ($c) {
return new App\Action\DashboardParcoursAction($c->get('view'), $c->get('logger'));
};
......@@ -31,3 +31,17 @@ $app->get('/new-passwd', App\Action\NewPasswdAction::class)
$app->map(['GET', 'POST'], '/connexion', App\Action\ConnexionAction::class)
->setName('connexion');
// =============================================================
// Dashboard Participant
// =============================================================
$app->get('/dashboard-home', App\Action\DashboardAction::class)
->setName('dashboard_home');
$app->get('/dashboard-inscription', App\Action\DashboardInscriptionAction::class)
->setName('dashboard_inscription');
$app->get('/dashboard-parcours', App\Action\DashboardParcoursAction::class)
->setName('dashboard_parcours');
\ No newline at end of file
......@@ -18,7 +18,7 @@ final class ConnexionAction
{
$this->view = $view;
$this->logger = $logger;
$this->em = $em;
$this->em = $em;
}
public function __invoke(Request $request, Response $response, $args)
......
......@@ -21,7 +21,7 @@ final class DashboardAction
{
$this->logger->info("dashboard page action dispatched");
$this->view->render($response, 'dashboard.twig', [
$this->view->render($response, 'dashboard_home.twig', [
'page' => 'dashboard'
]);
return $response;
......
<?php
namespace App\Action;
use Slim\Views\Twig;
use Psr\Log\LoggerInterface;
use Psr\Http\Message\ServerRequestInterface as Request;
use Psr\Http\Message\ResponseInterface as Response;
final class DashboardInscriptionAction
{
private $view;
private $logger;
public function __construct(Twig $view, LoggerInterface $logger)
{
$this->view = $view;
$this->logger = $logger;
}
public function __invoke(Request $request, Response $response, $args)
{
$this->logger->info("dashboard-inscription page action dispatched");
$this->view->render($response, 'dashboard_inscription.twig', [
'page' => 'dashboard-inscription'
]);
return $response;
}
}
<?php
namespace App\Action;
use Slim\Views\Twig;
use Psr\Log\LoggerInterface;
use Psr\Http\Message\ServerRequestInterface as Request;
use Psr\Http\Message\ResponseInterface as Response;
final class DashboardParcoursAction
{
private $view;
private $logger;
public function __construct(Twig $view, LoggerInterface $logger)
{
$this->view = $view;
$this->logger = $logger;
}
public function __invoke(Request $request, Response $response, $args)
{
$this->logger->info("dashboard-parcours page action dispatched");
$this->view->render($response, 'dashboard_parcours.twig', [
'page' => 'dashboard-parcours'
]);
return $response;
}
}
......@@ -325,7 +325,7 @@ class Participant
$this->roleSI = $roleSI;
}
public function getOrganisme($organisme)
public function getOrganisme()
{
return $this->organisme;
}
......
......@@ -7,16 +7,13 @@
<h3 class="navbar-dashboard-item-title">Dashboard Menu</h3>
<ul class="navbar-dashboard-item-list">
<li class="navbar-dashboard-item active">
<a><i class="fa fa-home"></i> Home</a>
<a href="dashboard-home"><i class="fa fa-home"></i> Home</a>
</li>
<li class="navbar-dashboard-item">
<a><i class="fa fa-calendar"></i> Programme</a>
<a href="dashboard-inscription"><i class="fa fa-address-card-o"></i> S'Inscrire</a>
</li>
<li class="navbar-dashboard-item">
<a><i class="fa fa-address-card-o"></i> S'Inscrire</a>
</li>
<li class="navbar-dashboard-item">
<a><i class="fa fa-cogs"></i> Parcours</a>
<a href="dashboard-parcours"><i class="fa fa-cogs"></i> Parcours</a>
</li>
</ul>
</nav>
......
......@@ -2,20 +2,34 @@
{% block content_dashboard %}
<div class="content-dashboard">
<div id="home">
<h2 class="text-center">Dashboard</h2>
<hr>
<p>Bienvenue dans votre espace participant</p>
<p>- nb places restants / Azur-Colloque</p>
<p>- génerer son badge</p>
<p>Role : {{ participant.getRole() }}</p>
<p>Place prépayée : {{ participant.getPassPrepaye() }}</p>
<div class="title-main">
<div class="title-main-content">Dashboard Home</div>
</div>
<div>
{% if participant.getPassPrepaye() %}
<p>Pas de paiement</p>
<h4><i class="fa fa-check-square-o"></i> Votre inscription</h4>
<p>Nous avons acté votre inscription aux JDEV2017.<br>
Vos frais d'inscription sont pris en charge par votre organisme.
</p>
{% else %}
<p>Lien Azur colloque</p>
<h4><i class="fa fa-credit-card"></i> Finaliser votre inscription</h4>
<p>Pour que votre inscription soit prise en compte,
vous devez la finaliser par le paiement des frais d'inscription sur
la plate-forme <a href="https://www.azur-colloque.fr/DR12/" target="_blank">AZUR-COLLOQUE</a>
avant la clôture des inscriptions au 30 mai 2017.<br>
Il est important d'aller au bout du processus,
ceci validant votre inscription.
</p>
{% endif %}
<hr>
<h4><i class="fa fa-info-circle"></i> Les frais d'inscription couvrent les prestations suivantes</h4>
<ul>
<li>la participation aux journées (présentations, ateliers, groupes de travail, posters),</li>
<li>les documents fournis, les goodies,</li>
<li>les pauses-café, les buffets du midi, le concert et le buffet dînatoire du mercredi soir.</li>
</ul>
</div>
</div>
{% endblock %}
\ No newline at end of file
{% extends "base_dashboard.twig" %}
{% block content_dashboard %}
<div class="content-dashboard">
<div class="title-main">
<div class="title-main-content">S'inscrire aux sessions de formation</div>
</div>
<div id="inscription">
<p style="text-align: center"><i class="fa fa-calendar"></i> <i>ouverture des inscriptions aux ateliers
à partir du 30 avril 2017</i>
</p>
</div>
</div>
{% endblock %}
\ No newline at end of file
{% extends "base_dashboard.twig" %}
{% block content_dashboard %}
<div class="content-dashboard">
<div class="title-main">
<div class="title-main-content">Votre parcours</div>
</div>
<div id="inscription">
<p style="text-align: center"><i class="fa fa-calendar"></i> <i>suivi de votre parcours
à partir du 30 avril 2017</i>
</p>
</div>
</div>
{% endblock %}
\ No newline at end of file
{% extends "base_dashboard.twig" %}
{% block content_dashboard %}
<div class="content-dashboard">
<div class="title-main">
<div class="title-main-content">JDEV2017 - Programme</div>
</div>
<div id="pgm">
<h2 class="text-center">Dashboard - Programme</h2>
<hr>
<p>Bienvenue dans votre espace participant</p>
<p>- nb places restants / Azur-Colloque</p>
<p>- génerer son badge</p>
<p>Role : {{ participant.getRole() }}</p>
<p>Place prépayée : {{ participant.getPassPrepaye() }}</p>
{% if participant.getPassPrepaye() %}
<p>Pas de paiement</p>
{% else %}
<p>Lien Azur colloque</p>
{% endif %}
</div>
</div>
{% endblock %}
\ No newline at end of file
......@@ -42,6 +42,29 @@
background: rgba(207, 216, 220, 0.5);
}
.title-main {
text-align: center;
border-bottom: 1px solid #a1a1a1;
height: 7px;
position: relative;
display: flex;
align-items: center;
justify-content: center;
margin: 40px 40px 60px;
z-index: 1;
}
.title-main-content {
background-color: #d8dbe2;
position: relative;
padding-right: 30px;
padding-left: 30px;
letter-spacing: 3px;
font-size: 25px;
font-weight: 600;
color: #59a3e2;
}
.content-dashboard {
margin-left: 180px;
}
\ No newline at end of file
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment