Sha256: c3d6b655eafb42846525fc8c1b407c52daceb63266bf1e763ff8cad5a4f39956

Contents?: true

Size: 553 Bytes

Versions: 16

Compression:

Stored size: 553 Bytes

Contents

<% if button_type == :text -%>
  <%= link_to_remote( button_text, :url => delete_path, :method => :delete) %>
<% else -%>
  <% remote_form_for(delete_object, :url => delete_path, :html => { :class => "delete-form #{form_class}", :method => :delete } ) do |f| -%>
    <% if button_type == :image -%>
      <%= image_submit_tag '/images/icons/delete.png', {:title => button_text, :width => '15', :height => '15', :alt => button_text } %>
    <% else -%>
      <%= submit_tag button_text, { :title => button_text } %>
    <% end -%>
  <% end -%>
<% end -%>

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
muck-engine-0.1.24 app/views/shared/_delete.html.erb
muck-engine-0.1.25 app/views/shared/_delete.html.erb
muck-engine-0.1.26 app/views/shared/_delete.html.erb
muck-engine-0.1.27 app/views/shared/_delete.html.erb
muck-engine-0.1.28 app/views/shared/_delete.html.erb
muck-engine-0.1.29 app/views/shared/_delete.html.erb
muck-engine-0.1.30 app/views/shared/_delete.html.erb
muck-activities-0.1.8 app/views/activities/_delete.html.erb
muck-activities-0.1.9 app/views/activities/_delete.html.erb
muck-activities-0.1.10 app/views/activities/_delete.html.erb
muck-activities-0.1.11 app/views/activities/_delete.html.erb
muck-activities-0.1.12 app/views/activities/_delete.html.erb
muck-activities-0.1.13 app/views/activities/_delete.html.erb
muck-activities-0.1.14 app/views/activities/_delete.html.erb
muck-activities-0.1.15 app/views/activities/_delete.html.erb
muck-activities-0.1.16 app/views/activities/_delete.html.erb