mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-22 10:55:19 -04:00
Fixed Issue #26
This commit is contained in:
parent
2b6a7cf753
commit
100a296951
25 changed files with 37 additions and 16 deletions
app
locale
templates
editor/level
modal
views
|
@ -179,3 +179,6 @@ module.exports = nativeDescription: "français", englishDescription: "French", t
|
|||
# tome_select_a_thang: "Select Someone for "
|
||||
# tome_available_spells: "Available Spells"
|
||||
# hud_continue: "Continue (press shift-space)"
|
||||
|
||||
editor:
|
||||
new_component_title: "creér un composant"
|
|
@ -1,5 +1,8 @@
|
|||
extends /templates/modal/modal_base
|
||||
|
||||
block modal-header-content
|
||||
h3(data-i18n="editor.new_component_title") Create New Component
|
||||
|
||||
block modal-body-content
|
||||
form.form-horizontal
|
||||
.control-group
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
extends /templates/modal/modal_base
|
||||
|
||||
block modal-header-content
|
||||
h3(data-i18n="editor.fork_title") Fork New Version
|
||||
|
||||
block modal-body-content
|
||||
form#save-level-form.form-horizontal
|
||||
.control-group
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
extends /templates/modal/save_version
|
||||
|
||||
block modal-header-content
|
||||
h3(data-i18n="editor.save_view_title") Save New Version
|
||||
|
||||
block content
|
||||
h3= "Level: " + level.get('name') + " - " + (levelNeedsSave ? "Modified" : "Not Modified")
|
||||
if levelNeedsSave
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
extends /templates/modal/modal_base
|
||||
|
||||
block modal-header-content
|
||||
h3(data-i18n="editor.add_system_title") Add Systems to Level
|
||||
|
||||
block modal-body-content
|
||||
ul.available-systems-list
|
||||
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
extends /templates/modal/modal_base
|
||||
|
||||
block modal-header-content
|
||||
h3(data-i18n="editor.create_system_title") Create New System
|
||||
|
||||
block modal-body-content
|
||||
form.form-horizontal
|
||||
.control-group
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
block modal-header-content
|
||||
h3(data-i18n="contact.contact_modal_title") Contact
|
||||
|
||||
.modal-header
|
||||
.button.close(type="button", data-dismiss="modal", aria-hidden="true") ×
|
||||
h3(data-i18n="contact.contact_us") Contact CodeCombat...
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
extends /templates/modal/modal_base
|
||||
|
||||
block modal-header-content
|
||||
h3(data-i18n="login.login_modal_title") Log In
|
||||
|
||||
block modal-body-content
|
||||
.form-inline
|
||||
.control-group
|
||||
|
|
|
@ -3,7 +3,7 @@ block modal-header
|
|||
if closeButton
|
||||
.button.close(type="button", data-dismiss="modal", aria-hidden="true") ×
|
||||
block modal-header-content
|
||||
h3= modalTitle
|
||||
h3 man bites God
|
||||
|
||||
block modal-body
|
||||
.modal-body
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
extends /templates/modal/modal_base
|
||||
|
||||
block modal-header-content
|
||||
h3(data-i18n="recover.recover_account_title") Recover Account
|
||||
|
||||
block modal-body-content
|
||||
.form-inline
|
||||
.control-group
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
.modal-header
|
||||
h3 Save
|
||||
block content
|
||||
h3(data-i18n="save.save_version_title") Save New Version
|
||||
.modal-body
|
||||
block content
|
||||
form.form-horizontal
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
extends /templates/modal/modal_base
|
||||
|
||||
block modal-header-content
|
||||
h3(data-i18n="signup.create_account_title") Create Account to Save Progress
|
||||
|
||||
block modal-body-content
|
||||
.modal-body
|
||||
p(data-i18n="signup.description") It's free. Just need a couple things and you'll be good to go:
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
extends /templates/modal/modal_base
|
||||
|
||||
block modal-header-content
|
||||
h3(data-i18n="modal.wizard_settings_title") Wizard Settings
|
||||
|
||||
block modal-body-content
|
||||
h4 Customize Your Avatar
|
||||
|
||||
|
|
|
@ -8,7 +8,6 @@ forms = require 'lib/forms'
|
|||
module.exports = class LevelComponentNewView extends View
|
||||
id: "editor-level-component-new-modal"
|
||||
template: template
|
||||
modalTitle: "Create New Component"
|
||||
instant: false
|
||||
modalWidthPercent: 60
|
||||
|
||||
|
|
|
@ -8,7 +8,6 @@ module.exports = class LevelForkView extends View
|
|||
template: template
|
||||
instant: false
|
||||
modalWidthPercent: 60
|
||||
modalTitle: "Fork New Version"
|
||||
|
||||
events:
|
||||
'click #fork-level-confirm-button': 'forkLevel'
|
||||
|
|
|
@ -8,7 +8,6 @@ module.exports = class LevelSaveView extends SaveVersionModal
|
|||
template: template
|
||||
instant: false
|
||||
modalWidthPercent: 60
|
||||
modalTitle: "Save New Version"
|
||||
|
||||
events:
|
||||
'click #save-version-button': 'commitLevel'
|
||||
|
|
|
@ -12,7 +12,6 @@ module.exports = class LevelSystemAddView extends View
|
|||
id: "editor-level-system-add-modal"
|
||||
template: template
|
||||
instant: true
|
||||
modalTitle: "Add Systems to Level"
|
||||
|
||||
events:
|
||||
'click .available-systems-list li': 'onAddSystem'
|
||||
|
|
|
@ -8,7 +8,6 @@ forms = require 'lib/forms'
|
|||
module.exports = class LevelSystemNewView extends View
|
||||
id: "editor-level-system-new-modal"
|
||||
template: template
|
||||
modalTitle: "Create New System"
|
||||
instant: false
|
||||
modalWidthPercent: 60
|
||||
|
||||
|
|
|
@ -2,7 +2,6 @@ CocoView = require './CocoView'
|
|||
|
||||
module.exports = class ModalView extends CocoView
|
||||
className: "modal hide fade"
|
||||
modalTitle: "Man Bites God"
|
||||
closeButton: true
|
||||
closesOnClickOutside: true
|
||||
modalWidthPercent: null
|
||||
|
@ -14,14 +13,12 @@ module.exports = class ModalView extends CocoView
|
|||
options ?= {}
|
||||
@className = @className.replace " fade", "" if options.instant
|
||||
@closeButton = options.closeButton if options.closeButton?
|
||||
@modalTitle = options.modalTitle if options.modalTitle
|
||||
@modalWidthPercent = options.modalWidthPercent if options.modalWidthPercent
|
||||
super options
|
||||
|
||||
getRenderData: (context={}) =>
|
||||
context = super(context)
|
||||
context.closeButton = @closeButton
|
||||
context.modalTitle = @modalTitle
|
||||
context
|
||||
|
||||
subscriptions:
|
||||
|
|
|
@ -22,7 +22,6 @@ contactSchema =
|
|||
module.exports = class ContactView extends View
|
||||
id: "contact-modal"
|
||||
template: template
|
||||
modalTitle: "Contact"
|
||||
|
||||
events:
|
||||
"click #contact-submit-button": "contact"
|
||||
|
|
|
@ -13,7 +13,6 @@ filterKeyboardEvents = (allowedEvents, func) ->
|
|||
module.exports = class LoginModalView extends View
|
||||
id: "login-modal"
|
||||
template: template
|
||||
modalTitle: "Log In"
|
||||
|
||||
events:
|
||||
"click #login-button": "loginAccount"
|
||||
|
|
|
@ -12,8 +12,7 @@ filterKeyboardEvents = (allowedEvents, func) ->
|
|||
module.exports = class RecoverModalView extends View
|
||||
id: "recover-modal"
|
||||
template: template
|
||||
modalTitle: "Recover Account"
|
||||
|
||||
|
||||
events:
|
||||
"click #recover-button": "recoverAccount"
|
||||
"keydown input": "recoverAccount"
|
||||
|
|
|
@ -4,7 +4,6 @@ template = require 'templates/modal/save_version'
|
|||
module.exports = class SaveVersionModal extends ModalView
|
||||
id: 'save-version-modal'
|
||||
template: template
|
||||
modalTitle: 'Save New Version'
|
||||
|
||||
events:
|
||||
'click #save-version-button': 'onClickSaveButton'
|
||||
|
|
|
@ -13,7 +13,6 @@ filterKeyboardEvents = (allowedEvents, func) ->
|
|||
module.exports = class SignupModalView extends View
|
||||
id: "signup-modal"
|
||||
template: template
|
||||
modalTitle: "Create Account to Save Progress"
|
||||
|
||||
events:
|
||||
"click #signup-confirm-age": "checkAge"
|
||||
|
|
|
@ -6,7 +6,6 @@ ThangType = require 'models/ThangType'
|
|||
module.exports = class WizardSettingsView extends View
|
||||
id: "wizard-settings-modal"
|
||||
template: template
|
||||
modalTitle: "Wizard Settings"
|
||||
closesOnClickOutside: false
|
||||
|
||||
events:
|
||||
|
|
Loading…
Reference in a new issue