Sha256: 5347390361cf6f6b47e04719c697c3512bafb247bf9e8e36a75818187839aea0

Contents?: true

Size: 451 Bytes

Versions: 5

Compression:

Stored size: 451 Bytes

Contents

<% content_for :title, "Edit #{klass_name}" %>

<%= semantic_form_for @record do |f| %>
  <%= f.inputs do %>
    <%= f.inputs *accessible_attributes %>
  <% end %>
  <%= f.actions :submit %>
<% 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

5 entries across 5 versions & 1 rubygems

Version Path
smithycms-0.5.1 app/views/smithy/content_pieces/edit.html.erb
smithycms-0.5.0 app/views/smithy/content_pieces/edit.html.erb
smithycms-0.4.5 app/views/smithy/content_pieces/edit.html.erb
smithycms-0.4.4 app/views/smithy/content_pieces/edit.html.erb
smithycms-0.4.3 app/views/smithy/content_pieces/edit.html.erb