app/views/admin/locators/edit.html.slim in ab_admin-0.2.3 vs app/views/admin/locators/edit.html.slim in ab_admin-0.3.0
- old
+ new
@@ -21,23 +21,23 @@
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
+ = 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
+ td = text_area_tag 'locale_hash' + 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'
+ td colspan=3 = submit_tag t('admin.form.save'), class: 'btn btn-primary'
= init_js('new Locator()')
\ No newline at end of file