Sha256: b83e51f31b71cf8c1e1f13e1016cfa583421d8b7f0dd5c1716b8b66714e29c8e
Contents?: true
Size: 656 Bytes
Versions: 20
Compression:
Stored size: 656 Bytes
Contents
<% content_for :title, "Edit #{klass_name}" %> <%= semantic_form_for @record do |f| %> <%= f.inputs do %> <%= f.inputs *accessible_attributes %> <% end %> <%= f.actions do %> <%= link_to([ klass_table_name ], class: 'btn btn-default') do %> <span class="fa fa-arrow-left"></span> <%= "Back to #{klass_name.pluralize}" %> <% end %> <%= f.action :submit %> <% end %> <% end %> <% content_for :related do %> <%= content_tag :p, link_to("Delete #{klass_name}", @record, method: :delete, data: { confirm: "Are you sure you want to delete this #{klass_name}?" }, class: 'btn btn-danger') if @record.persisted? %></p> <% end %>
Version data entries
20 entries across 20 versions & 1 rubygems