Sha256: d222c97e596cd463bd38362b23139216a22a5e7f074234f35850bbf04ce76d59

Contents?: true

Size: 1.02 KB

Versions: 10

Compression:

Stored size: 1.02 KB

Contents

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

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

          - I18n.available_locales.each do |locale|
            %td.translation= 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}
              .container
                %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

10 entries across 10 versions & 1 rubygems

Version Path
awesome_translations-0.0.16 app/views/awesome_translations/groups/show.html.haml
awesome_translations-0.0.15 app/views/awesome_translations/groups/show.html.haml
awesome_translations-0.0.14 app/views/awesome_translations/groups/show.html.haml
awesome_translations-0.0.13 app/views/awesome_translations/groups/show.html.haml
awesome_translations-0.0.12 app/views/awesome_translations/groups/show.html.haml
awesome_translations-0.0.10 app/views/awesome_translations/groups/show.html.haml
awesome_translations-0.0.9 app/views/awesome_translations/groups/show.html.haml
awesome_translations-0.0.8 app/views/awesome_translations/groups/show.html.haml
awesome_translations-0.0.7 app/views/awesome_translations/groups/show.html.haml
awesome_translations-0.0.6 app/views/awesome_translations/groups/show.html.haml