
  <div class="container">
    <form method='POST' action='/edit//{{ bloc.name }}' hx-post='/edit//{{ bloc.name }}' hx-swap="outerHTML" hx-target="#{{ bloc.name }}">
      {{ form.csrf_token }}

      <div class="row">
        <div class="col-lg-8 mx-auto text-center">
          {{ form.title(col=5,value=bloc.title,
          class="form-control form-control-lg text-center") }}
          <hr class="light my-4">
          <textarea class="form-control text-center" id="text" name="text"> {{ bloc.text }} </textarea> 
          <br/>
          {{ form.submit(class="btn") }}
	  <button class="btn btn-danger" hx-get="/view/{{ bloc.name }}" hx-swap="outerHTML" hx-target="#{{ bloc.name }}" > Annuler </button>
        </div>
      </div>
    </form>
  </div>
</section>
