more messages
This commit is contained in:
parent
5fdaa6425b
commit
b606caf2b8
@ -23,13 +23,13 @@ module Merged
|
|||||||
@card.move_down
|
@card.move_down
|
||||||
end
|
end
|
||||||
@card.save
|
@card.save
|
||||||
redirect_to section_cards_url(@card.section.id)
|
redirect_to section_cards_url(@card.section.id),notice: "Card moved"
|
||||||
end
|
end
|
||||||
|
|
||||||
def new
|
def new
|
||||||
@section = Section.find(params[:section_id])
|
@section = Section.find(params[:section_id])
|
||||||
new_card = @section.new_card
|
new_card = @section.new_card
|
||||||
redirect_to section_cards_url(@section.id)
|
redirect_to section_cards_url(@section.id) , notice: "Card created"
|
||||||
end
|
end
|
||||||
|
|
||||||
def destroy
|
def destroy
|
||||||
@ -50,7 +50,7 @@ module Merged
|
|||||||
@card.set_option(option.name, options[option.name])
|
@card.set_option(option.name, options[option.name])
|
||||||
end if options
|
end if options
|
||||||
@card.save
|
@card.save
|
||||||
redirect_to section_cards_url(@card.section.id)
|
redirect_to section_cards_url(@card.section.id) , notice: "Update ok"
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
@ -23,9 +23,9 @@ module Merged
|
|||||||
new_section = page.new_section(template)
|
new_section = page.new_section(template)
|
||||||
page.save
|
page.save
|
||||||
if(template.blank?) # new
|
if(template.blank?) # new
|
||||||
redirect_to section_select_template_url(new_section.id)
|
redirect_to section_select_template_url(new_section.id), notice: "New section created"
|
||||||
else # copy
|
else # copy
|
||||||
redirect_to section_url(new_section.id)
|
redirect_to section_url(new_section.id), notice: "Section copied"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -79,7 +79,7 @@ module Merged
|
|||||||
@section.set_option(option.name, options[option.name])
|
@section.set_option(option.name, options[option.name])
|
||||||
end if options
|
end if options
|
||||||
@section.save
|
@section.save
|
||||||
redirect_to :section
|
redirect_to :section , notice: "Update ok"
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
Loading…
Reference in New Issue
Block a user