Skip to content

Commit

Permalink
Show update when editing an article
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Byron committed Jan 6, 2012
1 parent 4fc1f69 commit b0d7f40
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/views/articles/_form.html.haml
Expand Up @@ -3,16 +3,16 @@

.field
= f.label :title
= f.text_field :title, :tabindex => 1, :autofocus => true
= f.text_field :title, :autofocus => true
%span.hint Create a short and descriptive title for your post.
.field
= f.label :url
= f.text_field :url, :tabindex => 2
= f.text_field :url
%span.hint The url you want to link to.
.field
= f.label :body
= f.text_area :body, "data-preview" => true, :tabindex => 3
= f.text_area :body, "data-preview" => true
.control-bar
= f.submit 'Post!', :tabindex => 5
= f.submit @article.new_record? ? 'Post' : 'Update'
or
= link_to "get me out of here", root_path

0 comments on commit b0d7f40

Please sign in to comment.