diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-12-04 15:54:47 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-12-04 16:07:38 +0000 |
commit | 7ddfc17de981455fe63b590dd5a434526d0929d8 (patch) | |
tree | 22218cf175b94501c96efa7e26a97ed529ac17ea | |
parent | 4e486821a479fbb96ca83c025805a19baa9a6df9 (diff) |
Move disclosure log to common part of form.
It isn't in the list of attributes that is translated, so was causing a
mass assignment error when the code in public_body.translated_versions=
was attempting to assign it. There's a possible underlying inconsistency
here between the treatment of publication_scheme and disclosure_log -
one is translated and one isn't. I've ticketed that separately (#1264)
-rw-r--r-- | app/views/admin_public_body/_form.html.erb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/views/admin_public_body/_form.html.erb b/app/views/admin_public_body/_form.html.erb index c577d1e18..ebf2c1151 100644 --- a/app/views/admin_public_body/_form.html.erb +++ b/app/views/admin_public_body/_form.html.erb @@ -51,12 +51,6 @@ </div> </div> <div class="control-group"> - <label for="<%= form_tag_id(t.object_name, :disclosure_log, locale) %>" class="control-label"><%=_("Disclosure log URL")%></label> - <div class="controls"> - <%= t.text_field :disclosure_log, :size => 60, :id => form_tag_id(t.object_name, :disclosure_log, locale), :class => "span3" %> - </div> - </div> - <div class="control-group"> <label for="<%= form_tag_id(t.object_name, :notes, locale) %>" class="control-label"><%=_("Public notes")%></label> <div class="controls"> <%= t.text_area :notes, :rows => 3, :id => form_tag_id(t.object_name, :notes, locale), :class => "span6" %> @@ -89,6 +83,12 @@ </div> </div> <div class="control-group"> + <label for="public_body_disclosure_log" class="control-label"><%=_("Disclosure log URL")%></label> + <div class="controls"> + <%= f.text_field :disclosure_log, :size => 60, :class => "span4" %> + </div> +</div> +<div class="control-group"> <label for="public_body_last_edit_comment" class="control-label"><strong>Comment</strong> for this edit</label> <div class="controls"> <%= f.text_area :last_edit_comment, :rows => 3, :class => "span6" %></p> |