mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
flash alert to flash error
This commit is contained in:
parent
65c0cd7a73
commit
d44e1f7c24
9 changed files with 23 additions and 23 deletions
|
|
@ -17,7 +17,7 @@ module Admin
|
|||
redirect_to(admin_conference_targets_path(conference_id: @conference.short_title),
|
||||
notice: 'Target successfully created.')
|
||||
else
|
||||
flash[:alert] = "Creating target failed: #{@target.errors.full_messages.join('. ')}."
|
||||
flash[:error] = "Creating target failed: #{@target.errors.full_messages.join('. ')}."
|
||||
render :new
|
||||
end
|
||||
end
|
||||
|
|
@ -29,7 +29,7 @@ module Admin
|
|||
redirect_to(admin_conference_targets_path(conference_id: @conference.short_title),
|
||||
notice: 'Target successfully updated.')
|
||||
else
|
||||
flash[:alert] = "Target update failed: #{@target.errors.full_messages.join('. ')}."
|
||||
flash[:error] = "Target update failed: #{@target.errors.full_messages.join('. ')}."
|
||||
render :edit
|
||||
end
|
||||
end
|
||||
|
|
@ -40,7 +40,7 @@ module Admin
|
|||
notice: 'Target successfully destroyed.')
|
||||
else
|
||||
redirect_to(admin_conference_targets_path(conference_id: @conference.short_title),
|
||||
alert: 'Target was successfully destroyed.' \
|
||||
error: 'Target was successfully destroyed.' \
|
||||
"#{@target.errors.full_messages.join('. ')}.")
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue