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