Permalink
Browse files

Fixed view of blog's admin panel

  • Loading branch information...
1 parent 3180081 commit 27911d73883d2876ab21b144c75bbefe9b3e3327 @ArturG ArturG committed Feb 26, 2014
Showing with 7 additions and 6 deletions.
  1. +7 −6 app/views/blog/admin.html.haml
@@ -1,12 +1,13 @@
%h1 Blog Admin
%h2 New Post
-= form_for @post, :url => blog_index_path do |f|
- = f.label :title
- = f.text_field :title
- = f.label :content
- = f.text_area :content
- = f.submit
+= simple_form_for @post, :url => blog_index_path do |f|
+ .inputs
+ = f.input :title
+ = f.input :content, :as => :text
+
+ .actions
+ = f.button :submit, :value => "Create Blog post", :class => "primary btn"
%h2 All Posts
%ul

0 comments on commit 27911d7

Please sign in to comment.