Sha256: 02364feba7518b7bbd4cd57ec57f2015f0ddbe91473d04ce491400df1dcaaccb

Contents?: true

Size: 1.45 KB

Versions: 5

Compression:

Stored size: 1.45 KB

Contents

<% content_for :header do %>
  <%= javascript_include_tag 'lightwindow' %>
  <%= stylesheet_link_tag 'lightwindow' %>
<% end -%>

<h1><%= @article.new_record? ? 'New' : 'Editing an' %> Article</h1>

<% form_for([:admin, @article], :html => {:id => 'has-assets-form'}) do |f| %>
  <%= f.error_messages %>
  
  <p>
    <%= f.label :title, 'Title*' %><br/>
    <%= f.text_field :title, :class => 'title' %>
  </p>

  <p>
    <%= f.label :body, 'Body*' %><br />
    <%= f.text_area :body, :class => 'editor' %>
  </p>
  <p>
    <%= f.label :description, 'Description*' %><br />
    <%= f.text_area :description, :rows => 3 %>
  </p>
  <p>
    <%= f.label :tag_list, 'Keywords (used by search engines) & Tags - comma separated*' %><br />
    <%= f.text_field :tag_list, :class => 'long' %>
  </p>
  <p>
    <%= f.label :category %>
    <%= f.collection_select :category_id, Category.all, :id, :title, :prompt => true %> 
  </p>
  <p>
    <%= f.label :allow_comments %><br />
    <%= f.check_box :allow_comments %>
  </p>

  <%= publish_select(f) %>

  <p class="submission">
    <%= preview_link(@article) %>
    <%= f.submit 'Publish', :name => 'article[publish]' %>
    <%= f.submit 'Save as draft', :name => 'article[hide]' %>
    or <%= link_to 'Cancel', admin_articles_path %>
  </p>
<% end %>


<% content_for :sub_content do %>

<%= asset_list(@article) %>

<h2>File Library</h2>
<%= asset_browser(true) %>

<h2>File Upload</h2>
<%= asset_upload_form %>

<%= flickr_select %>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
beef-articles-0.3.32 app/views/admin/articles/show.html.erb
beef-articles-0.3.33 app/views/admin/articles/show.html.erb
beef-articles-0.3.34 app/views/admin/articles/show.html.erb
beef-articles-0.4.0 app/views/admin/articles/show.html.erb
beef-articles-0.3.35 app/views/admin/articles/show.html.erb