Sha256: dff04da80f7683a43c08712abc91642b36b1fa5d59826be07d260f25cf01a39a
Contents?: true
Size: 726 Bytes
Versions: 1
Compression:
Stored size: 726 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', edit_path(:klass => klass.name.underscore, :id => model.id) %> </p> <p> <%= link_to 'Delete', 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
the_jobbook_admin_data-1.3.0a | app/views/admin_data/crud/misc/_modify_record.html.erb |