Sha256: ce01e8323bdc1c6439f2b5a6fc621ffb42c7da3838bdf848cfdf9c76da7cf34b

Contents?: true

Size: 943 Bytes

Versions: 4

Compression:

Stored size: 943 Bytes

Contents

<% if params[:preview] == 'yup' %>
  <% content_for :head do -%>
  <%= javascript_include_tag '/admin/javascripts/jquery.js', '/admin/javascripts/application.js' %>
  <%= stylesheet_link_tag '/admin/stylesheets/external.css' %>
  <% end -%>
  <% post = Post.new(
    :body => form.text_area(:body, :class => 'wysiwyg'),
    :name => form.text_field(:name, :class => 'oversized text')
  ) -%>
  <div class="admin">
    <%= raw Mustache.render(::Template.post, post.as_json) %>
  </div>
<% else -%>
<%= render :partial => 'left' %>
<% content_for :head do -%>
<%= stylesheet_link_tag '/admin/stylesheets/wysiwyg.css' %>
<% end -%>
<% wrap_admin_form do -%>
  <div class="field">
    <%= form.label :name %>
    <%= form.text_field :name, :class => 'oversized text' %>
    <%= errors_on(:post, :name) %>
  </div>
  <div class="field">
    <%= form.label :body %>
    <%= form.text_area :body, :class => 'wysiwyg' %>
  </div>
<% end -%>
<% end -%>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
grandstand-0.2.4 app/views/admin/posts/_form.html.erb
grandstand-0.2.3 app/views/admin/posts/_form.html.erb
grandstand-0.2.2 app/views/admin/posts/_form.html.erb
grandstand-0.2.1 app/views/admin/posts/_form.html.erb