sutty/app/views/i18n/_form.haml

7 lines
301 B
Text
Raw Normal View History

2018-02-09 21:28:27 +00:00
%h1= t('i18n.translating', from: t("i18n.#{@lang_from}"), to: t("i18n.#{@lang_to}"))
= form_tag site_i18n_path(@site), method: :post, class: 'form' do
.form-group
= submit_tag t('i18n.save'), class: 'btn btn-success'
= render 'i18n/recursive', data: @site.data.dig(@lang_from), superkeys: []