<%= link_to 'New content', new_content_path, :class => 'button', :id => "add-content" %> <%= link_to "Back to Content List", contents_path, :class => 'button', :id => 'back-to-contents' %> <%= content_for :scripts do %> <% end %>

Edit content

<% form_for(@content) do |f| %>
<%= link_to 'Back', contents_path %> <%= f.submit 'Update' %>
<%= f.text_field :title, :placeholder => "Content Title", :class => 'title' %> <%= f.label :body %> <%= f.tinymce :body %>

<%= f.label :type %> <%= f.select :tipe, content_tipe_options %>

<%= f.label "DOM id" %> <%= f.text_field :dom_id %>

<%= f.label :position %> <%= f.text_field :position %>

<%= f.label :visible %> <%= f.check_box :visible%>

<% end %>
<%= render :partial => "preview", :locals => { :form => '.edit_content', :content => @content } %>