Sha256: 3898752c2533f175e76ebe90ce1d5d67bdb29fe19facd6439c358fcb14959c3a

Contents?: true

Size: 920 Bytes

Versions: 11

Compression:

Stored size: 920 Bytes

Contents

<% if controller.send(:admin_data_is_allowed_to_update?) %>
  <% @help = link_to('[?]','http://neerajdotname.github.com/admin_data/#delete_vs_destroy') %>
  
  <div class="block rounded">
    <h3>Modify Record</h3>
    <div style='padding-left:15px'>
      <p>
        <%= link_to 'Edit', edit_admin_data_on_k_path(:klass => klass.name.underscore, :id => model) %> 
      </p>
      <p>
        <%= link_to 'Delete', del_admin_data_on_k_path(:klass => klass.name.underscore, :id => model) ,
               { :confirm => ' You are deleting (not destroying) a record. Are you sure?', :method => :delete} %> 
        <%= @help %>      
      </p>
      <p>
        <%= link_to "Destroy", admin_data_on_k_path(:klass => klass.name.underscore, :id => model), 
              { :confirm => 'You are destroying a record. Are you sure?', :method => :delete} %>
        <%= @help %>      
      </p>
    </div>
  </div>
<% end %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
admin_data-1.0.10 app/views/admin_data/main/misc/_modify_record.html.erb
admin_data-1.0.9 app/views/admin_data/main/misc/_modify_record.html.erb
admin_data-1.0.8 app/views/admin_data/main/misc/_modify_record.html.erb
admin_data-1.0.7 app/views/admin_data/main/misc/_modify_record.html.erb
admin_data-1.0.6 app/views/admin_data/main/misc/_modify_record.html.erb
admin_data-1.0.5 app/views/admin_data/main/misc/_modify_record.html.erb
admin_data-1.0.4 app/views/admin_data/main/misc/_modify_record.html.erb
admin_data-1.0.3 app/views/admin_data/main/misc/_modify_record.html.erb
admin_data-1.0.2 app/views/admin_data/main/misc/_modify_record.html.erb
admin_data-1.0.1 app/views/admin_data/main/misc/_modify_record.html.erb
admin_data-1.0.0 app/views/admin_data/main/misc/_modify_record.html.erb