[%var id='New';%]

<div class="task-list-item-edit" id="ed[%=id%]">
<h2>New Task</h2>
    <form>
    <span class="Field MediumField">
        
        <input class="edit-task-form " id="ti[%=id%]" name="title" value="[%=task.title%]"/><br/>
    </span>

    <span class="Field ">
        <label>Type</label>
        <select name="type">[%

            $.each(task_types.model.taskType,function(i,n){
                %]<option value="[%=n.id%]">[%=n.name%]</option>[%
            });

        %]</select>
    </span>
    <span class="Field">
        <label>Due on</label>
        <input class="edit-task-form edit-task-due date-pick" id="due[%=id%]" name="dueOn"/>
    </span>
    <span class="Field">
        <label>Assigned To</label>

        <select name="assignedTo">[%

           $.each(users.model.user,function(i,n){
            %]<option value="[%=n.id%]">[%=n.firstName%] [%=n.lastName%]</option>[%
           });

        %]</select>
    </span>

    <span class="Field">
        <label>Contact</label>
        <select name="contact">[%

           $.each(contacts.model.contact,function(i,n){
            %]<option value="[%=n.id%]">[%=n.firstName%] [%=n.lastName%]</option>[%
           });

        %]</select>
    </span>
  </div>

  <div class="Actions">
    <ul>
        <li><input class="edit-task-form edit-task-save" id="sv[%=id%]" type="button" value="Save"/></li>
        <li><input class="edit-task-form edit-task-cancel" type="button" value="Cancel"/></li>
    </ul>
    </div>
    </form>
</div>