5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-15 03:51:41 +00:00
panel/app/views/i18n/_form.haml

19 lines
684 B
Text
Raw Normal View History

2018-02-19 20:00:21 +00:00
= form_tag site_i18n_edit_path(@site), method: :get, class: 'form-inline' do
%h1
= t('i18n.translating.from')
= select_tag 'from',
options_for_select(@options, @lang_from),
class: 'form-control'
= t('i18n.translating.to')
= select_tag 'to',
options_for_select(@options, @lang_to),
class: 'form-control'
= submit_tag t('i18n.change'), class: 'btn btn-info', name: nil
2018-02-09 21:28:27 +00:00
= form_tag site_i18n_path(@site), method: :post, class: 'form' do
2018-02-19 20:00:21 +00:00
= hidden_field 'i18n', 'lang_to', value: @lang_to
2018-02-09 21:28:27 +00:00
.form-group
= submit_tag t('i18n.save'), class: 'btn btn-success'
= render 'i18n/recursive', data: @site.data.dig(@lang_from), superkeys: []