Commit 749db8d5 authored by Rémy Lebrun's avatar Rémy Lebrun

Add display when map_file is TRUE

parent 8d8bc3cc
......@@ -217,6 +217,24 @@
</div>
</div>
</fieldset>
{% if object.photo_file %}
<fieldset>
<legend>Photo</legend>
<img src="{{ object.photo_file.url }}" alt="Photo du gîte" width="500"/>
</fieldset>
{% endif %}
{% if object.map_file %}
<fieldset>
<div class="col-xs-12 col-md-12">
<legend>Carte, plan</legend>
<div class="well well-sm col-md-6">
<span class="label label-success"><i class="fi-check"></i></span>
Carte ou un plan disponible
<a href="{{ object.map_file.url }}" class="btn btn-primary btn-xs pull-right" title="Télécharger la fichier"><i class="fi-download"></i></a>
</div>
</div>
</fieldset>
{% endif %}
{% if object.bdsource %}
<fieldset>
<legend>BD Source</legend>
......@@ -360,4 +378,4 @@
</div>
</div>
<br/> {% endblock %}
<br/> {% endblock %}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment