Explorar el Código

Layout : couleurs section

packProduct
Guillaume hace 3 años
padre
commit
8daad5e3e2
Se han modificado 2 ficheros con 3 adiciones y 3 borrados
  1. +2
    -2
      Form/Section/SwitchSectionFormType.php
  2. +1
    -1
      Resources/views/adminlte/layout.html.twig

+ 2
- 2
Form/Section/SwitchSectionFormType.php Ver fichero

@@ -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 Ver fichero

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

Cargando…
Cancelar
Guardar