?> </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'); ?> " /> <input type="hidden" id="cp-project-id" value="<?php echo cp_get_project_id(); ?> " /> <input type="hidden" id="cp-task-id" value="<?php echo cp_get_task_id(); ?> " /> <table class="form-table"> <tbody> <tr valign="top"> <th scope="row"><?php _e('Description: ', 'collabpress'); ?> </th> <td><fieldset><legend class="screen-reader-text"><span></span></legend> <p><label for="cp-task"></label></p>
function cp_project_permalink($project_id = 0) { if (!$project_id) { $project_id = cp_get_project_id(); } echo cp_get_project_permalink($project_id); }
<input type="button" name="UnCheckAll" class="uncheck-all-users-button" value="<?php _e('Uncheck All', 'collabpress'); ?> " /> </p> <?php //check if user is subscriber if (!current_user_can('manage_options')) { //if not admin, assign project to logged in user echo '<input type="checkbox" name="cp_project_users[]" value="' . $current_user->ID . '" checked="checked" /> ' . $current_user->user_login . '<br />'; } else { // @todo This fails on huge userbases $wp_user_search = new WP_User_Query(array('fields' => 'all')); $wp_users = $wp_user_search->get_results(); foreach ($wp_users as $wp_user) { echo '<input type="checkbox" name="cp_project_users[]" class="cp_project_user" value="' . $wp_user->ID . '" ' . checked(true, cp_user_is_in_project(cp_get_project_id(), $wp_user->ID), false) . ' /> ' . $wp_user->user_login . '<br />'; } } ?> <p class="submit"> <input class="button-primary" type="submit" name="cp-add-project" value="<?php _e('Submit', 'collabpress'); ?> "/> <span class="spinner" style="float: left"></span></p> </div> </div> <script> (function($) { $(document).ready(function() { $('.modify-users-link').colorbox(
</label></th> <td><p><input type="text" class="regular-text" id="cp-project-title" name="cp-project-title" value="<?php echo cp_get_the_project_title(); ?> " /></p></td> </tr> <tr valign="top"> <th scope="row"><?php _e('Description: ', 'collabpress'); ?> </th> <td><fieldset><legend class="screen-reader-text"><span></span></legend> <p><label for="cp-project-description"></label></p> <p> <textarea class="large-text code" id="cp-project-description" cols="30" rows="10" name="cp-project-description"><?php echo cp_get_project_description(cp_get_project_id()); ?> </textarea> </p> </fieldset></td> </tr> </tbody> </table> <p class="submit"> <input class="button-primary" type="submit" class="edit-project-button" value="<?php _e('Submit', 'collabpress'); ?> "/> <input class="button-primary" type="button" id="delete-project-button" value="<?php _e('Delete Project', 'collabpress'); ?>