Sha256: 01b78389a92b2125dd2c432938dc8a0786adc3f5e2e6aa5ce5aa3513311d0be5

Contents?: true

Size: 1.24 KB

Versions: 2

Compression:

Stored size: 1.24 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?
                - if ::Weeler.use_rails_rich_text_editor
                  = rich_text_area_tag "translations[#{translation.id}]", translation.value
                - else
                  = text_area_tag "translations[#{translation.id}]", translation.value, class: 'form-control html'
              - else
                = text_area_tag "translations[#{translation.id}]", translation.value, class: 'form-control'

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
weeler-2.1.0 app/views/weeler/static_sections/show.html.haml
weeler-2.0.1 app/views/weeler/static_sections/show.html.haml