Skip to content

Commit

Permalink
add modale for maintenance mode
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudbey committed Oct 2, 2015
1 parent 4b0deec commit 50db584
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/Resources/views/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
</div>

{% include 'InnovaSelfBundle::Main/helpModale.html.twig' %}
{% include 'InnovaSelfBundle::Main/localeModale.html.twig' %}
{% include 'InnovaSelfBundle::Main/maintenanceModale.html.twig' %}
{# {% include 'InnovaSelfBundle::Main/localeModale.html.twig' %} #}

{% block javascripts %}
{% javascripts filter='yui_js' output='js/compiled/javascripts.js'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<div id="maintenance-modale" class="modal fade " tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4 class="modal-title">{{ 'params.maintenanceEnabled' | trans }}</h4>
</div>
<div class="modal-body text-center">
Une maintenance est en cours. Il se peut que cela occasionne des dysfonctionnements.
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">{{ 'generic.close' | trans }}</button>
</div>
</div>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,11 @@
<ul class="nav navbar-nav pull-right">
{% if isMaintenanceEnabled() %}
<li>
<a href="#">
<span class='alert alert-danger'><span class="glyphicon glyphicon-info-sign"></span> {{ 'params.maintenanceEnabled' | trans }}</span>
<a data-toggle="modal" href="#maintenance-modale">
<span class='alert alert-danger'>
<span class="glyphicon glyphicon-info-sign"></span>
{{ 'params.maintenanceEnabled' | trans }}
</span>
</a>
</li>
{% endif %}
Expand Down

0 comments on commit 50db584

Please sign in to comment.