src/hdalab/templates/renkan_edit.html
changeset 420 9788eced982a
parent 417 fd847122d85d
child 423 be82c14a0ad1
--- 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="">&#10003&nbsp;{% trans 'See the graph in line' %}</a></li>
-						<li id="graph-circle"><a href="{{ switch_shape_url }}">&nbsp;&nbsp;&nbsp;{% trans 'See the graph in circle' %}</a></li>
+					{% if 'shape=vert' in switch_shape_url.current %}
+						<li id="graph-line"><a href="">&#10003&nbsp;{% trans 'See the graph in column' %}</a></li>
+						<li id="graph-lineH"><a href="{{ switch_shape_url.horiz }}">&nbsp;&nbsp;&nbsp;{% trans 'See the graph in line' %}</a></li>
+						<li id="graph-circle"><a href="{{ switch_shape_url.circle }}">&nbsp;&nbsp;&nbsp;{% 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 }}">&nbsp;&nbsp;&nbsp;{% trans 'See the graph in column' %}</a></li>
+						<li id="graph-lineH"><a href="">&#10003&nbsp;{% trans 'See the graph in line' %}</a></li>
+						<li id="graph-circle"><a href="{{ switch_shape_url.circle }}">&nbsp;&nbsp;&nbsp;{% trans 'See the graph in circle' %}</a></li>
 					{% else %}
-						<li id="graph-line"><a href="{{ switch_shape_url }}">&nbsp;&nbsp;&nbsp;{% trans 'See the graph in line' %}</a></li>
+						<li id="graph-line"><a href="{{ switch_shape_url.vert }}">&nbsp;&nbsp;&nbsp;{% trans 'See the graph in column' %}</a></li>
+						<li id="graph-lineH"><a href="{{ switch_shape_url.horiz }}">&nbsp;&nbsp;&nbsp;{% trans 'See the graph in line' %}</a></li>
 						<li id="graph-circle"><a href="">&#10003&nbsp;{% trans 'See the graph in circle' %}</a></li>
 					{% endif %}
 				</ul>