diff --git a/app/views/admin/announcements/_form_link.html.erb b/app/views/admin/announcements/_form_link.html.erb index 461a3fc..a0e997a 100644 --- a/app/views/admin/announcements/_form_link.html.erb +++ b/app/views/admin/announcements/_form_link.html.erb @@ -1,6 +1,7 @@
+ <% url_id = "#{f.object_name.gsub(/[\[\]]+/, '_')}url" %> - <%= f.text_field :url, class: "input-large", placeholder: t(:url) %> + <%= f.text_field :url, class: "input-large", placeholder: t(:url), id: url_id %> <% @site_in_use_locales.each_with_index do |locale, i| %> @@ -23,4 +24,14 @@ <%= f.hidden_field :_destroy, :value => nil, :class => 'should_destroy' %> <% end %> +