replaced link with buttons on templates
authordurandn
Thu, 21 Jul 2016 15:35:24 +0200
changeset 70 c3116f5ed777
parent 69 a086445543d5
child 71 a0616d3c10dd
replaced link with buttons on templates
src/iconolab/templates/iconolab/collection_home.html
src/iconolab/templates/iconolab/detail_image.html
src/iconolab/templates/iconolab/detail_item.html
--- a/src/iconolab/templates/iconolab/collection_home.html	Thu Jul 21 12:00:54 2016 +0200
+++ b/src/iconolab/templates/iconolab/collection_home.html	Thu Jul 21 15:35:24 2016 +0200
@@ -24,7 +24,7 @@
         </a>
       {% endthumbnail %}
         <div class="fragment-infos">
-          <a class="fa fa-eye" href="{% url 'item_detail' collection_name item.item_guid %}"> Détail de l'objet</a>
+          <a class="btn btn-default btn-xs collection-home-btn" href="{% url 'item_detail' collection_name item.item_guid %}"><i class="fa fa-eye"></i> Détail de l'objet</a>
         </div>
     {% endwith %}
   </li>
--- a/src/iconolab/templates/iconolab/detail_image.html	Thu Jul 21 12:00:54 2016 +0200
+++ b/src/iconolab/templates/iconolab/detail_image.html	Thu Jul 21 15:35:24 2016 +0200
@@ -8,13 +8,16 @@
 
 {% block content %}
 <div class="row">
-	<div class="col-md-6 col-md-offset-3">
-        <a class="btn btn-link" href="{% url 'collection_home' collection_name %}"><i class="fa fa-list"></i> Retour à la liste d'images</a>
-		<a class="btn btn-link" href="{% url 'annotation_create' collection_name image_guid %}"><i class="fa fa-plus"></i> Créer une nouvelle annotation</a>
-
-		{% thumbnail image.media "x800" crop="center" as im %}
+	<div class="col-md-10 col-md-offset-1 text-center">
+          <a class="btn btn-default btn-sm" href="{% url 'collection_home' collection_name %}"><i class="fa fa-list"></i> Retour à la liste d'objets</a>
+          <a class="btn btn-default btn-sm" href="{% url 'item_detail' collection_name image.item.item_guid %}"><i class="fa fa-eye" aria-hidden="true"></i> Revoir l'objet de cette image</a>
+  		  <a class="btn btn-default btn-sm" href="{% url 'annotation_create' collection_name image_guid %}"><i class="fa fa-plus"></i> Annoter l'image</a>
+        <br><br>
+    
+		{% thumbnail image.media "800x800" crop=False as im %}
 			<img src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}">
 		{% endthumbnail %}
+        <br>
 	</div>
 </div>
 
--- a/src/iconolab/templates/iconolab/detail_item.html	Thu Jul 21 12:00:54 2016 +0200
+++ b/src/iconolab/templates/iconolab/detail_item.html	Thu Jul 21 15:35:24 2016 +0200
@@ -15,7 +15,8 @@
   			   <img src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}">
     		{% endthumbnail %}
             <br>
-            <br><a href="{% url 'annotation_create' collection_name image.image_guid %}"><i class="fa fa-plus"></i> Créer une nouvelle annotation sur cette image</a>
+            <br><a class="btn btn-default btn-sm" href="{% url 'annotation_create' collection_name image.image_guid %}"><i class="fa fa-plus"></i> Annoter cette image</a>
+            <br><br>
           </div>
         {% endfor %}    
     </div>
@@ -32,7 +33,7 @@
           {% endfor %} 
           <br><br>
         {% endif %}
-        <a class="btn btn-link" href="{% url 'collection_home' collection_name %}"><i class="fa fa-list"></i> Retour à la liste d'objets</a>
+        <a class="btn btn-default btn-sm" href="{% url 'collection_home' collection_name %}"><i class="fa fa-list"></i> Retour à la liste d'objets</a>
     </div>
       {% for image in item.images.all %}  
       <div id="annotations-{{image.image_guid}}" class="col-md-12 image-annotations-list">