<div class="modal hide fade">
  <form class="modal-form" action="{{location}}" method="POST">
    <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal">&times;</button>
      <h3>{{name}}</h3>
    </div>
    <div class="modal-body">
      {{#each fields}}
        {{#if label}}
          <label for="field-{{@index}}">{{label}}</label>
        {{/if}}
        <input type="{{type}}" name="{{name}}" id="field-{{@index}}" value="{{value}}" placeholder="{{placeholder}}" />
      {{/each}}
    </div>
    <div class="modal-footer">
      <button type="submit" class="btn" data-dismiss="modal">Cancel</button>
      <button type="submit" class="btn btn-primary">Submit</button>
    </div>
  </form>
</div>

<div class="modal hide fade">
  <form class="modal-form" action="{{location}}" method="POST" target="_blank">
    <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal">&times;</button>
      <h3>{{name}}</h3>
    </div>
    <div class="modal-body">
      {{#each fields}}
        {{#if label}}
          <label for="field-{{@index}}">{{label}}</label>
        {{/if}}
        <input type="{{type}}" name="{{name}}" id="field-{{@index}}" value="{{value}}" placeholder="{{placeholder}}" />
      {{/each}}
    </div>
    <div class="modal-footer">
      <button type="submit" class="btn" data-dismiss="modal">Cancel</button>
      <button type="submit" class="btn btn-primary">Submit</button>
    </div>
  </form>
</div>

Load form in a new window
Load form in a new window
