bulk-confirm-popup.php
1 year ago
common-confirm-popup.php
1 year ago
create-course-empty-state.php
1 year ago
filters.php
1 year ago
list-empty-state.php
11 months ago
list-filters.php
11 months ago
list-navbar.php
11 months ago
navbar.php
11 months ago
pagination.php
3 years ago
purchase-history-filter.php
1 year ago
search-filter.php
3 years ago
trashed-course-empty-state.php
1 year ago
search-filter.php
56 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Search filter |
| 4 | * |
| 5 | * @package Tutor\Views |
| 6 | * @subpackage Tutor\ViewElements |
| 7 | * @author Themeum <support@themeum.com> |
| 8 | * @link https://themeum.com |
| 9 | * @since 2.0.0 |
| 10 | */ |
| 11 | |
| 12 | ?> |
| 13 | <?php if ( isset( $data ) ) : ?> |
| 14 | |
| 15 | <div class="tutor-admin-page-filters" style="display: flex; justify-content: space-between"> |
| 16 | <?php if ( $data['bulk_action'] ) : ?> |
| 17 | <div class="tutor-admin-bulk-action-wrapper"> |
| 18 | <form action="" method="post"> |
| 19 | <div class="tutor-bulk-action-group"> |
| 20 | <select name="bulk-action" id="tutor-backend-bulk-action"> |
| 21 | <?php foreach ( $data['bulk_actions'] as $k => $v ) : ?> |
| 22 | <option value="<?php echo esc_attr( $v['value'] ); ?>"> |
| 23 | <?php echo esc_html( $v['option'] ); ?> |
| 24 | </option> |
| 25 | <?php endforeach; ?> |
| 26 | </select> |
| 27 | <button type="button" class="tutor-btn"> |
| 28 | <?php esc_html_e( 'Apply', 'tutor' ); ?> |
| 29 | </button> |
| 30 | </div> |
| 31 | </form> |
| 32 | </div> |
| 33 | <?php endif; ?> |
| 34 | <?php if ( isset( $data['search_filter'] ) && true === $data['search_filter'] ) : ?> |
| 35 | <div class="tutor-admin-page-search-filter-wrapper"> |
| 36 | <form> |
| 37 | <div class="tutor-form-group select-with-input" style="display: flex; align-items: center; column-gap: 15px;"> |
| 38 | <select name="tutor-admin-search-by" id="tutor-admin-search-by"> |
| 39 | <option value="course"> |
| 40 | <?php esc_html_e( 'Course', 'tutor' ); ?> |
| 41 | </option> |
| 42 | <option value="student"> |
| 43 | <?php esc_html_e( 'Student', 'tutor' ); ?> |
| 44 | </option> |
| 45 | </select> |
| 46 | <input type="text" name="tutor-admin-search-by" id="tutor-admin-search-by"> |
| 47 | <button type="button" class="tutor-btn"> |
| 48 | <?php esc_html_e( 'Apply', 'tutor' ); ?> |
| 49 | </button> |
| 50 | </div> |
| 51 | </form> |
| 52 | </div> |
| 53 | <?php endif; ?> |
| 54 | </div> |
| 55 | <?php endif; ?> |
| 56 |