app/views/admin/posts/new.html.erb in spree_cms-0.0.3 vs app/views/admin/posts/new.html.erb in spree_cms-0.0.4
- old
+ new
@@ -1,22 +1,22 @@
+<%= render "shared/error_messages", :target => @post %>
+
<%= render :partial => 'sub_menu' %>
-<%= error_messages_for :post %>
-
-<% form_for(:post, :url => collection_url, :html => { :multipart => true }) do |f| %>
+<%= form_for(:post, :url => collection_url, :html => { :multipart => true }) do |f| %>
<fieldset>
- <% f.field_container :title do %>
+ <%= f.field_container :title do %>
<%= f.label :title, t("cms.title") %> <span class="required">*</span><br />
<%= f.text_field :title, :class => 'fullwidth title' %>
<%= f.error_message_on :title %>
<% end %>
<div class="yui-gb">
<div class="yui-u first">
- <% f.field_container :body_raw do %>
+ <%= f.field_container :body_raw do %>
<%= f.label :body_raw, t("cms.body")%> <span class="required">*</span><br />
<%= f.text_area :body_raw, {:cols => 120, :rows => 4, :class => 'fullwidth'} %>
<%= f.error_message_on :body_raw %>
<% end %>
@@ -27,10 +27,10 @@
<p>
<%= f.label :user_id, t("cms.author") %>
<%= f.collection_select :user_id, User.all, :id, :display_name, {:include_blank => false} %>
</p>
- <% f.field_container :permalink do %>
+ <%= f.field_container :permalink do %>
<%= f.label :permalink, t("cms.permalink") %><br />
<%= f.text_field :permalink, :class => 'fullwidth title' %>
<%= f.error_message_on :permalink %>
<% end %>