Sha256: e894328a1d1b96a4f2b35ee3c9562e245bac661cc2fb4d63f703f63da3d0c704

Contents?: true

Size: 1.66 KB

Versions: 7

Compression:

Stored size: 1.66 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
      - [:key_contains, :edit_locale_contains, :main_locale_contains].each do |param|
        th
          input.filter_field type='text' value=params[param] 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

7 entries across 7 versions & 1 rubygems

Version Path
ab_admin-0.8.3 app/views/admin/locators/edit.html.slim
ab_admin-0.8.2 app/views/admin/locators/edit.html.slim
ab_admin-0.8.1 app/views/admin/locators/edit.html.slim
ab_admin-0.8.0 app/views/admin/locators/edit.html.slim
ab_admin-0.7.0 app/views/admin/locators/edit.html.slim
ab_admin-0.6.1 app/views/admin/locators/edit.html.slim
ab_admin-0.6.0 app/views/admin/locators/edit.html.slim