Wizard: Step 1

This commit is contained in:
Robin Ward
2016-08-25 13:14:56 -04:00
parent 0471ad393c
commit 3a4615c205
50 changed files with 1103 additions and 80 deletions

View File

@@ -3225,5 +3225,9 @@ en:
add: "Add"
filter: "Search (URL or External URL)"
# WARNING! Keys added here will be in the admin_js section.
# Keys that don't belong in admin should be placed earlier in the file.
wizard_js:
wizard:
back: "Back"
next: "Next"
step: "Step %{current} of %{total}"

View File

@@ -3212,3 +3212,25 @@ en:
staff_tag_disallowed: "The tag \"%{tag}\" may only be applied by staff."
staff_tag_remove_disallowed: "The tag \"%{tag}\" may only be removed by staff."
rss_by_tag: "Topics tagged %{tag}"
wizard:
title: "Discourse Setup Wizard"
step:
forum_title:
title: "Welcome to your Discourse forum!"
description: "There are a few things you'll need to configure before inviting more people to the party. Don't worry, you can come back and change these settings at any time, so don't overthink it."
fields:
title:
label: "Enter a title for your forum"
placeholder: "Jane's Hangout"
site_description:
label: "Describe your forum in one sentence"
placeholder: "A place for Jane and her friends to discuss cool stuff"
contact:
title: "Don't be a Stranger"
fields:
contact_email:
label: "Contact E-mail"
placeholder: "name@example.com"

View File

@@ -53,10 +53,10 @@ Discourse::Application.routes.draw do
resources :forums
get "srv/status" => "forums#status"
namespace :wizard, constraints: StaffConstraint.new do
get "" => "wizard#index"
get "qunit" => "wizard#qunit"
end
get "wizard" => "wizard#index"
get "wizard/qunit" => "wizard#qunit"
get 'wizard/steps' => 'steps#index'
put 'wizard/steps/:id' => "steps#update"
namespace :admin, constraints: StaffConstraint.new do
get "" => "admin#index"