aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/admin/blog/posts/_form.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/admin/blog/posts/_form.html.erb')
-rw-r--r--app/views/admin/blog/posts/_form.html.erb25
1 files changed, 25 insertions, 0 deletions
diff --git a/app/views/admin/blog/posts/_form.html.erb b/app/views/admin/blog/posts/_form.html.erb
new file mode 100644
index 0000000..5d9f347
--- /dev/null
+++ b/app/views/admin/blog/posts/_form.html.erb
@@ -0,0 +1,25 @@
+<% form_for [:admin, @blog_post] do |f| -%>
+ <%= f.error_messages %>
+
+ <div class='field'>
+ <%= f.label :title -%>
+ <%= f.text_field :title, :class => 'larger widest' -%>
+ </div>
+
+ <div class='field'>
+ <%= f.label :body -%>
+ <%= f.text_area :body, :rows => 20, :class => 'wymeditor widest' -%>
+ </div>
+
+ <div class='field'>
+ <%= f.label :draft -%>
+ <%= f.check_box :draft -%>
+ </div>
+
+ <%= render :partial => "/shared/admin/form_actions",
+ :locals => {
+ :f => f,
+ :continue_editing => false,
+ :delete_title => t('admin.blogs.blogs.delete')
+ } %>
+<% end -%>