Parcourir la source

Layout : couleurs section

packProduct
Guillaume il y a 3 ans
Parent
révision
8daad5e3e2
2 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. +2
    -2
      Form/Section/SwitchSectionFormType.php
  2. +1
    -1
      Resources/views/adminlte/layout.html.twig

+ 2
- 2
Form/Section/SwitchSectionFormType.php Voir le fichier

@@ -49,8 +49,8 @@ class SwitchSectionFormType extends AbstractType
$styleButton = '';
$classButton = 'btn-section';
if ($section == $currentSection) {
$classButton .= ' btn-section-current';
$styleButton = 'color: white; background-color: ' . $currentSection->getColor() . ';';
$classButton .= ' btn-section-current section-'.$currentSection->getDevAlias();
//$styleButton = 'color: white; background-color: ' . $currentSection->getColor() . ';';
}

$builder->add(

+ 1
- 1
Resources/views/adminlte/layout.html.twig Voir le fichier

@@ -6,7 +6,7 @@
{% set section_current = section_current() %}
{% set is_display_switch_section = display_switch_section is defined and display_switch_section %}

<nav class="carac navbar navbar-expand navbar-light main-header{% if is_display_switch_section %} display-section-switch{% endif %}" {% if is_display_switch_section %}style="border-color: {{ section_current.color }};"{% endif %}>
<nav class="carac navbar navbar-expand navbar-light main-header{% if is_display_switch_section %} display-section-switch section-{{ section_current.devAlias }}{% endif %}">

{% if is_display_switch_section %}
<ul class="navbar-nav left">

Chargement…
Annuler
Enregistrer