<section class="p-0" id="{{bloc.name}}">  
  <div class="container-fluid p-0"  id="editImg">
    <div class="row no-gutters ">
      {% for image in bloc.values() %}
      {% if image.file %}
      <div class="col-lg-4 col-sm-6 text-center">
        <a class="portfolio-box">
          <img class="img-fluid" src="/img/thumbnails/{{ image.file }}" alt="{{ image.description }}">
	  <div class="portfolio-box-caption">
            <div class="portfolio-box-caption-content">
              <div class="project-category text-faded">
                {{ image.subtitle }}
              </div>
              <div class="project-name">
                {{ image.title }}
                <br/><br/>
              </div>
            </div>
          </div>
        </a>
  	<button type="button" class="btn btn-success m-4"
		hx-get="/edit/images/{{ bloc.name }}/{{ image.file }}"
		hx-target="#editImage"
		hw-swap="none">
          <i class="fa fa-pencil-square-o"></i>
        </button>
	
      </div>
  {% endif %}
  {% endfor %}
    </div>
  </div>

</section>

