codecombat/app/templates/play/level/modal/multiplayer.jade
2014-02-06 17:31:08 -08:00

35 lines
1.3 KiB
Text

// TODO: refactor to be like other modals
.modal-dialog
.modal-header
button(type='button', data-dismiss="modal", aria-hidden="true").close ×
h3(data-i18n="play_level.multiplayer_title") Multiplayer Settings
.modal-body
.form
.form-group.checkbox
label(for="multiplayer")
input#multiplayer(name="multiplayer", type="checkbox", checked=multiplayer)
| Multiplayer
span.help-block Enable others to join your game.
hr
div#link-area
p(data-i18n="play_level.multiplayer_link_description") Give this link to anyone to have them join you.
textarea.well#multiplayer-join-link(readonly=true)= joinLink
p
strong(data-i18n="play_level.multiplayer_hint_label") Hint:
span(data-i18n="play_level.multiplayer_hint") Click the link to select all, then press ⌘-C or Ctrl-C to copy the link.
p(data-i18n="play_level.multiplayer_coming_soon") More multiplayer features to come!
if playableTeams.length > 1
#multiplayer-team-selection
for team in playableTeams
label(for="multiplayer_team_"+team)= team
input(id="multiplayer_team_"+team, type="radio", name="multiplayer", value=team)
.modal-footer
a(href='#', data-dismiss="modal", aria-hidden="true", data-i18n="modal.close").btn.btn-primary Close