Commit 8b990b1e authored by Elie BATAILLE's avatar Elie BATAILLE

Local Ubuntu version

parents
/.web-server-pid
/app/config/parameters.yml
/build/
/phpunit.xml
/var/*
!/var/cache
/var/cache/*
!var/cache/.gitkeep
!/var/logs
/var/logs/*
!var/logs/.gitkeep
!/var/sessions
/var/sessions/*
!var/sessions/.gitkeep
!var/SymfonyRequirements.php
/vendor/
/web/bundles/
/web/uploads/document/*
/web/uploads/signature/*
.cache
CHOM
====
A Symfony project created on November 14, 2018, 1:15 pm.
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>
<?php
use Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache;
class AppCache extends HttpCache
{
}
<?php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = [
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\SecurityBundle(),
new Symfony\Bundle\TwigBundle\TwigBundle(),
new Symfony\Bundle\MonologBundle\MonologBundle(),
new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
new AppBundle\AppBundle(),
new FOS\UserBundle\FOSUserBundle(),
new CHOM\UserBundle\CHOMUserBundle(),
new CHOM\PatientBundle\CHOMPatientBundle(),
new CHOM\ActeBundle\CHOMActeBundle(),
new Knp\Bundle\SnappyBundle\KnpSnappyBundle(),
new CHOM\RDVBundle\CHOMRDVBundle(),
new CHOM\SaveBundle\CHOMSaveBundle(),
new CHOM\MedicalBundle\CHOMMedicalBundle(),
];
if (in_array($this->getEnvironment(), ['dev', 'test'], true)) {
$bundles[] = new Symfony\Bundle\DebugBundle\DebugBundle();
$bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
$bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
if ('dev' === $this->getEnvironment()) {
$bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
$bundles[] = new Symfony\Bundle\WebServerBundle\WebServerBundle();
$bundles[] = new \CoreSphere\ConsoleBundle\CoreSphereConsoleBundle();
}
}
return $bundles;
}
public function getRootDir()
{
return __DIR__;
}
public function getCacheDir()
{
return dirname(__DIR__).'/var/cache/'.$this->getEnvironment();
}
public function getLogDir()
{
return dirname(__DIR__).'/var/logs';
}
public function registerContainerConfiguration(LoaderInterface $loader)
{
$loader->load($this->getRootDir().'/config/config_'.$this->getEnvironment().'.yml');
}
}
{% extends 'FOSUserBundle::layout.html.twig' %}
{% trans_default_domain 'FOSUserBundle' %}
{% block title %}Modification du mot de passe - {{ parent()}}{%endblock%}
{% block fos_user_content %}
{{ form_start(form, { 'action': path('fos_user_change_password'), 'attr': { 'class': 'fos_user_change_password' } }) }}
{{ form_widget(form) }}
{{ form_end(form) }}
{%endblock %}
\ No newline at end of file
{% extends 'FOSUserBundle::layout.html.twig' %}
{% block title %}Profil - {{parent()}} {%endblock%}
{% block stylesheets %}
<link rel="stylesheet" href="/CHOM/assets/css/user_show.css" />
{% endblock %}
{% block fos_user_content %}
<div class="container-fluid">
<h1>Mon profil</h1>
<table class="table table-bordered col-lg-12" >
<tr>
<td>Titre </td>
<td>{{user.titre}}</td>
</tr>
<tr>
<td>Prénom(s)</td>
<td>{{user.prenom}}</td>
</tr>
<tr>
<td>Nom</td>
<td>{{user.nom}}</td>
</tr>
<tr>
<td>Utilisateur</td>
<td>{{user.username}}</td>
</tr>
<tr>
<td>Adresse e-mail</td>
<td>{{ user.email }}</td>
</tr>
{% if user.signature is not null %}
<tr>
<td>Signature</td>
<td><img src="{{ user.signature.url }}" alt="{{ user.signature.alt }}" class="signature"/></td>
</tr>
{% endif %}
</table>
<div class="change-password">
<a class='btn btn-warning' href="{{path('fos_user_change_password')}}">Changer de mot de passe</a>
</div>
<div class="panel panel-info col-lg-8">
<div class="panel-heading" >
<h3 class="panel-title">Rôles de l'utilisateur</h3>
</div>
<div class='list-group' >
{% for role in user.roles %}
<div class="list-group-item">
{{ role.description }}
</div>
{% endfor %}
</div>
</div>
</div>
{% endblock %}
\ No newline at end of file
{% extends "@FOSUser/layout.html.twig" %}
{% trans_default_domain 'FOSUserBundle' %}
{% block title %}Confirmation - {{ parent() }}{% endblock %}
{% block fos_user_content %}
<p>{{ 'Utilisateur enregistré'|trans({'%username%': user.username}) }}</p>
{% if targetUrl %}
<p><a href="{{ targetUrl }}">{{ 'registration.back'|trans }}</a></p>
{% endif %}
<a href="{{path('chom_user_fiche_personnel', {id: user.id})}}" class="btn-default btn">Consulter la fiche</a>
{% endblock fos_user_content %}
{% extends 'FOSUserBundle::layout.html.twig' %}
{% block title %}Connexion - {{ parent() }} {% endblock %}
{% block stylesheets %}
<link rel="stylesheet" href="/CHOM/assets/css/login.css" />
{% endblock %}
{% block fos_user_content %}
{% if error %}
<div>{{ error.messageKey|trans(error.messageData, 'security') }}</div>
{% endif %}
<div id="formcontainerlogin">
<form action="{{ path("fos_user_security_check") }}" method="post" class="form-horizontal well col-lg-6">
{% if csrf_token %}
<input type="hidden" name="_csrf_token" value="{{ csrf_token }}" />
{% endif %}
<div class="form-group" >
<label for="username">Nom d'utilisateur </label>
<input type="text" id="username" name="_username" value="{{ last_username }}" class="form-control"required="required" autocomplete="username" />
</div>
<div class="form-group" >
<label for="password">Mot de passe </label>
<input type="password" id="password" name="_password" class="form-control" required="required" autocomplete="current-password" />
</div>
<div class="form-group">
<input type="checkbox" id="remember_me" name="_remember_me" value="on" />
<label for="remember_me">Rester connecté</label>
</div>
<div class="form-group">
<input type="submit" id="_submit" name="_submit" value="Se connecter" class="btn btn-default"/>
</div>
</form>
</div>
{% endblock fos_user_content %}
\ No newline at end of file
{% extends "::layout.html.twig" %}
{% block content %}
{% block fos_user_content %}
{% endblock fos_user_content %}
{% endblock %}
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>CHOM Interface - Erreur</title>
{# <link rel="shortcut icon" type="image/png" href="/CHOM/assets/img/favicon.png" />#}
<link rel="stylesheet" href="/CHOM/assets/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" href="/CHOM/assets/css/layout_css.css" />
</head>
<body>
<div class="container-fluid">
<header class="page-header col-lg-12">
<a href="{{path('chom_accueil')}}" ><img src="/CHOM/assets/img/logochom.png" alt="Logo du CHOM" /></a>
<h1 id="header_left">CHOM Interface </h1>
<div id="header_right">
{% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
<a href="{{path('fos_user_profile_show')}}" class="btn btn-outline-info">
<span class="glyphicon glyphicon-user"></span> {{app.user.username}}
</a>
<a href="{{path('fos_user_security_logout')}}" class="btn btn-danger btn-sm" >
<span class="glyphicon glyphicon-off" ></span>
</a>
{% else %}
<a class="btn btn-outline-success btn-small" href="{{path('fos_user_security_login')}}">
<span class="glyphicon glyphicon-user"></span>
</a>
{% endif %}
</div>
</header>
</div>
<div class="container-fluid">
<h1>Une erreur est survenue</h1>
<h2>Code : {{status_code}}</h2>
<h2>Message : {{status_message}}</h2>
<h2>Veuillez contacter l'administrateur du site</h2>
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>CHOM Interface - Page non trouvée</title>
{# <link rel="shortcut icon" type="image/png" href="/CHOM/assets/img/favicon.png" />#}
<link rel="stylesheet" href="/CHOM/assets/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" href="/CHOM/assets/css/layout_css.css" />
</head>
<body>
<div class="container-fluid">
<header class="page-header col-lg-12">
<a href="{{path('chom_accueil')}}" ><img src="/CHOM/assets/img/logochom.png" alt="Logo du CHOM" /></a>
<h1 id="header_left">CHOM Interface </h1>
<div id="header_right">
{% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
<a href="{{path('fos_user_profile_show')}}" class="btn btn-outline-info">
<span class="glyphicon glyphicon-user"></span> {{app.user.username}}
</a>
<a href="{{path('fos_user_security_logout')}}" class="btn btn-danger btn-sm" >
<span class="glyphicon glyphicon-off" ></span>
</a>
{% else %}
<a class="btn btn-outline-success btn-small" href="{{path('fos_user_security_login')}}">
<span class="glyphicon glyphicon-user"></span>
</a>
{% endif %}
</div>
</header>
</div>
<div class="container-fluid">
<h1>La page recherchée n'a pas été trouvée</h1>
<h2>Si cette erreur venait à se reproduire, veuillez contacter l'administrateur du site</h2>
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>{% block title %}Welcome!{% endblock %}</title>
{% block stylesheets %}{% endblock %}
<link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" />
</head>
<body>
{% block body %}{% endblock %}
{% block javascripts %}{% endblock %}
</body>
</html>
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title> {% block title %} CHOM Interface {% endblock %} </title>
{# <link rel="shortcut icon" type="image/png" href="{{preload('/CHOM/assets/img/favicon.png')}}" />#}
<link rel="stylesheet" href="{{preload('/CHOM/assets/bootstrap/css/bootstrap.min.css', {'as': 'style'})}}" />
<link rel="stylesheet" href="{{preload('/CHOM/assets/css/layout_css.css', {'as': 'style'})}}" />
<link rel="preload" href="/CHOM/assets/bootstrap/fonts/glyphicons-halflings-regular.woff2" as="font"
type="font/woff2" crossorigin="anonymous">
{% block stylesheets %}
{% endblock %}
</head>
<body>
<div class="container-fluid">
<header class="page-header col-lg-12">
<a href="{{path('chom_accueil')}}" ><img src="{{preload('/CHOM/assets/img/logochom.png', {'as': 'image'})}}" alt="Logo du CHOM" /></a>
<h1 id="header_left">CHOM Interface </h1>
<div id="header_right">
{% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
<a href="{{path('fos_user_profile_show')}}" class="btn btn-outline-info">
<span class="glyphicon glyphicon-user"></span> {{app.user.username}}
</a>
<a href="{{path('fos_user_security_logout')}}" class="btn btn-danger btn-sm" >
<span class="glyphicon glyphicon-off" ></span>
</a>
{% else %}
<a class="btn btn-outline-success btn-small" href="{{path('fos_user_security_login')}}">
<span class="glyphicon glyphicon-user"></span>
</a>
{% endif %}
</div>
</header>
</div>
{% if app.request.hasPreviousSession %}
{% for key, messages in app.session.flashBag.all %}
{% for message in messages %}
<div class="alert alert-{{ key }}">
{{ message }}
</div>
{% endfor %}
{% endfor %}
{% endif %}
<div class="container-fluid">
{% block content %}
{% endblock %}
</div>
<footer class="footer">
<div class='container-fluid text-muted'>
©CHOM Interface {{"now"|date('Y')}} &nbsp;&nbsp;&nbsp;<a href="http://www.chomdakar.org" class="btn btn-link">
Centre Hospitalier de l'Ordre de Malte de Dakar
</a>
<a href="{{path('chom_save_help')}}" class="btn btn-link">
Vidéos
</a>
<button onclick="alert('E-mail : elie.bataille@polytechnique.edu. Téléphone : +33 6 70 58 80 86 (Whatsapp)');"
class="btn btn-link">
Contacter l'administrateur
</button>
</div>
</footer>
<script src="{{preload('/CHOM/assets/js/jquery.min.js', {'as': 'script'})}}" ></script>
<script src="{{preload('/CHOM/assets/bootstrap/js/bootstrap.min.js', {'as': 'script'})}}"></script>
{%block scripts %}
{% endblock %}
</body>
</html>
This diff is collapsed.
imports:
- { resource: parameters.yml }
- { resource: security.yml }
- { resource: services.yml }
# Put parameters here that don't need to change on each machine where the app is deployed
# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
parameters:
locale: fr
framework:
#esi: ~
#translator: { fallbacks: ['%locale%'] }
secret: '%secret%'