Sha256: ad8f35f451d43fb12217313091ada62eea587c4bbe0643cf5f55d074570a557c

Contents?: true

Size: 1020 Bytes

Versions: 10

Compression:

Stored size: 1020 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.fields_for :translations do |g|
      = g.hidden_field :locale
      = g.hidden_field :id

      .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

10 entries across 10 versions & 1 rubygems

Version Path
weeler-2.1.0 app/views/weeler/content/_object_seo.html.haml
weeler-2.0.1 app/views/weeler/content/_object_seo.html.haml
weeler-2.0.0 app/views/weeler/content/_object_seo.html.haml
weeler-1.6.0 app/views/weeler/content/_object_seo.html.haml
weeler-1.5.4 app/views/weeler/content/_object_seo.html.haml
weeler-1.5.2 app/views/weeler/content/_object_seo.html.haml
weeler-1.5.1 app/views/weeler/content/_object_seo.html.haml
weeler-1.4.0 app/views/weeler/content/_object_seo.html.haml
weeler-1.2.0 app/views/weeler/content/_object_seo.html.haml
weeler-1.1.0 app/views/weeler/content/_object_seo.html.haml