Sha256: e1f469a6f83a282249b1212b952f0e41ccd64f99d388c443d6d7cf1938494c23

Contents?: true

Size: 963 Bytes

Versions: 5

Compression:

Stored size: 963 Bytes

Contents

= form.fields_for :seo do |seo_fields|
  %h2
    = "SEO options"
  %p
    = "Here you can adjust (override) Title and meta tags for current page"
  %br

  - I18n.available_locales.each do |lang|
    - if I18n.available_locales.size > 1
      %h3
        = lang.capitalize

    = seo_fields.hidden_field :id, :value => seo_fields.object.id if seo_fields.object.present?
    = seo_fields.hidden_field :section, :value => controller_name

    - seo_fields.globalize_fields_for lang do |g|

      .form-group
        .input-group
          = g.label :title, class: "input-group-addon"
          = g.text_field :title, :class => 'form-control'

      .form-group
        .input-group
          = g.label :description, class: "input-group-addon"
          = g.text_field :description, :class => 'form-control'

      .form-group
        .input-group
          = g.label :keywords, class: "input-group-addon"
          = g.text_field :keywords, :class => 'form-control'

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
weeler-1.0.4 app/views/weeler/content/_object_seo.html.haml
weeler-1.0.3 app/views/weeler/content/_object_seo.html.haml
weeler-1.0.2 app/views/weeler/content/_object_seo.html.haml
weeler-1.0.1 app/views/weeler/content/_object_seo.html.haml
weeler-1.0.0 app/views/weeler/content/_object_seo.html.haml