Sha256: caa90b127433c50027b9a6c72e614fa30ee32144c6d53aa13beaf205f675db0c

Contents?: true

Size: 762 Bytes

Versions: 1

Compression:

Stored size: 762 Bytes

Contents

<%= link_to(image_tag(current_user.logo.url(:tie)), current_user) %>

<div class="txt_config">
  <%= link_to(current_user.name, current_user) %>

  <%= t('representation.action') %>

  <%= form_for(Representation.new(current_subject), :url => representation_path) do |f| %>
    <%= f.select :subject_dom_id, current_user.represented.unshift(current_user).map{ |s| [ s.name, dom_id(s) ] } %>
    <%= f.submit t('representation.change') %>
  <% end %>
</div>

<%-# this should be in content_for(:javascript), but the partial is rendered after yield(:javascript) -%>
<script type="text/javascript" charset="utf-8">
  $("#representation_submit").hide();
  $("#representation_subject_dom_id").change(function() {
    $(this).closest("form").submit();
  });
</script>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
social_stream-0.3.0 app/views/layouts/_representation.html.erb