<div id="modal-picture" class="modal pump-modal hide fade" tabindex="-1" role="dialog" aria-labelledby="post-label" aria-hidden="true">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
    <h3 id="post-label">Post a picture</h3>
  </div>
  <div class="modal-body">
    <div id="picture-fineupload"></div>
    <form id="post-picture" action="/main/upload" enctype="multipart/form-data">
      <fieldset>
        <label for="title">Title</label>
        <input type="text" id="picture-title" placeholder="(optional)" name="title"></input>
        <label for="description">Description</label>
        <textarea id="picture-description" class="span5" name="description" placeholder="Description (optional)" rows="3">
        </textarea>
        <div>
          <%= partial("recipient-selector", {name: "to", id: "picture-to", label: "To"}) %>
        </div>
        <div>
          <%= partial("recipient-selector", {name: "cc", id: "picture-cc", label: "CC"}) %>
        </div>
      </fieldset>
    </form>
  </div>
  <div class="modal-footer">
    <button type="submit" class="btn btn-primary" id="send-picture">Send</button>
  </div>
</div>

include ./recipient-selector.jade

.modal.pump-modal.hide.fade#modal-picture(tabindex="-1", role="dialog", aria-labelledby="post-label", aria-hidden="true")
  .modal-header
    button.close(type="button", data-dismiss="modal", aria-hidden="true") &times;
    h3#post-label Post a picture

  .modal-body
    .picture-fineupload
    form#post-picture(action="/main/upload", enctype="multipart/form-data")
      fieldset
        label(for="title") Title
        input#picture-title(type="text", placeholder="(optional)", name="title")
        label(for="description") Description
        textarea.span5#picture-description(name="description", placeholder="Description (optional)", rows="3")

        dif
          +recipient-selector({name: "to", id: "picture-to", label: "To"})

        div
          +recipient-selector({name: "cc", id: "picture-cc", label: "CC"})

  .modal-footer
    button.btn.btn-primary#send-picture(type="submit") Send

Rewrite picture post modal in Jade
Rewrite picture post modal in Jade
