Sha256: 6a0d2b654d6121545ad5472215f2e4f6ab4ce1364f51148f15ef660216d76253

Contents?: true

Size: 1.07 KB

Versions: 4

Compression:

Stored size: 1.07 KB

Contents

<% 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 %>

<div id="activities_header" class="content_size">
  <% SocialStream.activity_forms.each do |element| %>
    <%= render :partial => element.to_s.pluralize+'/new',
               :locals  => {
                             :receiver => receiver
                           } %>
  <% end %>
</div>

<div id="activities_share_btn">
<div id="securities"><%= select_tag :_relation_ids, grouped_options_for_select(current_subject.grouped_activity_relations(receiver)), :id => 'security', :multiple => nil %></div>
<%= submit_tag(t('share'), :class => "myButtonBlue", :id => "masterSubmitButton") %>
</div>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
social_stream-base-0.6.3 app/views/activities/_new.html.erb
social_stream-base-0.6.2 app/views/activities/_new.html.erb
social_stream-base-0.6.1 app/views/activities/_new.html.erb
social_stream-base-0.6.0 app/views/activities/_new.html.erb