--- a/src/hdalab/templates/renkan_edit.html Mon Jan 05 15:46:20 2015 +0100
+++ b/src/hdalab/templates/renkan_edit.html Mon Jan 05 17:38:36 2015 +0100
@@ -185,11 +185,17 @@
{% trans 'Changer de disposition' %}
<p> {% trans '(Indisponible si modification du RENKAN)' %}</p>
<ul>
- {% if 'shape=circle' in switch_shape_url %}
- <li id="graph-line"><a href="">✓ {% trans 'See the graph in line' %}</a></li>
- <li id="graph-circle"><a href="{{ switch_shape_url }}"> {% trans 'See the graph in circle' %}</a></li>
+ {% if 'shape=vert' in switch_shape_url.current %}
+ <li id="graph-line"><a href="">✓ {% trans 'See the graph in column' %}</a></li>
+ <li id="graph-lineH"><a href="{{ switch_shape_url.horiz }}"> {% trans 'See the graph in line' %}</a></li>
+ <li id="graph-circle"><a href="{{ switch_shape_url.circle }}"> {% trans 'See the graph in circle' %}</a></li>
+ {% elif 'shape=horiz' in switch_shape_url.current %}
+ <li id="graph-line"><a href="{{ switch_shape_url.vert }}"> {% trans 'See the graph in column' %}</a></li>
+ <li id="graph-lineH"><a href="">✓ {% trans 'See the graph in line' %}</a></li>
+ <li id="graph-circle"><a href="{{ switch_shape_url.circle }}"> {% trans 'See the graph in circle' %}</a></li>
{% else %}
- <li id="graph-line"><a href="{{ switch_shape_url }}"> {% trans 'See the graph in line' %}</a></li>
+ <li id="graph-line"><a href="{{ switch_shape_url.vert }}"> {% trans 'See the graph in column' %}</a></li>
+ <li id="graph-lineH"><a href="{{ switch_shape_url.horiz }}"> {% trans 'See the graph in line' %}</a></li>
<li id="graph-circle"><a href="">✓ {% trans 'See the graph in circle' %}</a></li>
{% endif %}
</ul>