From 345ab8f0dda4d70362db3892bbd84f457e81c5c2 Mon Sep 17 00:00:00 2001 From: Andrew Hayward Date: Fri, 31 May 2013 13:02:01 +0100 Subject: [PATCH] Submission template/style updates --- static/media/css/core.css | 14 ++++- static/media/less/core.less | 15 +++++- views/applications/new.html | 86 +++++++++++++++++-------------- views/applications/submitted.html | 56 +++++++++++--------- 4 files changed, 103 insertions(+), 68 deletions(-) diff --git a/static/media/css/core.css b/static/media/css/core.css index a354562..4bdc778 100644 --- a/static/media/css/core.css +++ b/static/media/css/core.css @@ -255,6 +255,12 @@ ol { #edit-application { margin-bottom: 20px; } +#edit-application textarea { + width: 100%; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} #edit-application .items { list-style: none; margin: 0; @@ -329,6 +335,12 @@ ol { } #evidence .item { position: relative; + width: 33%; + margin-left: 0; + padding-left: 20px; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; } #evidence .thumbnail { background: #FFF; @@ -348,8 +360,6 @@ ol { #evidence img { display: block; width: 100%; - min-width: 150px; - min-height: 150px; margin: 0; } #evidence form { diff --git a/static/media/less/core.less b/static/media/less/core.less index ec1a814..256daee 100644 --- a/static/media/less/core.less +++ b/static/media/less/core.less @@ -290,6 +290,13 @@ ol { #edit-application { margin-bottom: 20px; + textarea { + width: 100%; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + } + .items { list-style: none; margin: 0; @@ -382,6 +389,12 @@ ol { #evidence { .item { position: relative; + width: 33%; + margin-left: 0; + padding-left: 20px; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; } .thumbnail { @@ -404,8 +417,6 @@ ol { img { display: block; width: 100%; - min-width: 150px; - min-height: 150px; margin: 0; } diff --git a/views/applications/new.html b/views/applications/new.html index e9bc168..2b01d30 100644 --- a/views/applications/new.html +++ b/views/applications/new.html @@ -5,48 +5,54 @@ {% endblock %} {% block content %} -
-
- {% block intro %} - {% endblock %} - {% block items %} - +

+ {% endblock %}
- {% block form %} -
- - {% block descriptionTitle %}

Start by telling us about your work

{% endblock %} - -

- {% block evidenceTitle %}

Then upload your pictures and videos

{% endblock %} -
    -
  • - -
  • -
-

-
- {% endblock %}
{% endblock %} @@ -113,7 +119,7 @@ $item .attr('id', 'uploaded-item-' + data.key) - .addClass('span2 item item-' + data.evidence.type.split('/')[0]) + .addClass('item item-' + data.evidence.type.split('/')[0]) .append($wrapper) .append($form) .appendTo($list); diff --git a/views/applications/submitted.html b/views/applications/submitted.html index 135e252..36ab3ee 100644 --- a/views/applications/submitted.html +++ b/views/applications/submitted.html @@ -5,31 +5,39 @@ {% endblock %} {% block content %} -
- {% block notice %} -
- Your application is waiting to be reviewed. -
- {% endblock %} -
+ {% block notice %} +
+ Your application is waiting to be reviewed. +
+ {% endblock %} +
+
+ +
+
+
-

Your application

-
{{ application.description }}
- +
+

Your application

+ {% if application.description %} +
{{ application.description }}
+ {% endif %} + +