fix tabs for nav

This commit is contained in:
Kayn Ty 2018-05-09 10:27:59 +02:00
parent 2187d9ab7a
commit a9755e1a03
2 changed files with 14 additions and 10 deletions

View File

@ -30,7 +30,8 @@
btn-success
{% else %}
btn-default
{% endif %}" href="{{ path('productcategory_index') }}">
{% endif %} "
href="{{ path('productcategory_index') }}">
<i class="fa fa-file-archive-o"></i>
Catégories
@ -44,7 +45,9 @@
btn-success
{% else %}
btn-default
{% endif %}" href="{{ path('product_index') }}" data-toggle="tab">
{% endif %} "
href="{{ path('product_index') }}"
>
<i class="fa fa-gears"></i>
Produits
<span class="badge">
@ -57,8 +60,9 @@
btn-success
{% else %}
btn-default
{% endif %}" href='{{ path('festival_index') }}'
data-toggle="tab">
{% endif %}
" href='{{ path('festival_index') }}'
>
<i class="fa fa-th-large"></i>
Festivals
<span class="badge">
@ -72,7 +76,7 @@
{% else %}
btn-default
{% endif %}" href="{{ path('history') }}"
data-toggle="tab">
>
<i class="fa fa-clock-o"></i>
Historique
</a>

View File

@ -45,7 +45,7 @@ class DefaultController extends Controller {
$m = $this->getDoctrine()->getManager();
$currentUser = $this->getUser();
// TODO on first login set default values
$lastFestival = $currentUser->getActiveFestival();
if ( ! $lastFestival ) {
$lastFestival = $m->getRepository( 'AppBundle:Festival' )