Sha256: 5cf55d3211decc089e637d32b9024d2d8422fc455817f0e40f9a26c4d0e2b352
Contents?: true
Size: 739 Bytes
Versions: 14
Compression:
Stored size: 739 Bytes
Contents
<% if controller.send(:is_allowed_to_update?) %> <div class="block rounded"> <h3>Modify Record</h3> <div style='padding-left:15px'> <p> <%= link_to 'Edit', admin_data_edit_path(:klass => klass.name.underscore, :id => model) %> </p> <p> <%= link_to 'Delete', admin_data_del_path(:klass => klass.name.underscore, :id => model) , { :confirm => ' You are deleting (not destroying) a record. Are you sure?', :method => :delete} %> </p> <p> <%= link_to "Destroy", admin_data_path(:klass => klass.name.underscore, :id => model), { :confirm => 'You are destroying a record. Are you sure?', :method => :delete} %> </p> </div> </div> <% end %>
Version data entries
14 entries across 14 versions & 1 rubygems