Sha256: fdb6a4b7cfaae98c95aef9d53bed5d163597bf389a99d6bd03f61f2eb5e08d57

Contents?: true

Size: 1.28 KB

Versions: 1

Compression:

Stored size: 1.28 KB

Contents

<%= render :partial => 'sub_menu' %>

<%= error_messages_for :post %>

<% form_for(:post,  :url => collection_url, :html => { :multipart => true }) do |f| %>
<fieldset>

  <% 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.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 %>

    </div>
    
    <div class="yui-u">
      
      <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.label :permalink, t("cms.permalink") %><br />
        <%= f.text_field :permalink, :class => 'fullwidth title'  %>
        <%= f.error_message_on :permalink %>
      <% end %>
      
    </div>

  </div>

  <%= render :partial => 'admin/shared/new_resource_links' %>

</fieldset>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spree_cms-0.0.3 app/views/admin/posts/new.html.erb