<% content_for :action_nav do -%>
  <div id="page-nav"></div>
<% end %>

<% content_for :sidebar do %>
  <%= render :partial => 'shared_options' %>
  <div class="sgroup">
    <h3>Optional settings</h3>
    <dl class="sform">
    <% fields_for :article do |f| -%>
      <dt><label for="article_filters">Format with: </label></dt>
      <dd>
        <select name="article[filters][]" id="article_filters">
        <%= options_for_select(filter_options, (@article.filters || []).first.to_s) %>
      </select>
      <p><%= f.check_box :parse_macros %><label>Use macro filters</label></p>
    </dd>
    <dt><label for="article_permalink">Permanent link:</label></dt>
    <dd><%= f.text_field :permalink %></dd>
    <% end -%>
  </div>
<% end %>

<% content_for :form do -%>
  <%= start_form_tag({:action => 'create'}, {:id => 'article-form'}) %>
<% end -%>

<% fields_for :article do |f| -%>
  <%= render :partial => 'form', :object => f %>
  
  <p class="btns">
    <%= submit_tag 'Save Article' %> or 
    <%= link_to "cancel", :controller => "articles" %>
  </p>
<% end -%>

<% content_for :action_nav do -%>
  <div id="page-nav"></div>
<% end %>

<% content_for :sidebar do %>
  <%= render :partial => 'shared_options' %>
  <div class="sgroup">
    <h3>Optional settings</h3>
    <dl class="sform">
      <% fields_for :article do |f| -%>
        <dt><label for="article_filters">Format with: </label></dt>
        <dd>
          <select name="article[filters][]" id="article_filters">
          <%= options_for_select(filter_options, (@article.filters || []).first.to_s) %>
        </select>
        <p><%= f.check_box :parse_macros %><label>Use macro filters</label></p>
      </dd>
      <dt><label for="article_permalink">Permanent link:</label></dt>
      <dd><%= f.text_field :permalink %></dd>
      <% end -%>
    </dl>
  </div>
<% end %>

<% content_for :form do -%>
  <%= start_form_tag({:action => 'create'}, {:id => 'article-form'}) %>
<% end -%>

<% fields_for :article do |f| -%>
  <%= render :partial => 'form', :object => f %>
  
  <p class="btns">
    <%= submit_tag 'Save Article' %> or 
    <%= link_to "cancel", :controller => "articles" %>
  </p>
<% end -%>

Fix an invalid html error
Fix an invalid html error

git-svn-id: 4158f9403e16ea83fe8a6e07a45f1f3b56a747ab@1527 567b1171-46fb-0310-a4c9-b4bef9110e78
