Sha256: 2ee3e66884df6b149061afaee85727d4b87b40072fe75c9f7e202e987123d523

Contents?: true

Size: 1.73 KB

Versions: 7

Compression:

Stored size: 1.73 KB

Contents

<%= link_to 'Basic confirm', get_cow_path, id: 'basic-confirm', data: { text: 'nanana', confirm: 'Are you sure?' } %>
<%= link_to 'Delete confirm', delete_cow_path,method: :delete, id: 'method-confirm', data: { text: 'nanana', confirm: 'Are you sure?' } %>
<%= link_to 'Remote confirm', delete_cow_path,method: :delete, id: 'remote-confirm', data: { remote: 'true', 'sweet-alert-type' => 'info', text: 'nanana', confirm: 'Are you sure?' } %>
<%= link_to 'Custom confirm', get_cow_path, id: 'custom-confirm', data: { 
                                                                                                     :'confirm-button-text' => 'Im ready', 
                                                                                                     :'cancel-button-text' => 'No way', 
                                                                                                     :'confirm-button-color' => '#66CD00',
                                                                                                     :'sweet-alert-type' => 'info',
                                                                                                     text: 'This is a subtitle',
                                                                                                     confirm: 'Are you ready?'
                                                                                                    } %>

<%= form_tag(delete_cow_path, method: :delete) do %>
  <%= submit_tag 'Submit to delete cow', id: 'submit-delete', data: {confirm: 'Are you sure?'} %>
<% end %>

<%= form_tag(delete_cow_path, method: :delete) do %>
  <%= button_tag('Button_tag confirm', id: 'button-confirm', data: { text: 'nanana', confirm: 'Are you sure?' }) %>
<% end %>

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
sweet-alert-confirm-0.5.0 spec/dummy-rails3/app/views/confirms/index.html.erb
sweet-alert-confirm-turbo-0.4.1 spec/dummy-rails3/app/views/confirms/index.html.erb
sweet-alert-confirm-0.4.1 spec/dummy-rails3/app/views/confirms/index.html.erb
sweet-alert-confirm-0.4.0 spec/dummy-rails3/app/views/confirms/index.html.erb
sweet-alert-confirm-0.3.0 spec/dummy-rails3/app/views/confirms/index.html.erb
sweet-alert-confirm-0.2.1 spec/dummy-rails3/app/views/confirms/index.html.erb
sweet-alert-confirm-0.2.0 spec/dummy-rails3/app/views/confirms/index.html.erb