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