extends ../layout

block content
  h1 New Poem
  h3 Create a new poem
  form(action="/poem", method="post")
    input(type="text", name="name", placeholder="Poem Name", size=50)
    p
      input.poetsearch.typeahead(type="text", placeholder="Add other poets")
      ul.poets
        li.poet= user.name
          input(type="hidden", value="#{user.id}")
    input(type="submit", value="Start Poem")

  script(src="/js/vendor/jquery-1.10.2.min.js")
  script(src="/js/vendor/typeahead.min.js")
  script(src="/js/poem/new.js")

extends ../layout

block content
  h1 New Poem
  h3 Create a new poem
  form(action="/poem", method="post")
    input(type="text", name="name", placeholder="Poem Name", size=50)
    p
      input.poetsearch.typeahead(type="text", placeholder="Add other poets")
      ul.poets
        li.poet= user.name
          input(type="hidden", name="poets", value="#{user.id}")
    input(type="submit", value="Start Poem")

  script(src="/js/vendor/jquery-1.10.2.min.js")
  script(src="/js/vendor/typeahead.min.js")
  script(src="/js/poem/new.js")

Fix bug: user was not being added as poet
Fix bug: user was not being added as poet

Forgot the name attribute in the server-side hidden input tag.
Need to remove DOM duplication.
