Get rid of some repeated ids, fix infieldlabels on manage page
This commit is contained in:
parent
449a6f3ea0
commit
6503cefd68
2 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue