0
0
zero-blog/views/admin_post_change.haml
Gibheer 63c0d87b6f - reordered some urls
- splitted the edit and create template
2011-07-01 10:45:55 +02:00

11 lines
342 B
Plaintext

-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
.buttons
%button{:type => :submit}="Update"
%button{:type => :submit, :formmethod => :get,
:formaction => '/admin/post'}="Back"