mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 08:22:05 +02:00
Extract admin settings translations
This commit is contained in:
parent
711403e418
commit
4bbea0d58b
5 changed files with 22 additions and 5 deletions
|
@ -14,7 +14,7 @@ module Admin
|
|||
Setting[k] = v
|
||||
end
|
||||
|
||||
flash[:notice] = I18n.t('records_updated')
|
||||
flash[:notice] = t('.saved')
|
||||
redirect_to [:admin, :settings]
|
||||
else
|
||||
flash[:alert] = @errors.values.uniq.join(", ")
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
= render 'shared/title', name: t('.title')
|
||||
.page-header
|
||||
.h1
|
||||
= t('.title')
|
||||
|
||||
= form_tag [:admin, :settings] do
|
||||
.panel.panel-default
|
||||
|
@ -93,4 +95,4 @@
|
|||
|
||||
.row
|
||||
.col-md-12.text-right
|
||||
%button.btn.btn-primary=t('.submit_btn')
|
||||
= submit_tag(t('.save_btn'), class: 'btn btn-success', name: nil)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue