event_new.jade 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. extends ../layout
  2. block content
  3. section#partial
  4. .container
  5. .row
  6. .col-sm-8.col-sm-offset-2
  7. ul.nav.nav-pills
  8. li(role='presentation', class=title=='event'?'active':undefined)
  9. a(href='/event/new') new event
  10. li(role='presentation', class=title=='event'?'active':undefined)
  11. a(href='/event/search') seach events
  12. li(role='presentation', class=title=='event'?'active':undefined)
  13. a(href='/event/list') list events
  14. hr
  15. .row
  16. .col-sm-8.col-sm-offset-2.text-center
  17. h3 Create An Event
  18. hr
  19. .row
  20. .col-sm-8.col-sm-offset-2
  21. form.form-horizontal(id='event-form', method='POST')
  22. input(type='hidden', name='_csrf', value=_csrf)
  23. .form-group
  24. label.col-sm-3.control-label(for='eventname') Event Name
  25. .col-sm-7
  26. input.form-control(type='text', name='eventname', id='eventname', value='', autofocus)
  27. .form-group
  28. label.col-sm-3.control-label(for='eventname') Event Description
  29. .col-sm-7
  30. textarea.form-control(type='textarea', rows='5', name='eventdesc', id='eventdesc', value='', autofocus)
  31. .form-group
  32. .col-sm-offset-3.col-sm-7
  33. button.btn.btn-success(type='submit')
  34. i.fa.fa-balance-scale
  35. | Create Event