Sha256: f8e2601c75860119eb2b0c6c854305b8aa8abdd84f9b6b1b3244fb0a5f173547
Contents?: true
Size: 748 Bytes
Versions: 5
Compression:
Stored size: 748 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.id) %> </p> <p> <%= link_to 'Delete', admin_data_del_path(:klass => klass.name.underscore, :id => model.id) , { :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.id), { :confirm => 'You are destroying a record. Are you sure?', :method => :delete} %> </p> </div> </div> <% end %>
Version data entries
5 entries across 5 versions & 1 rubygems