Edition of page part for multiple languages.
This commit is contained in:
1 parent
0969f6b6cc
commit
2522cde2f5
13 files changed
+70
-18
No files matched your search
@@ -22,6 +22,14 @@ class Admin::PagePartsController < ApplicationController
|
||||
|
||||
def edit
|
||||
@part = PagePart.find(params[:id])
|
||||
case @part.kind
|
||||
when 'text'
|
||||
@i18n_variable = @part.i18n_variable
|
||||
@partial = 'edit_text'
|
||||
@part_locale = params[:part_locale] || I18n.locale.to_s
|
||||
when 'module'
|
||||
when 'snippet'
|
||||
end
|
||||
end
|
||||
|
||||
def create
|
||||
|
||||
Reference in new issue
Block a user