UI -- Repalce "Commerials" with "Materials".
This only replaces the UI facing wording. Specs will fail as they have not been updated yet.
This commit is contained in:
parent
1f7877ccd9
commit
9a1739e86e
8 changed files with 14 additions and 14 deletions
|
|
@ -39,7 +39,7 @@ module Admin
|
|||
|
||||
def destroy
|
||||
@commercial.destroy
|
||||
redirect_to admin_conference_commercials_path, notice: 'Commercial was successfully destroyed.'
|
||||
redirect_to admin_conference_commercials_path, notice: 'Materaisl were successfully removed.'
|
||||
end
|
||||
|
||||
def render_commercial
|
||||
|
|
@ -60,9 +60,9 @@ module Admin
|
|||
errors = Commercial.read_file(params[:file]) if params[:file]
|
||||
|
||||
if !params[:file]
|
||||
flash[:error] = 'Empty file detected while adding commercials to Event'
|
||||
flash[:error] = 'Empty file detected while adding materials to Event'
|
||||
elsif errors.all? { |_k, v| v.blank? }
|
||||
flash[:notice] = 'Successfully added commercials.'
|
||||
flash[:notice] = 'Successfully added materials.'
|
||||
else
|
||||
errors_text = ''
|
||||
errors_text << 'Unable to find event with ID: ' + errors[:no_event].join(', ') + '. ' if errors[:no_event].any?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue