Sha256: 7c31f3206b7eebcd4c6a589de57cd29bb6edb39ca6ccbd1ddbbf66d662bd196a

Contents?: true

Size: 1.62 KB

Versions: 6

Compression:

Stored size: 1.62 KB

Contents

  <% if @publication.errors.any? %>
    <div id="error_explanation">
      <h2>Please correct the following errors::</h2>
      <ul>
      <% @publication.errors.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
      <br style="clear: both;" />
    </div>
    <br style="clear: both;" />
  <% end %>

  <fieldset class="form_container">
    <%= legend_tag 'About This Publication' -%>

    <div class="form_column">
      <%= f.text_field :name, :help => 'The name you provide will be used in the page title for the publcation.' -%>
      <%= f.text_field :slug, :label => 'URL', :value => @publication.path, :help => 'Enter the desired web address for this publcation, e.g. /press-releases/' -%>
      <%= f.select :content_type, Publication::CONTENT_TYPES, :include_blank => 'Select...' -%>
      <%= f.check_box :rss_feed_enabled, :label => "RSS Feed", :inline_label => "Enabled", :help => 'Click this checkbox to enable an RSS news feed for this publication.' -%><br />
      <%= f.check_box :pdf_enabled, :label => "Auto-Create PDFs", :inline_label => "Enabled", :help => 'Click this checkbox to automatically create PDF versions of content in this publication.' -%>
    </div>
    <div class="form_column">
      <%= f.text_area :description, :help => 'The description you provide below will be used as introductory content on the main page for this publication.' -%>
    </div>
    <br style="clear: both;" />
    <div class="link_block">
      <%= f.submit 'Save', :class => 'link_button' -%>
      <%= link_to 'Cancel', admin_publications_path, :class => 'link_button' -%>
    </div>
  </fieldset>

  <br style="clear: both;" />

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
editorial_logic-1.4.5 app/views/admin/publications/_form.html.erb
editorial_logic-1.4.4 app/views/admin/publications/_form.html.erb
editorial_logic-1.4.3 app/views/admin/publications/_form.html.erb
editorial_logic-1.4.2 app/views/admin/publications/_form.html.erb
editorial_logic-1.4.1 app/views/admin/publications/_form.html.erb
editorial_logic-1.4.0 app/views/admin/publications/_form.html.erb