Added sync button in personal plugin back_end
Conflicts: config/locales/en.yml config/locales/zh_tw.yml vendor/built_in_modules/personal_book/app/views/panel/personal_book/plugin/_profile.html.erb vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/plugin/_profile.html.erb vendor/built_in_modules/personal_journal/app/views/panel/personal_journal/plugin/_profile.html.erb
This commit is contained in:
parent
56ad1ddd91
commit
668c1e7d75
|
@ -322,12 +322,8 @@ def sync_conference_data
|
|||
puts "No conference by Teacher"
|
||||
end
|
||||
end
|
||||
respond_to do |format|
|
||||
|
||||
format.html
|
||||
format.json { render json: {"success"=>true}.to_json}
|
||||
|
||||
end
|
||||
redirect_to request.referer
|
||||
end
|
||||
|
||||
|
||||
|
@ -400,12 +396,7 @@ def sync_conference_data
|
|||
end
|
||||
|
||||
end
|
||||
respond_to do |format|
|
||||
|
||||
format.html
|
||||
format.json { render json: {"success"=>true}.to_json}
|
||||
|
||||
end
|
||||
redirect_to request.referer
|
||||
end
|
||||
|
||||
def sync_book_data
|
||||
|
@ -449,12 +440,7 @@ def sync_book_data
|
|||
end
|
||||
end
|
||||
end
|
||||
respond_to do |format|
|
||||
|
||||
format.html
|
||||
format.json { render json: {"success"=>true}.to_json}
|
||||
|
||||
end
|
||||
redirect_to request.referer
|
||||
end
|
||||
|
||||
|
||||
|
|
|
@ -352,6 +352,7 @@ en:
|
|||
complete_list : "Complete List"
|
||||
frontend_page : "Frontend Page"
|
||||
phone_number: "Phone Number"
|
||||
sync_data: "Synchronize"
|
||||
picture: Picture
|
||||
placeholder: Field Hint
|
||||
plugins: Plugins
|
||||
|
|
|
@ -355,6 +355,7 @@ zh_tw:
|
|||
complete_list : "完整列表"
|
||||
frontend_page : "前台呈現"
|
||||
phone_number: "電話"
|
||||
sync_data: "同步資料"
|
||||
picture: 圖片
|
||||
placeholder: 欄位提示文字
|
||||
plugins: 學術資訊
|
||||
|
|
3
vendor/built_in_modules/personal_book/app/views/panel/personal_book/plugin/_profile.html.erb
vendored
Normal file → Executable file
3
vendor/built_in_modules/personal_book/app/views/panel/personal_book/plugin/_profile.html.erb
vendored
Normal file → Executable file
|
@ -75,8 +75,7 @@
|
|||
<% if is_admin? %>
|
||||
<div class="bottomnav clearfix">
|
||||
<div class="action pull-right">
|
||||
<%= link_to content_tag(:i, nil, :class => 'icon-plus') + t('personal_plugins.sync_data'),admin_import_data_sync_book_data_path(:user_id => @user.id), :class => 'btn btn-primary' %>
|
||||
|
||||
<%= link_to content_tag(:i, nil, :class => 'icon-plus') + t('personal_plugins.sync_data'), admin_import_data_sync_book_data_path(:user_id => @user.id), :class => 'btn btn-primary' %>
|
||||
<%= link_to content_tag(:i, nil, :class => 'icon-plus') + t('personal_plugins.edit_brief_intro'), panel_personal_book_back_end_personal_book_intros_path(:user_id => @user.id), :class => 'btn btn-primary' %>
|
||||
<%= link_to content_tag(:i, nil, :class => 'icon-plus') + t('announcement.add_new'), new_panel_personal_book_back_end_writing_book_path(:user_id => @user.id), :class => 'btn btn-primary' %>
|
||||
</div>
|
||||
|
|
3
vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/plugin/_profile.html.erb
vendored
Normal file → Executable file
3
vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/plugin/_profile.html.erb
vendored
Normal file → Executable file
|
@ -75,11 +75,8 @@
|
|||
<% if is_admin? %>
|
||||
<div class="bottomnav clearfix">
|
||||
<div class="action pull-right">
|
||||
|
||||
<%= link_to content_tag(:i, nil, :class => 'icon-plus') + t('personal_plugins.sync_data'), admin_import_data_sync_conference_data_path(:user_id => @user.id), :class => 'btn btn-primary' %>
|
||||
|
||||
<%= link_to content_tag(:i, nil, :class => 'icon-plus') + t('personal_plugins.edit_brief_intro'), panel_personal_conference_back_end_personal_conference_intros_path(:user_id => @user.id), :class => 'btn btn-primary' %>
|
||||
|
||||
<%= link_to content_tag(:i, nil, :class => 'icon-plus') + t('announcement.add_new'), new_panel_personal_conference_back_end_writing_conference_path(:user_id => @user.id), :class => 'btn btn-primary' %>
|
||||
</div>
|
||||
<div class="pagination pagination-centered">
|
||||
|
|
1
vendor/built_in_modules/personal_journal/app/views/panel/personal_journal/plugin/_profile.html.erb
vendored
Normal file → Executable file
1
vendor/built_in_modules/personal_journal/app/views/panel/personal_journal/plugin/_profile.html.erb
vendored
Normal file → Executable file
|
@ -81,7 +81,6 @@
|
|||
<div class="bottomnav clearfix">
|
||||
<div class="action pull-right">
|
||||
<%= link_to content_tag(:i, nil, :class => 'icon-plus') + t('personal_plugins.sync_data'), admin_import_data_sync_journal_paper_data_path(:user_id => @user.id), :class => 'btn btn-primary' %>
|
||||
|
||||
<%= link_to content_tag(:i, nil, :class => 'icon-plus') + t('personal_plugins.edit_brief_intro'), panel_personal_journal_back_end_personal_journal_intros_path(:user_id => @user.id), :class => 'btn btn-primary' %>
|
||||
<%= link_to content_tag(:i, nil, :class => 'icon-plus') + t('announcement.add_new'), new_panel_personal_journal_back_end_writing_journal_path(:user_id => @user.id), :class => 'btn btn-primary' %>
|
||||
</div>
|
||||
|
|
Reference in New Issue