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.5.0 app/views/shared/_delete.erb
muck-engine-3.4.0 app/views/shared/_delete.erb
muck-engine-3.3.18 app/views/shared/_delete.erb
muck-engine-3.3.17 app/views/shared/_delete.erb
muck-engine-3.3.16 app/views/shared/_delete.erb
muck-engine-3.3.15 app/views/shared/_delete.erb
muck-engine-3.3.14 app/views/shared/_delete.erb
muck-engine-3.3.13 app/views/shared/_delete.erb
muck-engine-3.3.12 app/views/shared/_delete.erb
muck-engine-3.3.11 app/views/shared/_delete.erb
muck-engine-3.3.10 app/views/shared/_delete.erb
muck-engine-3.3.9 app/views/shared/_delete.erb
muck-engine-3.3.8 app/views/shared/_delete.erb
muck-engine-3.3.7 app/views/shared/_delete.erb
muck-engine-3.3.6 app/views/shared/_delete.erb
muck-engine-3.3.5 app/views/shared/_delete.erb
muck-engine-3.3.4 app/views/shared/_delete.erb
muck-engine-3.3.3 app/views/shared/_delete.erb
muck-engine-3.3.2 app/views/shared/_delete.erb
muck-engine-3.3.1 app/views/shared/_delete.erb