2011-07-01 10:45:55 +02:00
|
|
|
-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
|