app/views/sitges/styleguides/show.html.haml in sitges-0.2.1 vs app/views/sitges/styleguides/show.html.haml in sitges-0.2.2

- old
+ new

@@ -172,48 +172,20 @@ .notice %h3 Form styles %ul %li Basic form styles + %li Use simple_form gem from https://github.com/plataformatec/simple_form.git + %li And compass gem -= form_for '' do |f| - %table - %tr - %td.label= f.label :version, 'Version:' - %td.text_field= f.text_field :version - %tr - %td.label= f.label :author, 'Author:' - %td.text_field= f.text_field :author - %tr - %td.label= f.label :pass, 'Pass:' - %td.text_field= f.password_field :pass - %tr - %td.label= f.label :search, 'Search:' - %td.text_field= f.search_field :search - %tr - %td.label= f.label :telephone, 'Telephone:' - %td.text_field= f.telephone_field :telephone - %tr - %td.label= f.label :admin, 'Admin?:' - %td= f.check_box :admin - %tr - %td.label= f.label :radio, 'Radio:' - %td= f.radio_button :radio, 'yes' - %tr - %td.label_text_area= f.label :biography, 'Biography:' - %td.text_area= f.text_area :biography - %tr - %td.label_text_area= f.label :date, 'Date:' - %td.select= f.date_select :date, :start_year => 1995 - %tr - %td.label_text_area= f.label :email, 'Tu correo electrónico:' - %td.text_field= f.email_field :email - %tr - %td - %td.warning_dialog ¿Por qué tengo que dar esta información? - %tr - %td - %td.submit= f.submit "Edit this article" += simple_form_for '' do |f| + = f.input :username, :hint => 'Your username please' + = f.input :password + = f.hint 'No special characters, please!' + = f.input :description, :as => :text + = f.input :accepts, :as => :radio + = f.input :date_of_birth, :as => :date, :start_year => Date.today.year - 90, :end_year => Date.today.year - 12, :discard_day => true, :order => [:month, :year], :required => false + = f.button :submit .clearfix %hr .notice