Sha256: f64b4ee5b96298b16c94b43a27fcecec711d9032ed10940a201e0bfc713d057c
Contents?: true
Size: 791 Bytes
Versions: 6
Compression:
Stored size: 791 Bytes
Contents
<%= link_to(image_tag(current_user.logo.url(:tie), :width => 20, :height => 20), 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
6 entries across 6 versions & 1 rubygems