Sha256: 7342b745115fc1f72163917ec0739ba6a9d4d352e8d469ad677d49a5ea8b51bf

Contents?: true

Size: 1.49 KB

Versions: 10

Compression:

Stored size: 1.49 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>
<% if Category.exists? %>
  <p>
    <%= f.label :category %>
    <%= f.collection_select :category_id, Category.all, :id, :title, :prompt => true %> 
  </p>
<% end -%>
  <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

10 entries across 10 versions & 1 rubygems

Version Path
beef-articles-0.4.10 app/views/admin/articles/show.html.erb
beef-articles-0.4.9 app/views/admin/articles/show.html.erb
beef-articles-0.4.8 app/views/admin/articles/show.html.erb
beef-articles-0.4.7 app/views/admin/articles/show.html.erb
beef-articles-0.4.6 app/views/admin/articles/show.html.erb
beef-articles-0.4.5 app/views/admin/articles/show.html.erb
beef-articles-0.4.4 app/views/admin/articles/show.html.erb
beef-articles-0.4.3 app/views/admin/articles/show.html.erb
beef-articles-0.4.2 app/views/admin/articles/show.html.erb
beef-articles-0.4.1 app/views/admin/articles/show.html.erb