diff options
author | Gareth Rees <gareth@mysociety.org> | 2015-03-17 17:11:47 +0000 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2015-03-17 17:11:47 +0000 |
commit | 97e7387dfab33df3ac86981f0d249e9b9d622c91 (patch) | |
tree | 07ea8f93d9bfe2a78d41870d9eeb5b00726d2ea9 | |
parent | c061d124fe354ffb742d0be473520b29ac567f6d (diff) |
fixup! 6b0a79a Better validation highlighting2140-translations-failed-validation
-rw-r--r-- | app/views/admin_public_body/_locale_fields.html.erb | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/app/views/admin_public_body/_locale_fields.html.erb b/app/views/admin_public_body/_locale_fields.html.erb index 4a3e65de3..cbe008fe2 100644 --- a/app/views/admin_public_body/_locale_fields.html.erb +++ b/app/views/admin_public_body/_locale_fields.html.erb @@ -4,26 +4,14 @@ <%= t.hidden_field :locale, :value => locale.to_s %> <label for="<%= form_tag_id(t.object_name, :name, locale) %>" class="control-label">Name</label> <div class="controls"> - <% if t.object.errors[:name].any? %> - <span class="fieldWithErrors"> - <% end %> <%= t.text_field :name, :id => form_tag_id(t.object_name, :name, locale), :class => "span4" %> - <% if t.object.errors[:name].any? %> - </span> - <% end %> </div> </div> <div class="control-group"> <label for="<%= form_tag_id(t.object_name, :short_name, locale) %>" class="control-label"><%=_("Short name")%></label> <div class="controls"> - <% if t.object.errors[:short_name].any? %> - <span class="fieldWithErrors"> - <% end %> <%= t.text_field :short_name, :id => form_tag_id(t.object_name, :short_name, locale), :class => "span2" %> - <% if t.object.errors[:short_name].any? %> - </span> - <% end %> <p class="help-block"> <%=_("Only put in abbreviations which are really used, otherwise leave blank. Short or long name is used in the URL – don't worry about breaking URLs through renaming, as the history is used to redirect")%> </p> @@ -33,13 +21,7 @@ <div class="control-group"> <label for="<%= form_tag_id(t.object_name, :request_email, locale) %>" class="control-label"><%=_("Request email")%></label> <div class="controls"> - <% if t.object.errors[:short_name].any? %> - <span class="fieldWithErrors"> - <% end %> <%= t.text_field :request_email, :id => form_tag_id(t.object_name, :request_email, locale), :class => "span3" %> - <% if t.object.errors[:request_email].any? %> - </span> - <% end %> <p class="help-block"> <%=_("set to <strong>blank</strong> (empty string) if can't find an address; these emails are <strong>public</strong> as anyone can view with a CAPTCHA")%> </p> |