2014-01-03 13:32:13 -05:00
|
|
|
extends /templates/base
|
|
|
|
|
|
|
|
block content
|
|
|
|
|
|
|
|
h2(data-i18n="account_settings.title") Account Settings
|
|
|
|
|
|
|
|
if me.get('anonymous')
|
|
|
|
p(data-i18n="account_settings.not_logged_in") Log in or create an account to change your settings.
|
|
|
|
|
|
|
|
else
|
2014-04-10 14:58:51 -04:00
|
|
|
#save-button-container
|
|
|
|
button.btn#save-button.disabled.secret(data-i18n="account_settings.autosave") Changes Save Automatically
|
2014-01-03 13:32:13 -05:00
|
|
|
|
2014-01-27 19:07:17 -05:00
|
|
|
ul.nav.nav-pills#settings-tabs
|
2014-01-03 13:32:13 -05:00
|
|
|
li
|
|
|
|
a(href="#general-pane", data-toggle="tab", data-i18n="account_settings.me_tab") Me
|
|
|
|
li
|
|
|
|
a(href="#picture-pane", data-toggle="tab", data-i18n="account_settings.picture_tab") Picture
|
|
|
|
li
|
|
|
|
a(href="#wizard-pane", data-toggle="tab", data-i18n="account_settings.wizard_tab") Wizard
|
|
|
|
li
|
|
|
|
a(href="#password-pane", data-toggle="tab", data-i18n="account_settings.password_tab") Password
|
|
|
|
li
|
|
|
|
a(href="#email-pane", data-toggle="tab", data-i18n="account_settings.emails_tab") Emails
|
2014-04-07 20:58:02 -04:00
|
|
|
if showsJobProfileTab
|
2014-04-05 20:05:03 -04:00
|
|
|
li
|
|
|
|
a(href="#job-profile-pane", data-toggle="tab", data-i18n="account_settings.job_profile_tab") Job Profile
|
2014-01-03 13:32:13 -05:00
|
|
|
|
|
|
|
.tab-content#settings-panes
|
|
|
|
#general-pane.tab-pane
|
|
|
|
p
|
2014-01-27 21:44:05 -05:00
|
|
|
.form
|
2014-01-27 19:07:17 -05:00
|
|
|
.form-group
|
2014-01-19 11:00:41 -05:00
|
|
|
label.control-label(for="name", data-i18n="general.name") Name
|
2014-04-09 19:46:44 -04:00
|
|
|
input#name.form-control(name="name", type="text", value="#{me.get('name') || ''}")
|
2014-01-27 19:07:17 -05:00
|
|
|
.form-group
|
2014-01-19 11:00:41 -05:00
|
|
|
label.control-label(for="email", data-i18n="general.email") Email
|
2014-01-27 19:07:17 -05:00
|
|
|
input#email.form-control(name="email", type="text", value="#{me.get('email')}")
|
2014-01-03 17:28:00 -05:00
|
|
|
if !isProduction
|
2014-01-27 19:59:34 -05:00
|
|
|
.form-group.checkbox
|
2014-03-08 19:36:48 -05:00
|
|
|
label(for="email", data-i18n="account_settings.admin") Admin
|
2014-04-18 12:53:28 -04:00
|
|
|
input#admin(name="admin", type="checkbox", checked=me.get('permissions').indexOf('admin') != -1)
|
2014-01-03 17:28:00 -05:00
|
|
|
|
2014-01-03 13:32:13 -05:00
|
|
|
|
|
|
|
#picture-pane.tab-pane
|
2014-04-09 19:46:44 -04:00
|
|
|
h3(data-i18n="account_settings.upload_picture") Upload a picture
|
|
|
|
#picture-treema
|
|
|
|
.gravatar-fallback
|
|
|
|
img(src=me.getPhotoURL(256), alt="Gravatar", title="Gravatar fallback image")
|
|
|
|
|
2014-01-03 13:32:13 -05:00
|
|
|
#wizard-pane.tab-pane
|
2014-02-24 12:06:22 -05:00
|
|
|
#wizard-settings-view
|
2014-01-03 13:32:13 -05:00
|
|
|
|
|
|
|
#password-pane.tab-pane
|
|
|
|
p
|
2014-01-27 21:44:05 -05:00
|
|
|
.form
|
2014-01-27 19:07:17 -05:00
|
|
|
.form-group
|
2014-01-03 13:32:13 -05:00
|
|
|
label.control-label(for="password", data-i18n="account_settings.new_password") New Password
|
2014-01-27 19:07:17 -05:00
|
|
|
input#password.form-control(name="password", type="password")
|
|
|
|
.form-group
|
2014-01-03 13:32:13 -05:00
|
|
|
label.control-label(for="password2", data-i18n="account_settings.new_password_verify") Verify
|
2014-01-27 19:07:17 -05:00
|
|
|
input#password2.form-control(name="password2", type="password")
|
2014-01-03 13:32:13 -05:00
|
|
|
|
|
|
|
#email-pane.tab-pane
|
|
|
|
h3(data-i18n="account_settings.email_subscriptions") Email Subscriptions
|
|
|
|
|
|
|
|
p
|
2014-01-27 21:44:05 -05:00
|
|
|
.form
|
2014-01-27 19:07:17 -05:00
|
|
|
.form-group.checkbox
|
2014-01-03 13:32:13 -05:00
|
|
|
label.control-label(for="email_announcement", data-i18n="account_settings.email_announcements") Announcements
|
2014-01-27 19:07:17 -05:00
|
|
|
input#email_announcement(name="email_announcement", type="checkbox", checked=subs.announcement)
|
|
|
|
span.help-block(data-i18n="account_settings.email_announcements_description") Get emails on the latest news and developments at CodeCombat.
|
2014-01-17 12:53:17 -05:00
|
|
|
|
2014-01-27 21:44:05 -05:00
|
|
|
.form
|
2014-01-27 19:07:17 -05:00
|
|
|
.form-group.checkbox
|
2014-01-17 12:53:17 -05:00
|
|
|
label.control-label(for="email_notification", data-i18n="account_settings.email_notifications") Notifications
|
2014-01-27 19:07:17 -05:00
|
|
|
input#email_notification(name="email_notification", type="checkbox", checked=subs.notification)
|
|
|
|
span.help-block(data-i18n="account_settings.email_notifications_description") Get periodic notifications for your account.
|
2014-01-03 13:32:13 -05:00
|
|
|
hr
|
|
|
|
|
2014-01-27 19:07:17 -05:00
|
|
|
h4(data-i18n="account_settings.contributor_emails") Contributor Class Emails
|
|
|
|
span(data-i18n="account_settings.contribute_prefix") We're looking for people to join our party! Check out the
|
|
|
|
a(href="/contribute", data-i18n="account_settings.contribute_page") contribute page
|
|
|
|
span(data-i18n="account_settings.contribute_suffix") to find out more.
|
2014-01-03 13:32:13 -05:00
|
|
|
|
2014-01-27 21:44:05 -05:00
|
|
|
.form
|
2014-01-27 19:07:17 -05:00
|
|
|
.form-group.checkbox
|
2014-01-11 11:25:04 -05:00
|
|
|
label.control-label(for="email_developer")
|
2014-01-12 05:20:07 -05:00
|
|
|
span(data-i18n="classes.archmage_title")
|
2014-01-11 11:25:04 -05:00
|
|
|
| Archmage
|
2014-01-27 19:07:17 -05:00
|
|
|
|
|
2014-01-12 05:20:07 -05:00
|
|
|
span(data-i18n="classes.archmage_title_description")
|
2014-01-11 11:25:04 -05:00
|
|
|
| (Coder)
|
2014-01-27 19:07:17 -05:00
|
|
|
input#email_developer(name="email_developer", type="checkbox", checked=subs.developer)
|
|
|
|
span(data-i18n="contribute.archmage_subscribe_desc").help-block Get emails about general news and announcements about CodeCombat.
|
2014-01-03 13:32:13 -05:00
|
|
|
|
2014-01-27 19:07:17 -05:00
|
|
|
.form-group.checkbox
|
2014-01-11 11:25:04 -05:00
|
|
|
label.control-label(for="email_level_creator")
|
2014-01-12 05:20:07 -05:00
|
|
|
span(data-i18n="classes.artisan_title")
|
2014-01-11 11:25:04 -05:00
|
|
|
| Artisan
|
2014-01-27 19:07:17 -05:00
|
|
|
|
|
2014-01-12 05:20:07 -05:00
|
|
|
span(data-i18n="classes.artisan_title_description")
|
2014-01-11 11:25:04 -05:00
|
|
|
| (Level Builder)
|
2014-01-27 19:07:17 -05:00
|
|
|
input#email_level_creator(name="email_level_creator", type="checkbox", checked=subs.level_creator)
|
|
|
|
span(data-i18n="contribute.artisan_subscribe_desc").help-block Get emails on level editor updates and announcements.
|
2014-01-03 13:32:13 -05:00
|
|
|
|
2014-01-27 19:07:17 -05:00
|
|
|
.form-group.checkbox
|
2014-01-11 11:25:04 -05:00
|
|
|
label.control-label(for="email_tester")
|
2014-01-12 05:20:07 -05:00
|
|
|
span(data-i18n="classes.adventurer_title")
|
2014-01-11 11:25:04 -05:00
|
|
|
| Adventurer
|
2014-01-27 19:07:17 -05:00
|
|
|
|
|
2014-01-12 05:20:07 -05:00
|
|
|
span(data-i18n="classes.adventurer_title_description")
|
2014-01-11 11:25:04 -05:00
|
|
|
| (Level Playtester)
|
2014-01-27 19:07:17 -05:00
|
|
|
input#email_tester(name="email_tester", type="checkbox", checked=subs.tester)
|
|
|
|
span(data-i18n="contribute.adventurer_subscribe_desc").help-block Get emails when there are new levels to test.
|
2014-01-03 13:32:13 -05:00
|
|
|
|
2014-01-27 19:07:17 -05:00
|
|
|
.form-group.checkbox
|
2014-01-11 11:25:04 -05:00
|
|
|
label.control-label(for="email_article_editor")
|
2014-01-12 05:20:07 -05:00
|
|
|
span(data-i18n="classes.scribe_title")
|
2014-01-11 11:25:04 -05:00
|
|
|
| Scribe
|
2014-01-27 19:07:17 -05:00
|
|
|
|
|
2014-01-12 05:20:07 -05:00
|
|
|
span(data-i18n="classes.scribe_title_description")
|
2014-01-11 11:25:04 -05:00
|
|
|
| (Article Editor)
|
2014-01-27 19:07:17 -05:00
|
|
|
input#email_article_editor(name="email_article_editor", type="checkbox", checked=subs.article_editor)
|
|
|
|
span(data-i18n="contribute.scribe_subscribe_desc").help-block Get emails about article writing announcements.
|
2014-01-03 13:32:13 -05:00
|
|
|
|
2014-01-27 19:07:17 -05:00
|
|
|
.form-group.checkbox
|
2014-01-11 11:25:04 -05:00
|
|
|
label.control-label(for="email_translator")
|
2014-01-12 05:20:07 -05:00
|
|
|
span(data-i18n="classes.diplomat_title")
|
2014-01-11 11:25:04 -05:00
|
|
|
| Diplomat
|
2014-01-27 19:07:17 -05:00
|
|
|
|
|
2014-01-12 05:20:07 -05:00
|
|
|
span(data-i18n="classes.diplomat_title_description")
|
2014-01-11 11:25:04 -05:00
|
|
|
| (Translator)
|
2014-01-27 19:07:17 -05:00
|
|
|
input#email_translator(name="email_translator", type="checkbox", checked=subs.translator)
|
|
|
|
span(data-i18n="contribute.diplomat_subscribe_desc").help-block Get emails about i18n developments and, eventually, levels to translate.
|
2014-01-03 13:32:13 -05:00
|
|
|
|
2014-01-27 19:07:17 -05:00
|
|
|
.form-group.checkbox
|
2014-01-11 11:25:04 -05:00
|
|
|
label.control-label(for="email_support")
|
2014-01-12 05:20:07 -05:00
|
|
|
span(data-i18n="classes.ambassador_title")
|
2014-01-11 11:25:04 -05:00
|
|
|
| Ambassador
|
2014-01-27 19:07:17 -05:00
|
|
|
|
|
2014-01-12 05:20:07 -05:00
|
|
|
span(data-i18n="classes.ambassador_title_description")
|
2014-01-11 11:25:04 -05:00
|
|
|
| (Support)
|
2014-01-27 19:07:17 -05:00
|
|
|
input#email_support(name="email_support", type="checkbox", checked=subs.support)
|
|
|
|
span(data-i18n="contribute.ambassador_subscribe_desc").help-block Get emails on support updates and multiplayer developments.
|
2014-01-03 13:32:13 -05:00
|
|
|
|
|
|
|
button.btn#toggle-all-button(data-i18n="account_settings.email_toggle") Toggle All
|
2014-04-05 20:05:03 -04:00
|
|
|
|
|
|
|
#job-profile-pane.tab-pane
|
|
|
|
#job-profile-view
|