tools
6 years ago
add_new_instructor.php
6 years ago
addons.php
6 years ago
answer.php
6 years ago
enable_disable_addons.php
6 years ago
get-pro.php
6 years ago
instructors.php
6 years ago
question_answer.php
6 years ago
quiz_attempts.php
6 years ago
students.php
6 years ago
tools.php
6 years ago
tutor-pro-addons.php
6 years ago
uninstall.php
6 years ago
view_attempt.php
6 years ago
withdraw_requests.php
6 years ago
add_new_instructor.php
143 lines
| 1 | |
| 2 | <div class="wrap"> |
| 3 | <h1 class="wp-heading-inline"><?php _e('Add new instructor', 'tutor'); ?></h1> |
| 4 | <hr class="wp-header-end"> |
| 5 | |
| 6 | <form action="" id="new-instructor-form" method="post"> |
| 7 | <input type="hidden" name="action" value="add_new_instructor"> |
| 8 | |
| 9 | |
| 10 | <div id="form-response"></div> |
| 11 | |
| 12 | <?php |
| 13 | $errors = apply_filters('tutor_instructor_register_validation_errors', array()); |
| 14 | if (is_array($errors) && count($errors)){ |
| 15 | echo '<div class="tutor-alert-warning"><ul class="tutor-required-fields">'; |
| 16 | foreach ($errors as $error_key => $error_value){ |
| 17 | echo "<li>{$error_value}</li>"; |
| 18 | } |
| 19 | echo '</ul></div>'; |
| 20 | } |
| 21 | ?> |
| 22 | |
| 23 | <?php do_action('tutor_add_new_instructor_form_fields_before'); ?> |
| 24 | |
| 25 | <div class="tutor-option-field-row"> |
| 26 | <div class="tutor-option-field-label"> |
| 27 | <label for=""> |
| 28 | <?php _e('First Name', 'tutor'); ?> |
| 29 | |
| 30 | <span class="tutor-required-fields">*</span> |
| 31 | </label> |
| 32 | </div> |
| 33 | <div class="tutor-option-field"> |
| 34 | <input type="text" name="first_name" value="<?php echo tutor_utils()->input_old('first_name'); ?>" placeholder="<?php _e('First Name', 'tutor'); ?>"> |
| 35 | </div> |
| 36 | </div> |
| 37 | |
| 38 | |
| 39 | <div class="tutor-option-field-row"> |
| 40 | <div class="tutor-option-field-label"> |
| 41 | <label> |
| 42 | <?php _e('Last Name', 'tutor'); ?> |
| 43 | <span class="tutor-required-fields">*</span> |
| 44 | </label> |
| 45 | </div> |
| 46 | |
| 47 | <div class="tutor-option-field"> |
| 48 | <input type="text" name="last_name" value="<?php echo tutor_utils()->input_old('last_name'); ?>" placeholder="<?php _e('Last Name', 'tutor'); ?>"> |
| 49 | </div> |
| 50 | </div> |
| 51 | |
| 52 | <div class="tutor-option-field-row"> |
| 53 | <div class="tutor-option-field-label"> |
| 54 | <label> |
| 55 | <?php _e('User Name', 'tutor'); ?> |
| 56 | <span class="tutor-required-fields">*</span> |
| 57 | </label> |
| 58 | </div> |
| 59 | |
| 60 | <div class="tutor-option-field"> |
| 61 | <input type="text" name="user_login" class="tutor_user_name" value="<?php echo tutor_utils()->input_old('user_login'); ?>" placeholder="<?php _e('User Name', 'tutor'); ?>"> |
| 62 | </div> |
| 63 | </div> |
| 64 | |
| 65 | <div class="tutor-option-field-row"> |
| 66 | <div class="tutor-option-field-label"> |
| 67 | <label> |
| 68 | <?php _e('E-Mail', 'tutor'); ?> |
| 69 | <span class="tutor-required-fields">*</span> |
| 70 | </label> |
| 71 | </div> |
| 72 | |
| 73 | <div class="tutor-option-field"> |
| 74 | <input type="text" name="email" value="<?php echo tutor_utils()->input_old('email'); ?>" placeholder="<?php _e('E-Mail', 'tutor'); ?>"> |
| 75 | </div> |
| 76 | </div> |
| 77 | |
| 78 | <div class="tutor-option-field-row"> |
| 79 | <div class="tutor-option-field-label"> |
| 80 | <label> |
| 81 | <?php _e('Phone Number', 'tutor'); ?> |
| 82 | <span class="tutor-required-fields">*</span> |
| 83 | </label> |
| 84 | </div> |
| 85 | |
| 86 | <div class="tutor-option-field"> |
| 87 | <input type="text" name="phone_number" value="<?php echo tutor_utils()->input_old('phone_number'); ?>" placeholder="<?php _e('Phone Number', 'tutor'); ?>"> |
| 88 | </div> |
| 89 | </div> |
| 90 | |
| 91 | <div class="tutor-option-field-row"> |
| 92 | <div class="tutor-option-field-label"> |
| 93 | <label> |
| 94 | <?php _e('Password', 'tutor'); ?> |
| 95 | <span class="tutor-required-fields">*</span> |
| 96 | </label> |
| 97 | </div> |
| 98 | |
| 99 | <div class="tutor-option-field"> |
| 100 | <input type="password" name="password" value="<?php echo tutor_utils()->input_old('password'); ?>" placeholder="<?php _e('Password', 'tutor'); ?>"> |
| 101 | </div> |
| 102 | </div> |
| 103 | |
| 104 | <div class="tutor-option-field-row"> |
| 105 | <div class="tutor-option-field-label"> |
| 106 | <label> |
| 107 | <?php _e('Password confirmation', 'tutor'); ?> |
| 108 | <span class="tutor-required-fields">*</span> |
| 109 | </label> |
| 110 | </div> |
| 111 | |
| 112 | <div class="tutor-option-field"> |
| 113 | <input type="password" name="password_confirmation" value="<?php echo tutor_utils()->input_old('password_confirmation'); ?>" placeholder="<?php _e('Password Confirmation', 'tutor'); ?>"> |
| 114 | </div> |
| 115 | </div> |
| 116 | |
| 117 | <div class="tutor-option-field-row"> |
| 118 | <div class="tutor-option-field-label"> |
| 119 | <label> |
| 120 | <?php _e('Bio', 'tutor'); ?> |
| 121 | </label> |
| 122 | </div> |
| 123 | <div class="tutor-option-field"> |
| 124 | <textarea name="tutor_profile_bio"><?php echo tutor_utils()->input_old('tutor_profile_bio'); ?></textarea> |
| 125 | </div> |
| 126 | </div> |
| 127 | |
| 128 | <?php do_action('tutor_add_new_instructor_form_fields_after'); ?> |
| 129 | |
| 130 | <div class="tutor-option-field-row"> |
| 131 | <div class="tutor-option-field-label"></div> |
| 132 | |
| 133 | <div class="tutor-option-field"> |
| 134 | <div class="tutor-form-group tutor-reg-form-btn-wrap"> |
| 135 | <button type="submit" name="tutor_register_instructor_btn" value="register" class="tutor-button tutor-button-primary"> |
| 136 | <i class="tutor-icon-plus-square-button"></i> |
| 137 | <?php _e('Add new instructor', 'tutor'); ?></button> |
| 138 | </div> |
| 139 | </div> |
| 140 | </div> |
| 141 | |
| 142 | </form> |
| 143 | </div> |