Commit b2bd10b8 by Mathieu Poisbeau

#116: ajoute la possibilité de config. le titre de l'application

=> comme paramètre globale
=> utilisé dans les balises <title>
parent 2305cd0f
...@@ -43,4 +43,8 @@ yarn-error.log ...@@ -43,4 +43,8 @@ yarn-error.log
###> ui customization ### ###> ui customization ###
/public/images/logo.png /public/images/logo.png
/public/images/favicon/ /public/images/favicon/
###< payum ### ###< ui customization ###
###>bin ###
/bin/composer
###< bin ###
...@@ -587,6 +587,10 @@ App\Entity\Rubrique: ...@@ -587,6 +587,10 @@ App\Entity\Rubrique:
media: '@media17' media: '@media17'
App\Entity\GlobalParameter: App\Entity\GlobalParameter:
gp15:
name: "APP_TITLE"
value: 'Kohinos'
mandatory: 1
gp11: gp11:
name: "COTISATION_ADHERENT" name: "COTISATION_ADHERENT"
value: '10' value: '10'
......
...@@ -28,6 +28,7 @@ class GlobalParameter ...@@ -28,6 +28,7 @@ class GlobalParameter
const MAP_CENTER = 'MAP_CENTER'; const MAP_CENTER = 'MAP_CENTER';
const MAP_ZOOM = 'MAP_ZOOM'; const MAP_ZOOM = 'MAP_ZOOM';
const USE_PAYZEN = 'USE_PAYZEN'; const USE_PAYZEN = 'USE_PAYZEN';
const APP_TITLE = 'APP_TITLE';
/** /**
* @ORM\Id() * @ORM\Id()
......
...@@ -24,6 +24,12 @@ class GlobalConfigurationFormType extends AbstractType ...@@ -24,6 +24,12 @@ class GlobalConfigurationFormType extends AbstractType
public function buildForm(FormBuilderInterface $builder, array $options) public function buildForm(FormBuilderInterface $builder, array $options)
{ {
$builder $builder
->add('apptitle', GlobalParameterType::class, array(
'label' => "Tittre de l'application :",
'name_param' => GlobalParameter::APP_TITLE,
'_placeholder' => 'Kohinos',
'required' => true,
))
->add('mlcname', GlobalParameterType::class, array( ->add('mlcname', GlobalParameterType::class, array(
'label' => 'Nom de la Monnaie (long) :', 'label' => 'Nom de la Monnaie (long) :',
'name_param' => GlobalParameter::MLC_NAME, 'name_param' => GlobalParameter::MLC_NAME,
......
...@@ -22,7 +22,7 @@ Modified for MLC from Sonata package. ...@@ -22,7 +22,7 @@ Modified for MLC from Sonata package.
<!DOCTYPE html> <!DOCTYPE html>
<html {% block html_attributes %}class="no-js"{% endblock %}> <html {% block html_attributes %}class="no-js"{% endblock %}>
<head> <head>
<title>{{title|default('Kohinos') }}</title> <title>{{ title ?? KOH_APP_TITLE ?? 'Kohinos' }}</title>
<meta name="description" content="{{ description|default('Kohinos : Outil de gestion de monnaie locale complémentaire') }}" /> <meta name="description" content="{{ description|default('Kohinos : Outil de gestion de monnaie locale complémentaire') }}" />
<meta name="keywords" content="{{ keywords|default('Kohinos, mlc, mlcc, monnaie locale, monnaies locales') }}" /> <meta name="keywords" content="{{ keywords|default('Kohinos, mlc, mlcc, monnaie locale, monnaies locales') }}" />
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>{{title|default('Kohinos') }}</title> <title>{{ title ?? KOH_APP_TITLE ?? 'Kohinos' }}</title>
<meta name="description" content="{{ description|default('Kohinos : Outil de gestion de monnaie locale complémentaire') }}" /> <meta name="description" content="{{ description|default('Kohinos : Outil de gestion de monnaie locale complémentaire') }}" />
<meta name="keywords" content="{{ keywords|default('Kohinos, mlc, mlcc, monnaie locale, monnaies locales') }}" /> <meta name="keywords" content="{{ keywords|default('Kohinos, mlc, mlcc, monnaie locale, monnaies locales') }}" />
<meta name="mobile-web-app-capable" content="yes"> <meta name="mobile-web-app-capable" content="yes">
......
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