<% if can? :create, new_activity(receiver) %> <% content_for :javascript do %> securityImage = "<%= escape_javascript(image_tag('btn/btn_security.png', :id => 'security_image', :alt => 'security')) %>"; downImage = "<%= escape_javascript(image_tag('btn/btn_down.png')) %>"; $("#security").dropdownchecklist( { closeRadioOnClick: true, forceMultiple: false } ); $("#security_image").parent().width(28); $("#security_image").parent().parent().width(28); <% end %>
<% SocialStream.activity_forms.each do |element| %> <%= render :partial => element.to_s.pluralize+'/new', :locals => { :receiver => receiver } %> <% end %>
<%= select_tag :_relation_ids, grouped_options_for_select(current_subject.grouped_activity_relations(receiver)), :id => 'security', :multiple => nil %>
<%= submit_tag(t('share'), :class => "myButtonBlue", :id => "masterSubmitButton") %>
<% end %>