Sha256: 0964f87354aeca325b194cb88e9316a687ca2ec5475ffa136a334734b85ef0fb

Contents?: true

Size: 1.55 KB

Versions: 7

Compression:

Stored size: 1.55 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' + keys.map{|k| "[#{k}]" }.join, value
          td = text_area_tag 'fake', t(keys.join('.')), :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.2.3 app/views/admin/locators/edit.html.slim
ab_admin-0.2.2 app/views/admin/locators/edit.html.slim
ab_admin-0.2.1 app/views/admin/locators/edit.html.slim
ab_admin-0.2.0 app/views/admin/locators/edit.html.slim
ab_admin-0.1.2 app/views/admin/locators/edit.html.slim
ab_admin-0.1.1 app/views/admin/locators/edit.html.slim
ab_admin-0.1.0 app/views/admin/locators/edit.html.slim