Added images to the first and last step of the wizard

This commit is contained in:
Robin Ward
2016-09-20 13:25:56 -04:00
parent b0ee7930e8
commit 9938f9bd67
13 changed files with 30 additions and 6 deletions

View File

@ -9,6 +9,8 @@ class Wizard
return @wizard unless SiteSetting.wizard_enabled? && @wizard.user.try(:staff?)
@wizard.append_step('locale') do |step|
step.banner = "welcome.png"
languages = step.add_field(id: 'default_locale',
type: 'dropdown',
required: true,
@ -164,7 +166,9 @@ class Wizard
DiscourseEvent.trigger(:build_wizard, @wizard)
@wizard.append_step('finished')
@wizard.append_step('finished') do |step|
step.banner = "finished.png"
end
@wizard
end