Sha256: 01aa6aa33fb14da00d1ed8b7c88d8970dca06bb6fb256acba19f3f8586c3b7b9

Contents?: true

Size: 1.08 KB

Versions: 2

Compression:

Stored size: 1.08 KB

Contents

<%= post.error_messages %>
<%= post.fields_for @revision do |revision| %>
  <%= revision.text_field :title, :label =>  t(".title"), :class =>  "span6" %>
  <%= revision.text_area :content, :label =>  t(".content"), :class =>  "span12 ckeditor" %>
  <%= revision.text_field :url, :label =>  raw(sprintf(t(".url.caption"), "#{DateTime.now.year}/#{t(".url.generated_title")}",monologue.root_path)) %>
  <%= revision.text_field :published_at, :label =>  t(".published_at"), :data => {:datepicker => "datepicker"}, :value => revision.object.published_at.nil? ? "" : revision.object.published_at.strftime("%Y-%m-%d") %>
<% end %>

<%= post.text_field :tag_list, :label =>  raw(t(".tags")),  :value => tag_list_for(post.object.tags)%>
<%= post.check_box :published, :label =>  t(".published") %>
<%= post.submit t(".save"), :class =>  "btn btn-large btn-primary" %> <a href="<%= @revision.full_url %>" target="_blank" class="btn btn-large"><%= t(".preview") %></a>

<script>
  if($.fn.datepicker.defaults_<%= I18n.locale %>){
    $.fn.datepicker.defaults = $.fn.datepicker.defaults_<%= I18n.locale %>;
  }
</script>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
monologue-0.2.0 app/views/monologue/admin/posts/_form.html.erb
monologue-0.2.0.beta3 app/views/monologue/admin/posts/_form.html.erb