diff --git a/app/views/requests/_new_request.haml b/app/views/requests/_new_request.haml index 05ce61188..b4d7c25bd 100644 --- a/app/views/requests/_new_request.haml +++ b/app/views/requests/_new_request.haml @@ -10,7 +10,7 @@ = render 'shared/add_friend_dropdown', :aspect => aspect, :friends => current_user.friends_not_in_aspect(aspect), :manage => defined?(manage) - = form_for Request.new do |fr_request| + = form_for(Request.new, :html => {:id => "new_request_to_#{aspect.id}"}) do |fr_request| = fr_request.error_messages =t('.enter_a_diaspora_username') @@ -18,8 +18,8 @@ %i= t '.your_diaspora_username_is', :diaspora_handle => current_user.diaspora_handle %p - = fr_request.label :destination_url, t('.friends_username') - = fr_request.text_field :destination_url + = fr_request.label :destination_url, t('.friends_username'), :for => "request_d_url_to_#{aspect.id}" + = fr_request.text_field :destination_url, :id => "request_d_url_to_#{aspect.id}" = fr_request.hidden_field :aspect_id, :value => aspect.id - if defined?(getting_started) diff --git a/app/views/shared/_add_friend_dropdown.html.haml b/app/views/shared/_add_friend_dropdown.html.haml index 062f534b8..f324b988c 100644 --- a/app/views/shared/_add_friend_dropdown.html.haml +++ b/app/views/shared/_add_friend_dropdown.html.haml @@ -1,5 +1,5 @@ -= form_tag '/aspects/add_to_aspect', :id => 'add_to_aspect' do += form_tag '/aspects/add_to_aspect', :id => "add_to_aspect_#{aspect.id}" do = select_tag :friend_id, options_from_collection_for_select(friends, "id", "real_name"), :include_blank => true = hidden_field_tag :aspect_id, aspect.id - if defined?(manage) && manage