diff options
author | francis <francis> | 2007-09-05 14:29:16 +0000 |
---|---|---|
committer | francis <francis> | 2007-09-05 14:29:16 +0000 |
commit | ab810950cb413715f1b7d211016d2791c16f1008 (patch) | |
tree | a9c68a72973abb425309093039c6fe0cbaf8d86a | |
parent | d99a7eb7667a77145a48e2ca68885c14b917657a (diff) |
Display choice of public bodies on new request form.
Add some styling to the admin interface.
-rw-r--r-- | app/views/admin_public_body/list.rhtml | 2 | ||||
-rw-r--r-- | app/views/admin_public_body/show.rhtml | 4 | ||||
-rw-r--r-- | app/views/file_request/index.rhtml | 8 | ||||
-rw-r--r-- | app/views/layouts/admin.rhtml | 1 | ||||
-rw-r--r-- | todo.txt | 6 |
5 files changed, 18 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> @@ -1,3 +1,9 @@ +Redirect the front page to the new FOI request page + +Just use crappy login and get on with it :( + + +Rename file_requet to new ? |