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.2 3.5.0 3.6.0 3.6.1 3.6.2 3.6.3 3.6.4 3.7.0 3.7.1 3.7.2 3.7.3 3.7.4 3.8.0 3.8.1 3.8.2 3.8.3 3.9.0 3.9.1 3.9.10 3.9.2 3.9.3 3.9.4 3.9.5 3.9.6 3.9.7 3.9.8 3.9.9
tutor / views / pages / add_new_instructor.php
tutor / views / pages Last commit date
tools 3 years ago add_new_instructor.php 3 years ago addons.php 3 years ago announcements.php 3 years ago answer.php 3 years ago course-list.php 3 years ago enable_disable_addons.php 3 years ago get-pro.php 3 years ago instructors.php 3 years ago question_answer.php 3 years ago quiz_attempts.php 3 years ago students.php 3 years ago tools.php 3 years ago tutor-pro-addons.php 3 years ago uninstall.php 3 years ago view_attempt.php 3 years ago welcome.php 3 years ago withdraw_requests.php 3 years ago
add_new_instructor.php
157 lines
1 <?php
2 /**
3 * Add new instructor page
4 *
5 * @package Tutor\Views
6 * @author Themeum <support@themeum.com>
7 * @link https://themeum.com
8 * @since 2.0.0
9 */
10
11 ?>
12 <div class="wrap">
13 <h1 class="wp-heading-inline"><?php esc_html_e( 'Add new instructor', 'tutor' ); ?></h1>
14 <hr class="wp-header-end">
15
16 <form action="" id="new-instructor-form" method="post">
17 <?php tutor_nonce_field(); ?>
18 <input type="hidden" name="action" value="add_new_instructor">
19
20
21 <div id="form-response"></div>
22 <?php
23 $validation_errors = apply_filters( 'tutor_instructor_register_validation_errors', array() );
24 if ( is_array( $validation_errors ) && count( $validation_errors ) ) :
25 ?>
26 <div class="tutor-alert tutor-warning tutor-mb-12">
27 <ul class="tutor-required-fields">
28 <?php foreach ( $validation_errors as $validation_error ) : ?>
29 <li>
30 <?php echo esc_html( $validation_error ); ?>
31 </li>
32 <?php endforeach; ?>
33 </ul>
34 </div>
35 <?php endif; ?>
36 <?php do_action( 'tutor_add_new_instructor_form_fields_before' ); ?>
37
38 <div class="tutor-option-field-row">
39 <div class="tutor-option-field-label">
40 <label for="">
41 <?php esc_html_e( 'First Name', 'tutor' ); ?>
42
43 <span class="tutor-required-fields">*</span>
44 </label>
45 </div>
46 <div class="tutor-option-field">
47 <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' ); ?>">
48 </div>
49 </div>
50
51
52 <div class="tutor-option-field-row">
53 <div class="tutor-option-field-label">
54 <label>
55 <?php esc_html_e( 'Last 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="last_name" value="<?php echo esc_attr( tutor_utils()->input_old( 'last_name' ) ); ?>" placeholder="<?php esc_attr_e( 'Last 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 esc_html_e( 'User Name', 'tutor' ); ?>
69 <span class="tutor-required-fields">*</span>
70 </label>
71 </div>
72
73 <div class="tutor-option-field">
74 <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' ); ?>">
75 </div>
76 </div>
77
78 <div class="tutor-option-field-row">
79 <div class="tutor-option-field-label">
80 <label>
81 <?php esc_html_e( 'E-Mail', 'tutor' ); ?>
82 <span class="tutor-required-fields">*</span>
83 </label>
84 </div>
85
86 <div class="tutor-option-field">
87 <input type="text" name="email" value="<?php echo esc_attr( tutor_utils()->input_old( 'email' ) ); ?>" placeholder="<?php esc_attr_e( 'E-Mail', 'tutor' ); ?>">
88 </div>
89 </div>
90
91 <div class="tutor-option-field-row">
92 <div class="tutor-option-field-label">
93 <label>
94 <?php esc_html_e( 'Phone Number', 'tutor' ); ?>
95 <span class="tutor-required-fields">*</span>
96 </label>
97 </div>
98
99 <div class="tutor-option-field">
100 <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' ); ?>">
101 </div>
102 </div>
103
104 <div class="tutor-option-field-row">
105 <div class="tutor-option-field-label">
106 <label>
107 <?php esc_html_e( 'Password', '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" value="<?php echo esc_attr( tutor_utils()->input_old( 'password' ) ); ?>" placeholder="<?php esc_attr_e( 'Password', 'tutor' ); ?>">
114 </div>
115 </div>
116
117 <div class="tutor-option-field-row">
118 <div class="tutor-option-field-label">
119 <label>
120 <?php esc_html_e( 'Password confirmation', 'tutor' ); ?>
121 <span class="tutor-required-fields">*</span>
122 </label>
123 </div>
124
125 <div class="tutor-option-field">
126 <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' ); ?>">
127 </div>
128 </div>
129
130 <div class="tutor-option-field-row">
131 <div class="tutor-option-field-label">
132 <label>
133 <?php esc_html_e( 'Bio', 'tutor' ); ?>
134 </label>
135 </div>
136 <div class="tutor-option-field">
137 <textarea name="tutor_profile_bio"><?php esc_html_e( tutor_utils()->input_old( 'tutor_profile_bio' ) ); ?></textarea>
138 </div>
139 </div>
140
141 <?php do_action( 'tutor_add_new_instructor_form_fields_after' ); ?>
142
143 <div class="tutor-option-field-row">
144 <div class="tutor-option-field-label"></div>
145
146 <div class="tutor-option-field">
147 <div class="tutor-form-group tutor-reg-form-btn-wrap">
148 <button type="submit" name="tutor_register_instructor_btn" value="register" class="tutor-button tutor-button-primary">
149 <i class="tutor-icon-plus-square"></i>
150 <?php echo esc_html( 'Add new instructor', 'tutor' ); ?></button>
151 </div>
152 </div>
153 </div>
154
155 </form>
156 </div>
157