Skip to content

Instantly share code, notes, and snippets.

@josser
Created September 4, 2012 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josser/3621834 to your computer and use it in GitHub Desktop.
Save josser/3621834 to your computer and use it in GitHub Desktop.
.modal-body.c-create-body
.c-create-address
input.pull-left.c-location-input(type='text').pull-left
.clear-both
button.close.c-create-close(type="button", data-dismiss="modal")×
.c-create-map-container
.alert.alert-error.c-create-map-note
span= __i('change-loc')
a.close(data-dismiss="alert")×
.c-crete-map#create-map
.c-create-details
ul.nav.nav-tabs.c-create-details-tabs
li.active
a.c-create-post(data-toggle="tab", href="#create-post-form")= __i('Post')
li
a.c-create-classified(data-toggle="tab", href="#create-classified-form")= __i('Classified Ad')
li
a.c-create-event(data-toggle="tab", href="#create-event-form")= __i('Event')
.tab-content
form#create-post-form.tab-pane.active(method="POST", action="/post")
input(type="hidden", name="type", value="post")
.c-create-tabtitle= __i('Create New Post')
fieldset
.control-group
.controls
textarea.c-create-post-message.c-input-create(placeholder= __i('mess-ph'), name="message")
.c-tag-stream
input(type="hidden", name="tags", value="")
input.tag.c-input-create.c-tag-stream-input(type="text", placeholder= __i('tags-ph'), data-items="4")
.clear-both
form#create-classified-form.tab-pane(method="POST", action="/post")
input(type="hidden", name="type", value="classifieds")
.c-create-tabtitle= __i('Create New Ad')
fieldset
.control-group
label.contol-label= __i('Reply-to email. Your email will not be shown.')
.control-group
.controls
input.c-input-create(value=everyauth.loggedIn ? everyauth.user.email : '', name="email", type="text", placeholder=__i('Your email'))
.control-group
.controls
input.c-input-create(name="price", type="text", placeholder=__i('Price (optional)'))
.control-group
.controls
textarea#message.c-input-create(placeholder= __i('mess-ph'), name="message")
.c-tag-stream
input(type="hidden", name="tags", value="")
input.tag.c-input-create.c-tag-stream-input(type="text", placeholder= __i('tags-ph'), data-items="4")
.clear-both
form#create-event-form.tab-pane(method="POST", action="/event")
input(type="hidden", name="type", value="event")
.c-create-tabtitle= __i('Create New Event')
fieldset
.control-group
label.contol-label= __i('Reply-to email. Your email will not be shown.')
.control-group
.controls
input.c-input-create(value=everyauth.loggedIn ? everyauth.user.email : '', name="email", type="text", placeholder=__i('Your email'))
.control-group
.controls
input.c-input-create(name="title", type="text", placeholder=__i('Event title'))
.control-group
.controls
input#create-event-from.input-mini.inline(type="text", name="date_start", data-date="#{tomorrow.format('D/MM/YYYY')}", data-date-format="d/mm/yyyy",value="#{tomorrow.format('D/MM/YYYY')}")
select.input-mini.inline(type="text", name="time_start")
- for (var hour = 0; hour<24; hour++) {
- if (hour === 19) {
option(selected, value=("0" + hour).slice(-2) + ':00')= ("0" + hour).slice(-2) + ':00'
- } else {
option(value=("0" + hour).slice(-2) + ':00')= ("0" + hour).slice(-2) + ':00'
- }
- }
|&nbsp;-&nbsp;
select.input-mini.inline(name="time_finish",type="text")
- for (var hour = 0; hour<24; hour++) {
- if (hour === 21) {
option(selected, value=("0" + hour).slice(-2) + ':00')= ("0" + hour).slice(-2) + ':00'
- } else {
option(value=("0" + hour).slice(-2) + ':00')= ("0" + hour).slice(-2) + ':00'
- }
- }
input#create-event-to.input-mini.inline(name="date_finish", type="text", data-date="#{tomorrow.format('D/MM/YYYY')}", data-date-format="d/mm/yyyy", value="#{tomorrow.format('D/MM/YYYY')}")
.control-group
.controls
textarea#message.c-input-create(placeholder= __i('mess-ph'), name="message")
.c-tag-stream
input(type="hidden", name="tags", value="")
input.tag.c-input-create.c-tag-stream-input(type="text", placeholder= __i('tags-ph'), data-items="4")
.clear-both
.c-post-image-stream-container
ul#new-post-images-stream.c-post-image-container.thumbnails
include create/images/load
.clear-both
#extension-error.alert.alert-error.c-alert-hidden.hide
- var commaArray = exts.slice(0, exts.length - 1).map(function (el) { return el.toUpperCase(); }).join(', ');
span= __i('ext-err-body', commaArray, exts[exts.length - 1].toUpperCase())
span.c-hide-alert &times;
#url-error.alert.alert-error.c-alert-hidden.hide
span= __i('url-err-body')
span.c-hide-alert &times;
#no-img-error.alert.alert-error.c-alert-hidden.hide
span= __i('no-img-err')
span.c-hide-alert &times;
.c-create-post-buttons
label.checkbox.inline
input.c-create-fbrepost(type="checkbox", name="fbrepost", checked)
| Post to Facebook
.control-group.pull-right
button.c-create-submit.btn.btn-primary(name="create-submit")= __i('Submit')
button.btn(type="button", data-dismiss="modal")= __i('Cancel')
.clear-both
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment