?> " /> </p> </td> </tr> <tr valign="top"> <th scope="row"><label for="cp-task-assign"><?php _e('Assigned to: ', 'collabpress'); ?> </label></th> <td> <p> <?php $user_list = '<select name="cp-task-assign" id="cp-task-assign">'; foreach (cp_get_project_users() as $wp_user) { $user_list .= '<option ' . selected(cp_get_user_assigned_to_task()->ID, $wp_user->ID, false) . ' value="' . $wp_user->ID . '">' . $wp_user->user_login . '</option>'; } $user_list .= '</select>'; $user_list = apply_filters('cp_task_user_list_html', $user_list, false); echo $user_list; ?> </p> </td> </tr> <tr valign="top"> <th scope="row"><label for="cp-task-priority"><?php _e('Priority: ', 'collabpress'); ?> </label></th> <td> <select name="cp-task-priority" id="cp-task-priority">
echo wp_create_nonce('item-complete-status-change_' . cp_get_task_id()); ?> " /> <a class="edit-task" href="#edit_task_inline_content">Edit</a><BR> <?php if ($due_date = cp_get_the_task_due_date()) { echo '<div>Due date: ' . $due_date . '</div>'; } ?> <?php if ($priority = cp_get_the_task_priority()) { echo '<div>Priority: ' . $priority . '</div>'; } ?> <?php $user_assigned = cp_get_user_assigned_to_task(); echo '<div>Assigned to: ' . get_avatar($user_assigned->ID) . '</div>'; ?> <?php cp_task_comments(); ?> </div> <div style='display:none'> <div id='edit_task_inline_content' style='padding:10px; background:#fff;'> <form id="edit-task-form"> <h2><?php _e('Edit Task', 'collabpress'); ?> </h2> <input type="hidden" id="edit_task_nonce" value="<?php echo wp_create_nonce('edit-task');