| @@ -6,17 +6,11 @@ | ||
| 6 | 6 | <div class="frm_wrap"> |
| 7 | 7 | <?php |
| 8 | 8 | FrmAppHelper::get_admin_header( |
| 9 | 9 | array( |
| 10 | - 'label' => __( 'Forms', 'formidable' ), | |
| 11 | - | |
| 10 | + 'label' => $params['template'] ? __( 'Templates', 'formidable' ) : __( 'Forms', 'formidable' ), | |
| 11 | + 'trigger_new_form_modal' => ! $params['template'] && current_user_can( 'frm_edit_forms' ), | |
| 12 | 12 | 'import_link' => true, |
| 13 | - 'publish' => array( | |
| 14 | - 'FrmAppHelper::add_new_item_link', | |
| 15 | - array( | |
| 16 | - 'trigger_new_form_modal' => current_user_can( 'frm_edit_forms' ), | |
| 17 | - ), | |
| 18 | - ), | |
| 19 | 13 | ) |
| 20 | 14 | ); |
| 21 | 15 | ?> |
| 22 | 16 | <div class="wrap"> |
| @@ -22,15 +16,13 @@ | ||
| 22 | 16 | <div class="wrap"> |
| 23 | 17 | <?php |
| 24 | 18 | require FrmAppHelper::plugin_path() . '/classes/views/shared/errors.php'; |
| 25 | 19 | $wp_list_table->views(); |
| 26 | -$form_type = FrmAppHelper::simple_get( 'form_type', 'sanitize_title', 'published' ); | |
| 27 | 20 | ?> |
| 28 | 21 | |
| 29 | 22 | <form id="posts-filter" method="get"> |
| 30 | 23 | <input type="hidden" name="page" value="<?php echo esc_attr( FrmAppHelper::simple_get( 'page', 'sanitize_title' ) ); ?>" /> |
| 31 | 24 | <input type="hidden" name="frm_action" value="list" /> |
| 32 | - <input type="hidden" name="form_type" value="<?php echo esc_attr( $form_type ); ?>" /> | |
| 33 | 25 | <?php |
| 34 | 26 | |
| 35 | 27 | $wp_list_table->search_box( __( 'Search', 'formidable' ), 'entry' ); |
| 36 | 28 | $wp_list_table->display(); |
| @@ -53,5 +45,4 @@ | ||
| 53 | 45 | |
| 54 | 46 | <?php do_action( 'frm_page_footer', array( 'table' => $wp_list_table ) ); ?> |
| 55 | 47 | </div> |
| 56 | 48 | </div> |
| 57 | - | |