-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Config : cleanup de main_color (#679)
* Cleanup ambassador shifttimelog table * Additional color config. move to style_config.html * Seperate header & footer into own template * Extra style to config
- Loading branch information
Showing
12 changed files
with
256 additions
and
251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<footer class="page-footer" style="background-color: {{ main_color }}"> | ||
<div class="footer-copyright"> | ||
<div class="container"> | ||
© {{ 'now'|date('Y') }} Copyright {{ project_name }} | ||
<a class="grey-text text-lighten-4 right" href="{{ project_url }}">{{ project_url_display }}</a> | ||
</div> | ||
</div> | ||
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
{% set frozen = app.user and app.user.beneficiary and app.user.beneficiary.membership.frozen %} | ||
|
||
<header> | ||
{% if is_granted('ROLE_PREVIOUS_ADMIN') %} | ||
<div class="navbar-fixed"> | ||
<nav class="impersonate"> | ||
<div class="brand-logo">{% image '@AppBundle/Resources/public/img/emoticons/072-ninja.svg' %}<img height="30px" class="emoticon" src="{{ asset_url }}" alt="ninja mode" />{% endimage %}</div> | ||
<div class="nav-wrapper"> | ||
<ul class="right"> | ||
<li> | ||
{% if app.user.beneficiary %} | ||
<a href="{{ path('member_show', {'member_number': app.user.beneficiary.membership.memberNumber,'_login_as': '_exit'}) }}"><i class="material-icons small right">arrow_back</i>Quitter le login as {{ app.user.username }}</a> | ||
{% else %} | ||
<a href="{{ path('homepage', {'_login_as': '_exit'}) }}"><i class="material-icons small right">arrow_back</i>Quitter le login as {{ app.user.username }}</a> | ||
{% endif %} | ||
</li> | ||
</ul> | ||
</div> | ||
</nav> | ||
</div> | ||
{% endif %} | ||
<nav class="main-navigation" role="navigation" style="background-color: {{ main_color }}"> | ||
<div class="nav-wrapper container"> | ||
<a id="logo-container" href="{{ path('homepage') }}" class="brand-logo hide-on-med-and-down">{{ site_name }}</a> | ||
<a id="logo-container" href="{{ path('homepage') }}" class="brand-logo hide-on-large-only">{{ project_name }}</a> | ||
<ul id="nav-desktop" class="right hide-on-med-and-down"> | ||
{% if is_granted("ROLE_ADMIN_PANEL") %} | ||
<li class="highlight"> | ||
<a href="{{ path("admin") }}" title="Administration"> | ||
<i class="material-icons left">build</i> | ||
<span class="show-on-xl-only">Administration</span> | ||
</a> | ||
</li> | ||
{% endif %} | ||
{% if is_granted("IS_AUTHENTICATED_REMEMBERED") %} | ||
{{ render(controller("AppBundle:Service:navlist")) }} | ||
{% if app.user.beneficiary %} | ||
<li> | ||
<a href="{{ path('fos_user_profile_show') }}" title="{{ app.user.firstname }}"> | ||
<i class="material-icons small left">settings</i> | ||
<span class="show-on-xl-only">{{ app.user.firstname }}</span> | ||
</a> | ||
</li> | ||
{% endif %} | ||
<li> | ||
<a href="{{ path('fos_user_security_logout') }}"> | ||
<i class="material-icons small right">exit_to_app</i> | ||
</a> | ||
</li> | ||
{% else %} | ||
<li> | ||
<a href="{{ path('fos_user_security_login') }}"> | ||
{{ 'layout.login'|trans({}, 'FOSUserBundle') }} | ||
</a> | ||
</li> | ||
{% endif %} | ||
</ul> | ||
|
||
<a href="#" data-target="nav-mobile" class="sidenav-trigger show-on-medium-and-down"> | ||
<i class="material-icons">menu</i> | ||
</a> | ||
<ul id="nav-mobile" class="sidenav show-on-medium-and-down"> | ||
{% if is_granted("IS_AUTHENTICATED_REMEMBERED") %} | ||
<li> | ||
<div class="user-view center-align"> | ||
<div class="background"> | ||
{% if frozen %} | ||
{% image '@AppBundle/Resources/public/img/frozen.png' %} | ||
<img class="responsive-img" src="{{ asset_url }}" alt="" /> | ||
{% endimage %} | ||
{% else %} | ||
{% image '@AppBundle/Resources/public/img/dumbo-in-the-air.jpg' %} | ||
<img class="responsive-img" src="{{ asset_url }}" alt="" style="position: absolute;bottom: -46px;left: 0;" /> | ||
{% endimage %} | ||
{% endif %} | ||
</div> | ||
<a href="#user"> | ||
<img class="circle" src="{{ gravatar(app.user.email) }}"> | ||
</a> | ||
<a href="#name"> | ||
<span class="{% if not frozen %}white-text{% else %}black-text{% endif %} name">{{ app.user }}</span> | ||
</a> | ||
</div> | ||
</li> | ||
<li> | ||
<a href="{{ path('homepage') }}"> | ||
<i class="material-icons small">home</i>Accueil | ||
</a> | ||
</li> | ||
{% if app.user.beneficiary %} | ||
<li> | ||
<a href="{{ path('fos_user_profile_show') }}"> | ||
<i class="material-icons">settings</i>Mon profil ({{ app.user.username }}) | ||
</a> | ||
</li> | ||
{% endif %} | ||
{% if is_granted("ROLE_ADMIN_PANEL") %} | ||
<li class="indigo lighten-5"> | ||
<a href="{{ path("admin") }}" class=""> | ||
<i class="material-icons left indigo-text darken-4">build</i>Administration | ||
</a> | ||
</li> | ||
{% endif %} | ||
{{ render(controller("AppBundle:Service:navlist")) }} | ||
<li> | ||
<a href="{{ path('fos_user_security_logout') }}"> | ||
<i class="material-icons small">exit_to_app</i>{{ 'layout.logout'|trans({}, 'FOSUserBundle') }} | ||
</a> | ||
</li> | ||
{% else %} | ||
<li> | ||
<a href="{{ path('fos_user_security_login') }}"> | ||
<span class="glyphicon glyphicon-log-in"></span> {{ 'layout.login'|trans({}, 'FOSUserBundle') }} | ||
</a> | ||
</li> | ||
{% endif %} | ||
</ul> | ||
</div> | ||
</nav> | ||
</header> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<style> | ||
.btn, .btn:hover, | ||
.btn-small, .btn-small:hover, | ||
.btn-large, .btn-large:hover { | ||
background-color: {{ main_color }}; | ||
} | ||
.homebox { | ||
border-color: {{ main_color }}; | ||
} | ||
.main-color-text { | ||
color: {{ main_color }}; | ||
} | ||
tr.withdrawn { | ||
background-color: {{ member_withdrawn_background_color }}; | ||
} | ||
tr.frozen { | ||
background-color: {{ member_frozen_background_color }}; | ||
} | ||
tr.exempted { | ||
background-color: {{ member_exempted_background_color }}; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.