app/views/admin/locators/edit.html.slim in ab_admin-0.8.3 vs app/views/admin/locators/edit.html.slim in ab_admin-0.9.0

- old
+ new

@@ -10,33 +10,34 @@ = icon('ok') = t 'admin.locators.complete' button#translate_incomplete.btn.btn-danger.pull-left type="button" = t 'admin.locators.translate_incomplete' +- master_locale = params[:master_locale].try!(:to_sym) || I18n.default_locale - 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 + th= t 'admin.locators.key' + th= locale_file.locale + th= master_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 'main_locale_name', master_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 + td= text_area_tag 'locale_hash' + keys.map{|k| "[#{k}]" }.join, value + td= text_area_tag 'fake', t(keys.join('.'), locale: master_locale), disabled: true tbody tr td colspan=3 = submit_tag t('admin.form.save'), class: 'btn btn-primary' = init_js('new Locator()') \ No newline at end of file