<?php
if (!defined('ABSPATH')) exit; // Exit if accessed directly 
?>

<form action="<?php echo esc_url(admin_url('admin-post.php')); ?>" method="post">
    <?php wp_nonce_field('iwbvel_post_nonce'); ?>
    <input type="hidden" name="action" value="iwbvel_column_manager_edit_preset">
    <input type="hidden" name="preset_key" id="iwbvel-column-manager-edit-preset-key" value="">
    <div class="iwbvel-modal" id="iwbvel-modal-column-manager-edit-preset">
        <div class="iwbvel-modal-container">
            <div class="iwbvel-modal-box iwbvel-modal-box-lg">
                <div class="iwbvel-modal-content">
                    <div class="iwbvel-modal-title">
                        <h2><?php esc_html_e('Edit Column Preset', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?></h2>
                        <button type="button" class="iwbvel-modal-close" data-toggle="modal-close">
                            <i class="iwbvel-icon-x"></i>
                        </button>
                    </div>
                    <div class="iwbvel-modal-body">
                        <div class="iwbvel-wrap">
                            <div class="iwbvel-column-manager-new-profile iwbvel-mt0">
                                <div class="iwbvel-column-manager-new-profile-left">
                                    <label class="iwbvel-column-manager-check-all-fields-btn" data-action="edit">
                                        <input type="checkbox" class="iwbvel-column-manager-check-all-fields">
                                        <span><?php esc_html_e('Select All', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?></span>
                                    </label>
                                    <input type="text" title="Search Field" data-action="edit" placeholder="<?php esc_attr_e('Search Field ...', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?>" class="iwbvel-column-manager-search-field">
                                    <div class="iwbvel-column-manager-available-fields" data-action="edit">
                                        <ul>
                                            <li style="text-align: center;"><img src="<?php echo esc_url(IWBVEL_IMAGES_URL . 'loading-2.gif'); ?>" alt="Loading ..." width="20" height="20"></li>
                                        </ul>
                                    </div>
                                </div>
                                <div class="iwbvel-column-manager-new-profile-middle">
                                    <div class="iwbvel-column-manager-middle-buttons">
                                        <div>
                                            <button type="button" data-action="edit" class="iwbvel-button iwbvel-button-lg iwbvel-button-square-lg iwbvel-button-blue iwbvel-column-manager-add-field">
                                                <i class="iwbvel-icon-chevron-right"></i>
                                            </button>
                                        </div>
                                    </div>
                                </div>

                                <div class="iwbvel-column-manager-new-profile-right">
                                    <div class="iwbvel-column-manager-right-top">
                                        <input type="text" title="Profile Name" class="iwbvel-w100p" id="iwbvel-column-manager-edit-preset-name" name="preset_name" placeholder="<?php esc_html_e('Profile name ...', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?>">
                                    </div>
                                    <div class="iwbvel-column-manager-added-fields iwbvel-table-border-radius iwbvel-mt10" data-action="edit">
                                        <div class="items"></div>
                                        <img src="<?php echo esc_url(IWBVEL_IMAGES_URL . 'loading.gif'); ?>" alt="" class="iwbvel-box-loading iwbvel-hide">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="iwbvel-modal-footer">
                        <button type="submit" name="edit_preset" class="iwbvel-button iwbvel-button-blue"><?php esc_html_e('Save Changes', 'ithemeland-bulk-variation-editing-for-woocommerce'); ?>
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</form>