aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2011-09-09 09:03:50 +0100
committerSeb Bacon <seb.bacon@gmail.com>2011-09-09 09:03:50 +0100
commita9c7286807dca10872b5c659c216e1e2a754e9c3 (patch)
tree75cfa14607f9bd48731bb9725dcea4c33424819b
parent41cadb37dc4dff1fa1dabc65d99a38a6635de839 (diff)
design fixes from Nick to address Kersti's bug list
-rw-r--r--app/views/help/_sidebar.rhtml2
-rw-r--r--app/views/help/about.rhtml2
-rw-r--r--app/views/help/alaveteli.rhtml2
-rw-r--r--app/views/help/api.rhtml2
-rw-r--r--app/views/help/credits.rhtml2
-rw-r--r--app/views/help/officers.rhtml2
-rw-r--r--app/views/help/privacy.rhtml2
-rw-r--r--app/views/help/requesting.rhtml2
-rw-r--r--app/views/layouts/default.rhtml3
-rw-r--r--app/views/public_body/list.rhtml4
-rw-r--r--app/views/request/new.rhtml22
-rw-r--r--public/images/small-white-cross.pngbin0 -> 355 bytes
-rw-r--r--public/stylesheets/theme.css94
13 files changed, 115 insertions, 24 deletions
diff --git a/app/views/help/_sidebar.rhtml b/app/views/help/_sidebar.rhtml
index db69f283b..21038e8df 100644
--- a/app/views/help/_sidebar.rhtml
+++ b/app/views/help/_sidebar.rhtml
@@ -1,4 +1,4 @@
-<div id="right_column">
+<div id="right_column_flip">
<h2>Help pages</h2>
<ul class="no_bullets">
<li><%= link_to_unless_current "Introduction", "/help/about" %></li>
diff --git a/app/views/help/about.rhtml b/app/views/help/about.rhtml
index 648ca1fb2..668a1df7f 100644
--- a/app/views/help/about.rhtml
+++ b/app/views/help/about.rhtml
@@ -2,7 +2,7 @@
<%= render :partial => 'sidebar' %>
-<div id="left_column">
+<div id="left_column_flip">
<h1 id="introduction">Introduction</h1>
<dl>
diff --git a/app/views/help/alaveteli.rhtml b/app/views/help/alaveteli.rhtml
index f7accdd11..41c75619c 100644
--- a/app/views/help/alaveteli.rhtml
+++ b/app/views/help/alaveteli.rhtml
@@ -1,7 +1,7 @@
<% @title = "Making requests" %>
<%= render :partial => 'sidebar' %>
-<div id="left_column">
+<div id="left_column_flip">
<% if params[:country_name] %>
<h1><%= _("Would you like to see a website like this in your country?") %></h1>
<% else %>
diff --git a/app/views/help/api.rhtml b/app/views/help/api.rhtml
index 297aa1e8b..76d2992fb 100644
--- a/app/views/help/api.rhtml
+++ b/app/views/help/api.rhtml
@@ -2,7 +2,7 @@
<%= render :partial => 'sidebar' %>
-<div id="left_column">
+<div id="left_column_flip">
<h1><%=@title %></h1>
<dl>
<dt>Introduction</dt>
diff --git a/app/views/help/credits.rhtml b/app/views/help/credits.rhtml
index fd753336b..02f1e40e8 100644
--- a/app/views/help/credits.rhtml
+++ b/app/views/help/credits.rhtml
@@ -2,7 +2,7 @@
<%= render :partial => 'sidebar' %>
-<div id="left_column">
+<div id="left_column_flip">
<h1 id="credits"><%= @title%></h1>
<dl>
diff --git a/app/views/help/officers.rhtml b/app/views/help/officers.rhtml
index b26138db6..3defec62f 100644
--- a/app/views/help/officers.rhtml
+++ b/app/views/help/officers.rhtml
@@ -2,7 +2,7 @@
<%= render :partial => 'sidebar' %>
-<div id="left_column">
+<div id="left_column_flip">
<h1 id="officers"><%= @title %> <a href="#officers">#</a> </h1>
<dl>
diff --git a/app/views/help/privacy.rhtml b/app/views/help/privacy.rhtml
index d62afa45b..bec0c8c23 100644
--- a/app/views/help/privacy.rhtml
+++ b/app/views/help/privacy.rhtml
@@ -2,7 +2,7 @@
<%= render :partial => 'sidebar' %>
-<div id="left_column">
+<div id="left_column_flip">
<h1 id="privacy"><%= @title %></h1>
<dl>
diff --git a/app/views/help/requesting.rhtml b/app/views/help/requesting.rhtml
index bd3ce46f3..af8f2e45d 100644
--- a/app/views/help/requesting.rhtml
+++ b/app/views/help/requesting.rhtml
@@ -1,7 +1,7 @@
<% @title = "Making requests" %>
<%= render :partial => 'sidebar' %>
-<div id="left_column">
+<div id="left_column_flip">
<h1 id="making_requests"><%= @title %></h1>
<dl>
diff --git a/app/views/layouts/default.rhtml b/app/views/layouts/default.rhtml
index 6551095c2..1075ffc03 100644
--- a/app/views/layouts/default.rhtml
+++ b/app/views/layouts/default.rhtml
@@ -143,8 +143,6 @@
<% end %>
<div id="<%= controller.controller_name + "_" + controller.action_name %>" class="controller_<%= controller.controller_name %>">
-
- <div id="other-country-notice"></div>
<%= yield :layout %>
</div>
</div>
@@ -159,6 +157,7 @@
<%= render :partial => 'general/before_body_end' %>
</div>
+<div id="other-country-notice"></div>
</body>
</html>
diff --git a/app/views/public_body/list.rhtml b/app/views/public_body/list.rhtml
index bb17b544f..e4c803113 100644
--- a/app/views/public_body/list.rhtml
+++ b/app/views/public_body/list.rhtml
@@ -1,4 +1,4 @@
-<div id="right_column">
+<div id="right_column_flip">
<h2><%=_('Show only...')%></h2>
<h3><%=_('Beginning with') %></h3>
@@ -33,7 +33,7 @@
</div>
<% @title = _("Public authorities - {{description}}", :description => @description) %>
-<div id="left_column">
+<div id="left_column_flip">
<h1><%= _('Public authorities') %></h1>
<% form_tag(list_public_bodies_default_url, :method => "get", :id=>"search_form") do %>
diff --git a/app/views/request/new.rhtml b/app/views/request/new.rhtml
index 9adf5d383..8dae8467a 100644
--- a/app/views/request/new.rhtml
+++ b/app/views/request/new.rhtml
@@ -11,20 +11,20 @@
<% @title = _("Make an {{law_used_short}} request to '{{public_body_name}}'",:law_used_short=>h(@info_request.law_used_short),:public_body_name=>h(@info_request.public_body.name)) %>
-<% if @existing_request %>
- <div class="errorExplanation" id="errorExplanation"><ul>
- <li>
- <%= _('{{existing_request_user}} already
- created the same request on {{date}}. You can either view the <a href="{{existing_request}}">existing request</a>,
- or edit the details below to make a new but similar request.',:existing_request_user=>user_or_you_capital_link(@existing_request.user), :date=>simple_date(@existing_request.created_at), :existing_request=>request_url(@existing_request)) %>
- </li>
- </ul></div>
-<% end %>
+ <h1><%= _('2. Ask for Information') %></h1>
+
+ <% if @existing_request %>
+ <div class="errorExplanation" id="errorExplanation"><ul>
+ <li>
+ <%= _('{{existing_request_user}} already
+ created the same request on {{date}}. You can either view the <a href="{{existing_request}}">existing request</a>,
+ or edit the details below to make a new but similar request.',:existing_request_user=>user_or_you_capital_link(@existing_request.user), :date=>simple_date(@existing_request.created_at), :existing_request=>request_url(@existing_request)) %>
+ </li>
+ </ul></div>
+ <% end %>
<%= foi_error_messages_for :info_request, :outgoing_message %>
- <h1><%= _('2. Ask for Information') %></h1>
-
<% form_for(:info_request, @info_request, :html => { :id => 'write_form' } ) do |f| %>
<div id="request_header">
diff --git a/public/images/small-white-cross.png b/public/images/small-white-cross.png
new file mode 100644
index 000000000..3f78064d2
--- /dev/null
+++ b/public/images/small-white-cross.png
Binary files differ
diff --git a/public/stylesheets/theme.css b/public/stylesheets/theme.css
index a00a1b21f..21708d77c 100644
--- a/public/stylesheets/theme.css
+++ b/public/stylesheets/theme.css
@@ -518,7 +518,7 @@ span#to_public_body {
}
.form_item_note, .form_note {
- margin-left:12em;
+ margin-left: 110px;
}
#left_column {
@@ -526,6 +526,18 @@ span#to_public_body {
float:left;
}
+#right_column_flip {
+ width:220px;
+ float:left;
+ margin-top:20px;
+}
+
+#left_column_flip {
+ width:620px;
+ float:right;
+ margin-top: 10px;
+}
+
#right_column {
width:220px;
float:right;
@@ -750,6 +762,8 @@ div.correspondence {
background: url(/images/stripes-70.png);
border-width: 0px;
font-size: 13px;
+ border-radius: 6px;
+ padding: 4px 20px 0px 9px;
}
/* ---------- Frontpage ----------- */
@@ -926,4 +940,82 @@ p.public-body-name-prefix {
#authority_preview #list-filter,
#authority_preview h2.foi_results {
display: none;
+}
+
+p.subtitle {
+ font-size: 18px;
+ font-family: 'DeliciousRoman';
+ font-style: normal;
+ color: #6B3C7F;
+}
+
+/*------------- Other countries notice ---------------*/
+#other-country-notice {
+ background: #93278F;
+ color: #FFF;
+ font-size: 16px;
+ width: 100%;
+ z-index: 999;
+ display: block;
+ position: absolute;
+ top: 0px;
+ opacity: 0.9;
+}
+
+#other-country-notice a {
+ color: #FFF;
+}
+
+#other-country-notice .close-button {
+ background: url(/images/small-white-cross.png) no-repeat;
+ padding: 10px 0px;
+ width: 15px;
+ height: 15px;
+ border: solid 0px #FFF;
+ text-indent: -999px;
+ overflow:hidden;
+ float:right;
+}
+
+/*---------- From tweaks ----------*/
+#to_public_body {
+ display: block;
+ margin-bottom: 15px;
+}
+
+.fieldWithErrors {
+ background: none;
+ border: solid 0px #FFF;
+}
+
+.fieldWithErrors textarea,
+.fieldWithErrors input {
+ border: solid 1px Red !important;
+}
+
+.errorExplanation {
+ border-radius: 6px;
+ font-size: 12px;
+ font-weight: normal;
+ width: 554px;
+ margin: 20px 0px 30px 0px;
+}
+
+#notice {
+ font-size: 12px;
+ font-weight: normal;
+ padding: 10px 20px 10px 20px;
+ background: #EDFED3 !important;
+ color: #5B7705;
+ border-color: #B6CB86;
+ border-radius: 6px;
+ margin: 15px 0px;
+}
+
+#notice p:first-child {
+ margin-top: 0px;
+}
+
+#notice p:last-child {
+ margin-bottom: 0px;
} \ No newline at end of file