<!-- Navigation -->

<nav class="navbar navbar-expand-lg navbar-light fixed-bottom navbar-skrink" id="toolNav">
  <div class="container">
    <button class="btn btn-primary"
	    type="button"
	    data-toggle="modal"
	    data-target="#addBloc">
      Blocs de cette page
    </button>

    <button class="btn btn-info nav-brand js-scroll-trigger"
	    type="button"
	    data-toggle="modal"
	    data-target="#mymenu">
      Mon menu
    </button>
    
    
    <button class="btn btn-success nav-brand js-scroll-trigger"
	    type="button"
	    data-toggle="modal"
	    data-target="#mypages">
      Mes pages
    </button>
    
    <button class="btn btn-secondary"
	    type="button"
	    data-toggle="modal"
	    data-target="#parameters">
      Paramètres de mon site
    </button>
    

    <button class="btn btn-warning nav-brand js-scroll-trigger" href="/edit/save"
	    type="button"
	    data-toggle="modal"
	    data-target="#publish">
      Publier mes modifications
    </button>
    

    <a href="/logout"> 
	<button class="btn btn-dark nav-brand"
    		type="button">
      	Se déconnecter
    	</button>
    </a>


  </div>
</nav>


<div class="modal" id="addBloc">
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
      <!-- Modal Header -->
      <div class="modal-header">
        <h4 class="modal-title"> Mes blocs </h4>
        <button type="button" class="close" data-dismiss="modal">&times;</button>
      </div>
      <div class="modal-body text-center">
	{% include 'admin/_bloc-edit.html' %}
      </div>
      <div class="modal-footer mx-auto">
	      <a class="btn btn-danger" href="{{url_for('edit', page=page)}}" > Fermer </a>
      </div>
    </div>
  </div>
</div>

<div class="modal" id="mymenu">
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
      <!-- Modal Header -->
      <div class="modal-header">
        <h4 class="modal-title"> Mon menu </h4>
        <button type="button" class="close" data-dismiss="modal">&times;</button>
      </div>
      <div class="modal-body text-center">
	{% include 'admin/_menu-edit.html' %}
      </div>
      <div class="modal-footer mx-auto">
	<a class="btn btn-danger" href="{{url_for('edit', page=page)}}" > Fermer </a>
      </div>
    </div>
  </div>
</div>

<div class="modal" id="mypages">
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
      <!-- Modal Header -->
      <div class="modal-header">
        <h4 class="modal-title"> Mes pages </h4>
        <button type="button" class="close" data-dismiss="modal">&times;</button>
      </div>
      <div class="modal-body text-center">
	{% include 'admin/_pages-edit.html' %}
      </div>
      <div class="modal-footer mx-auto">
	<a class="btn btn-danger" href="{{url_for('edit', page=page)}}" > Fermer </a>
      </div>
    </div>
  </div>
</div>
</div>



<div class="modal" id="parameters">
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
      <!-- Modal Header -->
      <div class="modal-header">
        <h4 class="modal-title">Paramètres </h4>
        <button type="button" class="close" data-dismiss="modal">&times;</button>
      </div>
      
      <!-- Modal body -->
      <div class="modal-body">
	{% include 'admin/_parameters.html' %}
      </div>
      
      <!-- Modal footer -->
      <div class="modal-footer mx-auto">
	<a class="btn btn-danger" href="{{url_for('edit', page=page)}}" > Fermer </a>
      </div>
    </div>
  </div>
</div>
</div>

<div class="modal" id="publish">
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
      <!-- Modal Header -->
      <div class="modal-header">
        <h4 class="modal-title"> Publier mon site </h4>
        <button type="button" class="close" data-dismiss="modal">&times;</button>
      </div>
      <div class="modal-body text-center">
	{% include 'admin/_publish.html' %}
      </div>
      <div class="modal-footer mx-auto">
	<a class="btn btn-danger" href="{{url_for('edit', page=page)}}" > Fermer </a>
      </div>
    </div>
  </div>
</div>


