modify translation for journal_co_author_relation button
This commit is contained in:
parent
8e0632236b
commit
d20081157a
|
@ -28,7 +28,7 @@ class Panel::PersonalConference::Desktop::ConferenceCoAuthorRelationsController
|
||||||
|
|
||||||
if @conference_co_author_relation.save
|
if @conference_co_author_relation.save
|
||||||
newv = render_to_string partial: "show_form", object: @conference_co_author_relations
|
newv = render_to_string partial: "show_form", object: @conference_co_author_relations
|
||||||
render json: {success: true, msg: t("create_success") , newvalue: newv}.to_json
|
render json: {success: true, msg: t('create_success') , newvalue: newv}.to_json
|
||||||
else
|
else
|
||||||
error_msg = @conference_co_author_relation.errors.full_messages.join("<br />")
|
error_msg = @conference_co_author_relation.errors.full_messages.join("<br />")
|
||||||
render json: {success: false, msg: error_msg}.to_json
|
render json: {success: false, msg: error_msg}.to_json
|
||||||
|
@ -40,7 +40,7 @@ class Panel::PersonalConference::Desktop::ConferenceCoAuthorRelationsController
|
||||||
if @conference_co_author_relation.update_attributes(params[:conference_co_author_relation])
|
if @conference_co_author_relation.update_attributes(params[:conference_co_author_relation])
|
||||||
@conference_co_author_relations = ConferenceCoAuthorRelation.all
|
@conference_co_author_relations = ConferenceCoAuthorRelation.all
|
||||||
newv = render_to_string partial: "show_form", object: @conference_co_author_relations
|
newv = render_to_string partial: "show_form", object: @conference_co_author_relations
|
||||||
render json: {success: true, msg: t("update_success"), newvalue: newv}.to_json
|
render json: {success: true, msg: t('update_success'), newvalue: newv}.to_json
|
||||||
else
|
else
|
||||||
error_msg = @conference_co_author.errors.full_messages.join("<br />")
|
error_msg = @conference_co_author.errors.full_messages.join("<br />")
|
||||||
render json: {success: false, msg: error_msg}.to_json
|
render json: {success: false, msg: error_msg}.to_json
|
||||||
|
|
|
@ -28,7 +28,7 @@ class Panel::PersonalJournal::Desktop::JournalCoAuthorRelationsController < Appl
|
||||||
|
|
||||||
if @journal_co_author_relation.save
|
if @journal_co_author_relation.save
|
||||||
newv = render_to_string partial: "show_form", object: @journal_co_author_relations
|
newv = render_to_string partial: "show_form", object: @journal_co_author_relations
|
||||||
render json: {success: true, msg: "create_success", newvalue: newv}.to_json
|
render json: {success: true, msg: t("create_success"), newvalue: newv}.to_json
|
||||||
else
|
else
|
||||||
error_msg = @journal_co_author_relation.errors.full_messages.join("<br />")
|
error_msg = @journal_co_author_relation.errors.full_messages.join("<br />")
|
||||||
render json: {success: false, msg: error_msg}.to_json
|
render json: {success: false, msg: error_msg}.to_json
|
||||||
|
@ -40,7 +40,7 @@ class Panel::PersonalJournal::Desktop::JournalCoAuthorRelationsController < Appl
|
||||||
if @journal_co_author_relation.update_attributes(params[:journal_co_author_relation])
|
if @journal_co_author_relation.update_attributes(params[:journal_co_author_relation])
|
||||||
@journal_co_author_relations = JournalCoAuthorRelation.all
|
@journal_co_author_relations = JournalCoAuthorRelation.all
|
||||||
newv = render_to_string partial: "show_form", object: @journal_co_author_relations
|
newv = render_to_string partial: "show_form", object: @journal_co_author_relations
|
||||||
render json: {success: true, msg: "update_success", newvalue: newv}.to_json
|
render json: {success: true, msg: t("update_success"), newvalue: newv}.to_json
|
||||||
else
|
else
|
||||||
error_msg = @journal_co_author.errors.full_messages.join("<br />")
|
error_msg = @journal_co_author.errors.full_messages.join("<br />")
|
||||||
render json: {success: false, msg: error_msg}.to_json
|
render json: {success: false, msg: error_msg}.to_json
|
||||||
|
|
|
@ -7,5 +7,5 @@
|
||||||
-->
|
-->
|
||||||
<%= f.submit t("save"), class: "ini_input hp hh1 thmtxt thmc2", style: "margin-left: 10px;" %>
|
<%= f.submit t("save"), class: "ini_input hp hh1 thmtxt thmc2", style: "margin-left: 10px;" %>
|
||||||
<% if not @journal_co_author_relation.new_record? %>
|
<% if not @journal_co_author_relation.new_record? %>
|
||||||
<%= submit_tag t("back"), :type => "button", class: "bt-cancel-type ini_input hp hh1 thmtxt" %>
|
<%= submit_tag t("cancel"), :type => "button", class: "bt-cancel-type ini_input hp hh1 thmtxt" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Reference in New Issue