Browse Source

Layout : couleurs section

packProduct
Guillaume 3 years ago
parent
commit
8daad5e3e2
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      Form/Section/SwitchSectionFormType.php
  2. +1
    -1
      Resources/views/adminlte/layout.html.twig

+ 2
- 2
Form/Section/SwitchSectionFormType.php View File

@@ -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 View File

@@ -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">

Loading…
Cancel
Save