!!! 5
%html
%head
%title WordPress.com authorizer
%link{:rel => "stylesheet",
:href => "http://www.blueprintcss.org/blueprint/screen.css",
:type => "text/css",
:media => "screen, projection"}
%body
.container
%h1 Example authorizer for WordPress.com REST API
%form(method="POST")
%table
- [[:client_id, "Client ID"], [:client_secret, "Client secret"], [:blog, 'WordPress.com Blog URL (optional)' ]].each do |name, title|
%tr
%td(style="text-align: right")
%label{ :for => name }= title
%td
%input.text{ :name=> name, :value => session[name] }
%tr
%td(colspan="2" style="text-align: center")
%input(type="submit" value="Get authorization!")