Pārlūkot izejas kodu

Layout : couleurs section

packProduct
Guillaume pirms 3 gadiem
vecāks
revīzija
8daad5e3e2
2 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. +2
    -2
      Form/Section/SwitchSectionFormType.php
  2. +1
    -1
      Resources/views/adminlte/layout.html.twig

+ 2
- 2
Form/Section/SwitchSectionFormType.php Parādīt failu

@@ -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 Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt