From b49acc3fcc300458c8a1deb463a729aab0140610 Mon Sep 17 00:00:00 2001 From: aaron Date: Mon, 19 Jan 2009 20:30:23 +0100 Subject: [PATCH] [svn r8207] Allow viewing of more than one survey stage at once. Also, make images float nicely but not escape content div. --- troggle/media/css/main2.css | 5 +++ troggle/templates/base.html | 2 +- troggle/templates/survey.html | 68 +++++++++++++++++++++++------------ 3 files changed, 52 insertions(+), 23 deletions(-) diff --git a/troggle/media/css/main2.css b/troggle/media/css/main2.css index ec6602f3e..fa9d3c29f 100644 --- a/troggle/media/css/main2.css +++ b/troggle/media/css/main2.css @@ -310,6 +310,8 @@ div.figure { border: thin silver solid; margin: 0.5em; padding: 0.5em; + display: inline; + float: left; } div.figure p { text-align: left; @@ -319,3 +321,6 @@ div.figure p { img.thumbnail { width: 100%; } +br.clearfloat { + clear:both; +} \ No newline at end of file diff --git a/troggle/templates/base.html b/troggle/templates/base.html index 1916f7dd1..862393cd7 100644 --- a/troggle/templates/base.html +++ b/troggle/templates/base.html @@ -41,7 +41,7 @@ {% block content %} REPLACE : The content {% endblock %} - +
/*This is to ensure that the content div expands around floated objects*/ diff --git a/troggle/templates/survey.html b/troggle/templates/survey.html index fb5c60ea8..8f9e19008 100644 --- a/troggle/templates/survey.html +++ b/troggle/templates/survey.html @@ -6,7 +6,10 @@ {% block head %} - + {% endblock %} -
CUCC Expo virtual survey binder: {% if current_survey %} @@ -69,7 +82,7 @@

Choose a year

- +
-
+
+
+ + +
+

Choose a wallet number

- +
-
-
+ +
+ - @@ -117,7 +141,7 @@ {% block content %}
-
+

Survey progress table for {{ current_expedition }}

{% if current_expedition.survey_set.all %} @@ -156,7 +180,7 @@ {% endfor %}
{% else %} -
[ There are no surveys in the database for this year. ]
+
[ There are no surveys in the database for this year. Put link in to add one. ]
{% endif %}
@@ -195,5 +219,5 @@

-
+ {% endblock %}