0
0
Fork 0
zero-blog/views/admin_post_change.haml

12 lines
369 B
Plaintext
Raw Normal View History

-unless @post.errors.nil?
-@post.errors.each do |error|
.error=error
%form{:action => "/admin/post/#{@post.id}", :method => :post}
.fields
=haml :admin_post_edit, :layout => nil
2011-08-09 11:06:53 +02:00
.buttons
%button{:type => :submit}="Update"
%button{:type => :submit, :formmethod => :get,
:formaction => '/admin/post'}="Back"
~haml :post_single, :layout => nil