Sha256: 880d61ecfb4b3002891be884c067859679f8a5a7624d3902fb47b6488ebbe698
Contents?: true
Size: 1.15 KB
Versions: 2
Compression:
Stored size: 1.15 KB
Contents
%h2 Doubles index %a= link_to 'New double', '/doubles/new' %table %thead %tr %th Request fullpath %th Description %th Active? %th %tbody - @doubles.group_by {|f| f.fullpath}.each do |fullpath, fs| - fs.each_with_index do |f, i| %tr{:id => "double_row_#{f.id}"} - if i == 0 %td{:rowspan => fs.size}= fullpath %td= f.description %td.label.text-center %input.active-double-toggle{:type => 'radio', :name => fullpath, :checked => f.active, :data => { :double_id => f.id }} %td.edit-link.text-center.white-space-nowrap = link_to 'Edit', "/doubles/#{f.id}/edit" | %a.delete_link{:href => "/doubles/#{f.id}"} Delete :javascript $(function() { $('td.label').click(function() { $('input', this).click(); }); $('input.active-double-toggle').click(function(e) { e.stopPropagation(); $.post( '/doubles/' + this.getAttribute('data-double_id'), { _method: 'put', active: 't' }, function(data) { $.jGrowl(data); } ); }); });
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rest-assured-0.1.1 | views/doubles/index.haml |
rest-assured-0.1.0 | views/doubles/index.haml |