PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / trunk
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More vtrunk
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
formidable / classes / views / frm-fields / back-end / bulk-options-overlay.php

bulk-options-overlay.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More trunk, at classes/views/frm-fields/back-end/bulk-options-overlay.php

66 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Bulk edit options modal.
4 *
5 * @package Formidable
6 *
7 * @var array<string, array> $prepop Preset options groups keyed by label; each may contain a 'class' key.
8 */
9
10 if ( ! defined( 'ABSPATH' ) ) {
11 die( 'You are not allowed to call this page directly.' );
12 }
13 ?>
14 <div id="frm-bulk-modal" class="frm_hidden frm-modal frm_common_modal">
15 <div class="postbox">
16 <div class="frm_modal_top">
17 <div class="frm-modal-title">
18 <?php esc_html_e( 'Bulk Edit Options', 'formidable' ); ?>
19 </div>
20 <div>
21 <a class="dismiss" title="<?php esc_attr_e( 'Close', 'formidable' ); ?>">
22 <?php FrmAppHelper::icon_by_class( 'frmfont frm_close_icon', array( 'aria-label' => __( 'Close', 'formidable' ) ) ); ?>
23 </a>
24 </div>
25 </div>
26 <div class="frm_grid_container">
27 <div class="frm8">
28 <p class="howto">
29 <?php esc_html_e( 'Edit or add field options (one per line)', 'formidable' ); ?>
30 </p>
31 <textarea name="frm_bulk_options" id="frm_bulk_options"></textarea>
32 <input type="hidden" value="" id="bulk-field-id" />
33 <input type="hidden" value="" id="bulk-option-type" />
34
35 </div>
36 <div class="frm4">
37 <h3>
38 <?php esc_html_e( 'Insert Presets', 'formidable' ); ?>
39 </h3>
40 <ul class="frm_prepop">
41 <?php
42 foreach ( $prepop as $label => $pop ) {
43 if ( isset( $pop['class'] ) ) {
44 $class = $pop['class'];
45 unset( $pop['class'] );
46 } else {
47 $class = '';
48 }
49 ?>
50 <li class="<?php echo esc_attr( $class ); ?>">
51 <a href="#" class="frm-insert-preset" data-opts="<?php echo esc_attr( json_encode( $pop ) ); ?>">
52 <?php echo esc_html( $label ); ?>
53 </a>
54 </li>
55 <?php } ?>
56 </ul>
57 </div>
58 </div>
59 <div class="frm_modal_footer">
60 <button class="button-primary frm-button-primary" id="frm-update-bulk-opts">
61 <?php esc_attr_e( 'Update Options', 'formidable' ); ?>
62 </button>
63 </div>
64 </div>
65 </div>
66