<%= form_for(@block) do |f| %> <% if @block.errors.any? %>
<%= pluralize(@block.errors.count, "error") %> prohibited this block from being saved:
<% @block.errors.full_messages.each do |message| %>
<%= message %>
<% end %>
<% end %> <%= f.label :input_css %>
<%= f.text_area :input_css %>
<%= f.label :input_javascript %>
<%= f.text_area :input_javascript %>
<%= f.label :input_html %>
<%= f.text_area :input_html %>
<%= f.label :featured %>
<%= f.check_box :featured %>
<%= f.label :index_position %>
<%= f.text_field :index_position %>
<%= f.submit %>
<% end %>