| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
die( 'You are not allowed to call this page directly.' ); |
| 4 |
} |
| 5 |
?> |
| 6 |
<div id="frm-bulk-modal" class="frm_hidden settings-lite-cta"> |
| 7 |
<a href="#" class="dismiss alignright" title="<?php esc_attr_e( 'Close', 'formidable' ); ?>"> |
| 8 |
<?php FrmAppHelper::icon_by_class( 'frmfont frm_close_icon', array( 'aria-label' => __( 'Close', 'formidable' ) ) ); ?> |
| 9 |
</a> |
| 10 |
<h2> |
| 11 |
<?php esc_html_e( 'Bulk Edit Options', 'formidable' ); ?> |
| 12 |
</h2> |
| 13 |
<div class="frm_grid_container"> |
| 14 |
<div class="frm8 frm_form_field"> |
| 15 |
<p class="howto"> |
| 16 |
<?php esc_html_e( 'Edit or add field options (one per line)', 'formidable' ); ?> |
| 17 |
</p> |
| 18 |
<textarea name="frm_bulk_options" id="frm_bulk_options"></textarea> |
| 19 |
<input type="hidden" value="" id="bulk-field-id" /> |
| 20 |
<input type="hidden" value="" id="bulk-option-type" /> |
| 21 |
|
| 22 |
<button class="button-primary frm-button-primary" id="frm-update-bulk-opts"> |
| 23 |
<?php esc_attr_e( 'Update Options', 'formidable' ); ?> |
| 24 |
</button> |
| 25 |
</div> |
| 26 |
<div class="frm4 frm_form_field"> |
| 27 |
<h3> |
| 28 |
<?php esc_html_e( 'Insert Presets', 'formidable' ); ?> |
| 29 |
</h3> |
| 30 |
<ul class="frm_prepop"> |
| 31 |
<?php |
| 32 |
foreach ( $prepop as $label => $pop ) { |
| 33 |
if ( isset( $pop['class'] ) ) { |
| 34 |
$class = $pop['class']; |
| 35 |
unset( $pop['class'] ); |
| 36 |
} else { |
| 37 |
$class = ''; |
| 38 |
} |
| 39 |
?> |
| 40 |
<li class="<?php echo esc_attr( $class ); ?>"> |
| 41 |
<a href="#" class="frm-insert-preset" data-opts="<?php echo esc_attr( json_encode( $pop ) ); ?>"> |
| 42 |
<?php echo esc_html( $label ); ?> |
| 43 |
</a> |
| 44 |
</li> |
| 45 |
<?php } ?> |
| 46 |
</ul> |
| 47 |
</div> |
| 48 |
</div> |
| 49 |
</div> |
| 50 |
|