2014-01-03 13:32:13 -05:00
|
|
|
extends /templates/base
|
2014-03-17 08:52:19 -04:00
|
|
|
|
2014-01-03 13:32:13 -05:00
|
|
|
block content
|
2014-03-01 01:47:31 -05:00
|
|
|
div
|
|
|
|
ol.breadcrumb
|
|
|
|
li
|
|
|
|
a(href="/editor", data-i18n="editor.main_title") CodeCombat Editors
|
|
|
|
li.active(data-i18n="#{currentEditor}")
|
|
|
|
| #{currentEditor}
|
|
|
|
|
2014-01-03 13:32:13 -05:00
|
|
|
if me.get('anonymous')
|
|
|
|
a.btn.btn-primary.open-modal-button(data-toggle="coco-modal", data-target="modal/signup", role="button") Sign Up to Create a New #{modelLabel}
|
|
|
|
else
|
2014-03-03 06:45:04 -05:00
|
|
|
a.btn.btn-primary.open-modal-button(href='#new-model-modal', role="button", data-toggle="modal" data-i18n="#{currentNew}") Create a New Something
|
|
|
|
input#search(data-i18n="[placeholder]#{currentSearch}")
|
2014-01-03 13:32:13 -05:00
|
|
|
hr
|
|
|
|
div.results
|
|
|
|
table
|
2014-03-17 07:44:00 -04:00
|
|
|
|
|
|
|
// TODO: make this into a ModalView subview
|
2014-01-27 14:30:22 -05:00
|
|
|
div.modal.fade#new-model-modal
|
|
|
|
.modal-dialog
|
|
|
|
.modal-content
|
|
|
|
.modal-header
|
|
|
|
h3 Create New #{modelLabel}
|
|
|
|
.modal-body
|
2014-01-27 21:44:05 -05:00
|
|
|
form.form
|
2014-01-27 14:30:22 -05:00
|
|
|
.form-group
|
|
|
|
label.control-label(for="name") Name
|
|
|
|
input#name.form-control(name="name", type="text")
|
|
|
|
.modal-footer
|
|
|
|
button.btn(data-dismiss="modal") Cancel
|
|
|
|
button.btn.btn-primary.new-model-submit Create
|
2014-02-13 12:26:21 -05:00
|
|
|
.modal-body.wait.secret
|
2014-01-27 14:30:22 -05:00
|
|
|
h3 Reticulating Splines...
|
|
|
|
.progress.progress-striped.active
|
|
|
|
.progress-bar
|