aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/views/admin_public_body/list.rhtml2
-rw-r--r--app/views/admin_public_body/show.rhtml4
-rw-r--r--app/views/file_request/index.rhtml8
-rw-r--r--app/views/layouts/admin.rhtml1
4 files changed, 12 insertions, 3 deletions
diff --git a/app/views/admin_public_body/list.rhtml b/app/views/admin_public_body/list.rhtml
index 006ca862c..35fc755bd 100644
--- a/app/views/admin_public_body/list.rhtml
+++ b/app/views/admin_public_body/list.rhtml
@@ -8,7 +8,7 @@
</tr>
<% for public_body in @public_bodies %>
- <tr>
+ <tr class="<%= cycle('odd', 'even') %>">
<% for column in PublicBody.content_columns %>
<td><%=h public_body.send(column.name) %></td>
<% end %>
diff --git a/app/views/admin_public_body/show.rhtml b/app/views/admin_public_body/show.rhtml
index 21d7203c2..dfe10b7f1 100644
--- a/app/views/admin_public_body/show.rhtml
+++ b/app/views/admin_public_body/show.rhtml
@@ -19,11 +19,11 @@
<th>Updated at</th>
</tr>
<% for old_public_body in @public_body.versions.reverse %>
- <tr>
+ <tr class="<%= cycle('odd', 'even') %>">
<% for column in PublicBody.content_columns %>
<% # Highlight entries which have changed since previous version
changed = ((old_public_body.send(column.name) != @public_body.versions[old_public_body.version - 2].send(column.name)) && column.name != 'version' && column.name != 'last_edit_editor' && column.name != 'last_edit_comment') || (old_public_body.version == 1) %>
- <td <%= changed ? ' style="font-weight: bold" ': '' %> >
+ <td <%= changed ? ' class="entry_changed" ': '' %> >
<%=h old_public_body.send(column.name) %>
</td>
<% end %>
diff --git a/app/views/file_request/index.rhtml b/app/views/file_request/index.rhtml
index dec0103fc..acf7a5890 100644
--- a/app/views/file_request/index.rhtml
+++ b/app/views/file_request/index.rhtml
@@ -11,6 +11,14 @@ displayed publically on this website.</p>
<div id="address_part">
+ <p>
+ <label for="public_body">Public body:</label>
+ <%=
+ @public_bodies = PublicBody.find(:all, :order => "name")
+ f.collection_select(:public_body, @public_bodies, :id, :name)
+ %>
+ </p>
+
<% fields_for :user do |u| %>
<p>
<label for="user_name">Your name:</label>
diff --git a/app/views/layouts/admin.rhtml b/app/views/layouts/admin.rhtml
index 947e65d33..e03ff1cb8 100644
--- a/app/views/layouts/admin.rhtml
+++ b/app/views/layouts/admin.rhtml
@@ -5,6 +5,7 @@
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<title>FOIFA admin: <%=controller.controller_name %> <%= controller.action_name %></title>
+ <%= stylesheet_link_tag 'admin' %>
<%= stylesheet_link_tag 'scaffold' %>
</head>
<body>