Sha256: 05b564292c76cf79e1f6bcf9f2dbf7b61af9169b6404df4835666c2a5f04c83f

Contents?: true

Size: 929 Bytes

Versions: 2

Compression:

Stored size: 929 Bytes

Contents

%h1= "Show group: #{@group.name}"

= form_for :group, url: handler_group_path(@handler, @group), method: :put do |f|
  %table
    %thead
      %th Key
      - I18n.available_locales.each do |locale|
        %th= locale
    %tbody
      - @translations.each do |translation|
        %tr
          %td= translation.key

          - I18n.available_locales.each do |locale|
            %td= text_field "t", "#{translation.key}[#{locale}]", class: "translation-input", lang: locale, value: translation.value(locale: locale)

        - if translation.file_line_content?
          %tr.line-content-row
            %td.line-content{colspan: 1 + I18n.available_locales.length}
              %pre= translation.file_line_content
          %tr
            %td.line-spacer{colspan: 1 + I18n.available_locales.length}
      - if @translations.empty?
        %tr
          %td.error{colspan: 2} No translations were found.

  = f.submit "Save"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
awesome_translations-0.0.5 app/views/awesome_translations/groups/show.html.haml
awesome_translations-0.0.4 app/views/awesome_translations/groups/show.html.haml