Sha256: 5eca324439b81478e242562343c0ba6f97eeb6c9c847def27a4850a8ab80c09d

Contents?: true

Size: 1.13 KB

Versions: 5

Compression:

Stored size: 1.13 KB

Contents

.page-header
  %h1
    = link_to 'Get the Gem!', '#', :class => 'btn btn-success pull-right'
    Polygallery Demonstrations

- flash.each do |name, msg|
  = content_tag :div, :class => "alert alert-#{name == :error ? "danger" : "success" } alert-dismissable", :style => 'margin-top:20px;' do
    %button.close{:type => "button", :data => {:dismiss => "alert"}, :aria => {:hidden => "true"} } ×
    = msg

.row
  .col-md-6
    .panel.panel-default
      .panel-body
        %h2.lead New Event (with SimpleForm)
        %hr
        = simple_form_for @event 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'
  .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'

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
polygallery-0.0.5 test/dummy/app/views/home/index.html.haml
polygallery-0.0.4 test/dummy/app/views/home/index.html.haml
polygallery-0.0.3 test/dummy/app/views/home/index.html.haml
polygallery-0.0.2 test/dummy/app/views/home/index.html.haml
polygallery-0.0.1 test/dummy/app/views/home/index.html.haml