
<div class="container my-auto pt-5" style="background-color: rgba(0,0,0,0.3);">
  <form method='POST'  action='/edit/{{ bloc.name }}' enctype="multipart/form-data" hx-swap="outerHTML" hx-target="#{{ bloc.name }}" hx-encoding="multipart/form-data"> 
{{ form.csrf_token }}
     

   <div class="container my-auto">
      <div class="row">

        <div class="col-lg-10 form-group mx-auto">
	  {% include 'edit-tools/_form-base.html' %}
	  {{ form.title(value=bloc.title,
          class="form-control form-control-lg text-center text-uppercase")
          }}
          {% for error in form.title.errors %}
          <span style="color: red;">{{ error }}</span>
          {% endfor %}
          <hr>
        </div>
         <div class="col-lg-10 form-group mx-auto">
	  {{ form.subtitle(value=bloc.subtitle,
          class="form-control form-control-lg text-center text-uppercase")
          }}
          {% for error in form.subtitle.errors %}
          <span style="color: red;">{{ error }}</span>
          {% endfor %}
        </div>
 
	<div class="col-lg-8 form-group mx-auto">
            {{ form.image(class="form-control" ) }}
        </div>

      
     </div>
    
     {% include 'edit-tools/_btn-save-cancel.html' %}

 

   </form>

</div>
{% include 'edit-tools/_disable-modify-button.html' %}
