<!-- cas package -->
{% for formule in formules %}
<div id="formule-info-{{ formule.idIresa }}" class="packformule {{ formule.type }}
{#
{% if attribute(fiche, "pack_heb" ) is defined %}pack_heb{% endif %}
{% if attribute(fiche, "pack_loisir" ) is defined %}pack_loisir
{% for key, elem in fiche.pack_loisir if 'theme_' in key and elem == 1 %} {{ key }}{% endfor %}
{% endif %}
#}
">
<div class="width-100 formule-bloc">
<div class="width-100">
{% if formule.photoProfil is empty %}
<img src="{{ asset('build/images/front/locatif-default.jpg') }}" class="float-left img-responsive margin-bottom-10" />
{% else %}
<img src="{{ vich_uploader_asset(formule, 'photoProfilFile') | imagine_filter('photoProfil') }}" class="float-left img-responsive margin-bottom-10">
{% endif %}
<div class="titre-formule">
{{ formule.nom|raw }}
</div>
<div class="desc">
{{ formule.description|raw }}
<a href="#services_{{ formule.idIresa}}" class="btn btn-info" data-toggle="modal">{{ 'ancre.voir_detail' |trans({},'app') |raw }}</a>
<div class="resa-formule-dispo text-danger margin-top-10">{{ 'produit.hebergement.non_disponible' |trans({}, 'app') }}</div>
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="services_{{ formule.idIresa}}" tabindex="-1" role="dialog" data-target="#servicesmodal">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">{{ formule.nom }}</h4>
</div>
<div class="modal-body">
{% if formule.photoPopin is not empty %}
<img src="{{ vich_uploader_asset(formule, 'photoPopinFile') | imagine_filter('photoPopin') }}" class="float-left img-responsive margin-bottom-10">
{% elseif formule.photoProfil is not empty %}
<img src="{{ vich_uploader_asset(formule, 'photoProfilFile') | imagine_filter('photoPopin') }}" class="float-left img-responsive margin-bottom-10">
{% else %}
{% endif %}
<div class="row margin-top-20">
<div class="col-md-12">
{% if formule.descriptionPopin is defined and formule.descriptionPopin is not empty %}
{{ formule.descriptionPopin |raw }}
{% elseif formule.resBigdesc is defined and formule.resBigdesc is not empty %}
{{ formule.resBigdesc |raw }}
{% endif %}
</div>
</div>
<div class="row margin-top-20">
<div class="col-md-6">
{% if formule.serviceInc is not empty %}
<b>{{ 'reservation.formule.inclus' |trans({},'app') |raw }}</b><br>
{{ formule.serviceInc |raw }}
{% endif %}
</div>
<div class="col-md-6">
{% if formule.serviceNoinc is not empty %}
<b>{{ 'reservation.formule.en_supplement' |trans({},'app') |raw }}</b><br>
{{ formule.serviceNoinc |raw }}
{% endif %}
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn-ateya float-right" data-dismiss="modal">{{ 'ancre.fermer' |trans({}, 'app')}}</button>
<div class="clear"></div>
</div>
</div>
</div>
</div>
<!-- fin Modal -->
{% endfor %}
<!-- fin cas package -->