Sha256: 9290da47a64e5c28c953388764ec9bfbc3446965c30bf814acc90e2117e4a091

Contents?: true

Size: 927 Bytes

Versions: 38

Compression:

Stored size: 927 Bytes

Contents

<% if button_type == :text -%>
  <%= link_to( button_text, :url => delete_path, :method => :delete, :html => { :class  => 'muck_ajax_delete_control ajax-delete' }) %>
<% else -%>
  <%= form_for(delete_object, :url => delete_path, :html => { :class => "ajax 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, :class  => 'muck_ajax_delete_control' %>
    <% else -%>
      <%= submit_tag button_text, :title => button_text, :class  => 'muck_ajax_delete_control' %>
    <% end -%>
  <% end -%>
<% end -%>
<% unless defined?(@delete_waiting_text_inserted) -%>
  <div id="muck_ajax_delete_control_message" style="display:none;"><span class="waiting"><%= t('muck.general.deleting') %></span></div>
  <% @delete_waiting_text_inserted = true -%>
<% end -%>

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
muck-engine-3.3.0 app/views/shared/_delete.erb
muck-engine-3.2.10 app/views/shared/_delete.erb
muck-engine-3.2.9 app/views/shared/_delete.erb
muck-engine-3.2.8 app/views/shared/_delete.erb
muck-engine-3.2.7 app/views/shared/_delete.erb
muck-engine-3.2.6 app/views/shared/_delete.erb
muck-engine-3.2.5 app/views/shared/_delete.erb
muck-engine-3.2.4 app/views/shared/_delete.erb
muck-engine-3.2.3 app/views/shared/_delete.erb
muck-engine-3.2.1 app/views/shared/_delete.erb
muck-engine-3.2.0 app/views/shared/_delete.erb
muck-engine-3.1.0 app/views/shared/_delete.erb
muck-engine-3.0.8 app/views/shared/_delete.erb
muck-engine-3.0.7 app/views/shared/_delete.erb
muck-engine-3.0.6 app/views/shared/_delete.erb
muck-engine-3.0.5 app/views/shared/_delete.erb
muck-engine-3.0.4 app/views/shared/_delete.erb
muck-engine-3.0.3 app/views/shared/_delete.erb