Sha256: 9365f0e4bfd49a6a787f0ae5874780954144c68ef5b9bc6730fa035c251f5880

Contents?: true

Size: 1.57 KB

Versions: 2

Compression:

Stored size: 1.57 KB

Contents

.clearfix
  .btn-group.pull-left data-toggle="buttons-radio"
    button#show_all.btn type="button"
      = icon('list')
      = t 'admin.locators.all_terms'
    button#show_incomplete.btn type="button"
      = icon('exclamation-sign')
      = t 'admin.locators.incomplete'
    button#show_complete.btn type="button"
      = icon('ok')
      = t 'admin.locators.complete'

  button#translate_incomplete.btn.btn-danger.pull-left type="button" = t 'admin.locators.translate_incomplete'

- locale_file = Locator.prepare_data(@file)
table.table.table-bordered.table-striped
  thead
    tr
      th = t 'admin.locators.key'
      th = locale_file.locale
      th = I18n.default_locale
    tr
      - 3.times do
        th
          input.filter_field type='text' placeholder=t('admin.locators.filter')
  = form_tag(admin_locators_path, method: :put) do
    tbody#locale_data
      = hidden_field_tag 'edit_locale_name', locale_file.locale
      = hidden_field_tag 'main_locale_name', I18n.default_locale
      = hidden_field_tag 'filename', locale_file.filename

      - locale_file.flat_data.each do |keys, value|
        tr class=(value.blank? ? 'error' : 'ready')
          td.locale_keys
            div== keys.join(' > ')
            .btn.btn-mini.btn-inverse.auto_translate.pull-right google translate
          td = text_area_tag 'locale_hash' + keys.map{|k| "[#{k}]" }.join, value
          td = text_area_tag 'fake', t(keys.join('.'), locale: I18n.default_locale), disabled: true
    tbody
      tr
        td colspan=3 = submit_tag t('admin.form.save'), class: 'btn btn-primary'

= init_js('new Locator()')

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ab_admin-0.5.0 app/views/admin/locators/edit.html.slim
ab_admin-0.4.0 app/views/admin/locators/edit.html.slim