test/dummy/app/views/home/index.html.haml in polygallery-0.0.8 vs test/dummy/app/views/home/index.html.haml in polygallery-0.0.9
- old
+ new
@@ -12,21 +12,12 @@
.col-md-6
.panel.panel-default
.panel-body
%h2.lead New Event (with SimpleForm)
%hr
- = simple_form_for @event, :url => events_path, :method => :post, :multipart => true do |f|
- = f.error_notification
- = f.input :title, :autofocus => true
- = simple_fields_for_polygallery :gallery, f
- = f.submit :class => 'btn btn-success btn-lg btn-block'
+ = render 'events/simple_form'
.col-md-6
.panel.panel-default
.panel-body
%h2.lead New Event (without SimpleForm)
%hr
- = form_for @event do |f|
- .form-group
- %label.control-label Title
- .controls= f.text_field :title, :class => 'form-control'
- = fields_for_polygallery :gallery, f
- = f.submit :class => 'btn btn-success btn-lg btn-block'
+ = render 'events/form'
\ No newline at end of file