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