Sha256: c9649b3633c1c0c79dccb611c2a143ded9f6430cbcbb7e22e44f962e5a5115ea

Contents?: true

Size: 1.5 KB

Versions: 1

Compression:

Stored size: 1.5 KB

Contents

<% add_to_page_title "Editing: #{@record.to_title}" %>

<%= simple_form_for [:outpost, @record], html: { class: "form-horizontal" } do |f| %>
  <%= render 'errors', f: f %>
  <%= render 'form_fields', record: @record, f: f %>
  <%= render 'extra_fields', f: f %>
  <%= render "/outpost/shared/submit_row", record: @record %>
<% end %>

<% content_for :sidebar do %>
  <ul class="story-status unstyled">
    <li>
      Last Updated: <strong><%= format_date @record.updated_at, time: true %></strong>
    </li>

    <li>
      <% if @record.respond_to? :status_text %>
        <span class="<%=status_bootstrap_map[@record.status]%>"><%= @record.status_text %></span>
      <% end %>

      <% if @record.respond_to?(:published_at) && @record.respond_to?(:published?) && @record.published? %>
        on <strong><%= format_date @record.published_at, time: true %></strong>
      <% end %>
      
      <% if @record.respond_to?(:publish_alarm) && @record.publish_alarm.present? && @record.publish_alarm.fire_at.present? %>
        Alarm - <strong><%= format_date @record.publish_alarm.fire_at, time: true %></strong>
      <% end %>
    </li>
  </ul>
  
  <hr />
  
  <div id="fixed-sidebar" data-spy="affix" data-offset-top="140">
    <!-- Be sure to change the data-offset-top attribute on this element if you move it vertically -->
    <%= render "/outpost/shared/form_nav" %>
  </div>
<% end %>


<% content_for :footer do %>
  <script>
    preview = new outpost.Preview({baseUrl: '<%= @record.admin_show_path %>'});
  </script>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
outpost-cms-0.0.3 app/views/outpost/resource/edit.html.erb