Parcourir la source

improve tooltips on document view

Jocelyn Delande il y a 9 ans
Parent
commit
eaaaa5ba66
1 fichiers modifiés avec 4 ajouts et 8 suppressions
  1. 4 8
      costs/templates/costs/document_detail.html

+ 4 - 8
costs/templates/costs/document_detail.html

@@ -30,13 +30,11 @@
 {% for cost in document.cost_set.all %}
     <tr>
       <td>
-        <a href="{{ cost.get_absolute_url }}" title="{{ cost.description }}">
-          {{ cost.name }}
-        </a>
+       {{ cost.name }}<a href="#" title="{{ cost.description }}">ⓘ</a>
       </td>
       <td>
         {% if cost.capacity_unit %}
-        {{ cost.total_capacity|human_round }} {{ cost.get_capacity_unit_display }}
+        {{ cost.total_capacity }} {{ cost.get_capacity_unit_display }}
         {% else %}
         n/a
         {% endif %}
@@ -65,13 +63,11 @@
 {% for good in document.good_set.all %}
   <tr>
     <td>
-      <a title="{{ good.description }}" href="{{ good.get_absolute_url }}">
-        {{ good.name }}
-      </a>
+     {{ good.name }}<a href="#" title="{{ good.description }}">ⓘ</a>
     </td>
     <td>
         {% if good.capacity_unit %}
-          {{ good.total_capacity|human_round }} {{ good.get_capacity_unit_display }}
+          {{ good.total_capacity }} {{ good.get_capacity_unit_display }}
         {% else %}
           n/a
         {% endif %}