% input_id = "#{type}_#{user.id}_#{(10**10*rand).to_i}_input" %> <% span_id = "#{input_id}_span" %> <% div_id = "#{input_id}_div" %> <% toggle_function = "#{input_id}_function" %> <% same_user = current_user == user %> <% if !disable_action %> <%= select_tag input_id, options_for_select(options, selector), class: 'form-control' %> <% else %>