public static function renderNew() { if (!mainwp_current_user_can("dashboard", "add_backup_tasks")) { mainwp_do_not_have_permissions("add backup tasks"); return; } self::renderHeader('AddNew'); ?> <div class="mainwp_info-box-yellow"><?php _e('We recommend only scheduling 1 site per backup, multiples sites can cause unintended issues.', 'mainwp'); ?> </div> <div id="mainwp_managebackups_add_errors" class="mainwp_error error"></div> <div id="mainwp_managebackups_add_message" class="mainwp_updated updated" style="display: none"></div> <div class="error below-h2" style="display: none;" id="ajax-error-zone"></div> <div id="ajax-information-zone" class="updated" style="display: none;"></div> <div id="mainwp_managbackups_cont"> <form method="POST" action="" id="mainwp_managebackups_add_form"> <?php MainWPManageBackups::renderNewEdit(null); ?> <p class="submit"><input type="button" name="mainwp_managebackups_add" id="mainwp_managebackups_add" class="button-primary" value="<?php _e('Add New Task', 'mainwp'); ?> " /></p> </form> </div> <?php self::renderFooter('AddNew'); }