Sha256: 2356eebccf151134afcf2aae19dac58e4ce865de93ece01457fdfc04b4bb3a98

Contents?: true

Size: 506 Bytes

Versions: 3

Compression:

Stored size: 506 Bytes

Contents

= form_for(@adspace, :html => {:class => 'form-horizontal'}) do |f|
  - if @adspace.errors.any?
    #error_explanation
      %h2
        = pluralize(@adspace.errors.count, "error")
        prohibited this adspace from being saved:
      %ul
        - @adspace.errors.full_messages.each do |msg|
          %li= msg
  %legend= @title
  .control-group
    = f.label :name, :class => 'control-label'
    .controls
      = f.text_field :name
  .form-actions
    = f.submit "Submit", :class => 'btn btn-primary'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails_adserver-1.0.2 app/views/rails_adserver/adspaces/_form.html.haml
rails_adserver-1.0.1 app/views/rails_adserver/adspaces/_form.html.haml
rails_adserver-1.0.0 app/views/rails_adserver/adspaces/_form.html.haml