-
-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
52 additions
and
32 deletions.
There are no files selected for viewing
12 changes: 0 additions & 12 deletions
12
app/controllers/spree/admin/general_settings_controller_decorator.rb
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
module Spree | ||
module Admin | ||
class LocalesController < Spree::Admin::BaseController | ||
def show | ||
end | ||
|
||
def update | ||
params.each do |name, value| | ||
next unless SolidusI18n::Config.has_preference? name | ||
SolidusI18n::Config[name] = value.map(&:to_sym) | ||
end | ||
redirect_to admin_locale_path | ||
end | ||
end | ||
end | ||
end |
20 changes: 0 additions & 20 deletions
20
app/overrides/spree/admin/general_settings/edit/localization_settings.html.erb.deface
This file was deleted.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
app/overrides/spree/admin/shared/_configuration_menu/add_i18n_tab.html.erb.deface
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<!-- insert_bottom '[data-hook=admin_configurations_sidebar_menu]'--> | ||
<%= tab :locales, url: spree.admin_locale_path %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<%= render 'spree/admin/shared/configuration_menu' %> | ||
|
||
<% admin_breadcrumb("locales") %> | ||
|
||
<%= form_tag admin_locale_path, method: :patch do %> | ||
<div class="panel panel-default panel-localization"> | ||
<div class="panel-heading"> | ||
<h1 class="panel-title"> | ||
<%= Spree.t(:'i18n.localization_settings') %> | ||
</h1> | ||
</div> | ||
|
||
<div class="panel-body" data-hook="localization_settings_body"> | ||
<div class="form-group"> | ||
<label for="available_locales_"> | ||
<%= Spree.t(:'i18n.available_locales') %> | ||
</label> | ||
<%= select_available_locales %> | ||
<p class="help-block"> | ||
<%= Spree.t(:'i18n.locales_displayed_on_frontend_select_box') %> | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="form-buttons filter-actions actions" data-hook="buttons"> | ||
<%= button Spree.t('actions.update') %> | ||
</div> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters