Sha256: 734b4644fd2180c42a8888821a1efbd5f289978da8235359dae99bbf05a673f3

Contents?: true

Size: 1.06 KB

Versions: 13

Compression:

Stored size: 1.06 KB

Contents

.header.container
  .row
    .col-lg-12.col-md-12
      .page-header
        %h3
          = @section.humanize
          section
.row
  %div{class: "col-lg-12 col-md-12"}
    = form_tag weeler_static_section_path(id: @section), {method: "put", class: "form-horizontal", role: "form"} do
      - @items.each do |key|
        - I18n.available_locales.each do |lang|
          - if I18n.available_locales.size > 1
            %h3
              = lang.capitalize
          - translation = I18n::Backend::Weeler::Translation.locale(lang).lookup(key).first
          .form-group
            = label_tag key, key.to_s.split('.').last.humanize, class: "col-lg-2 col-md-2 control-label"
            %div{class: "col-lg-10 col-md-10"}
              - if translation.html?
                = text_area_tag "translations[#{translation.id}]", translation.value, class: 'form-control redactor'
              - else
                = text_area_tag "translations[#{translation.id}]", translation.value, class: 'form-control'

      .form-group
        = submit_tag "Save", class: "btn btn-primary"

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
weeler-2.0.0 app/views/weeler/static_sections/show.html.haml
weeler-1.6.0 app/views/weeler/static_sections/show.html.haml
weeler-1.5.4 app/views/weeler/static_sections/show.html.haml
weeler-1.5.2 app/views/weeler/static_sections/show.html.haml
weeler-1.5.1 app/views/weeler/static_sections/show.html.haml
weeler-1.4.0 app/views/weeler/static_sections/show.html.haml
weeler-1.2.0 app/views/weeler/static_sections/show.html.haml
weeler-1.1.0 app/views/weeler/static_sections/show.html.haml
weeler-1.0.4 app/views/weeler/static_sections/show.html.haml
weeler-1.0.3 app/views/weeler/static_sections/show.html.haml
weeler-1.0.2 app/views/weeler/static_sections/show.html.haml
weeler-1.0.1 app/views/weeler/static_sections/show.html.haml
weeler-1.0.0 app/views/weeler/static_sections/show.html.haml