<?php
    /* @var $model array */
    /** @var $list \SW_WAPF\Includes\Classes\wapf_List_Table */
?>

<div class="wrap">
    <h2 style="display: block;">
        <?php echo $model['title']; ?>

        <?php if($model['can_create']){ ?>
            <a href="<?php echo admin_url('post-new.php?post_type=wapf_product'); ?>" class="page-title-action">
                <?php _e('Add New', 'advanced-product-fields-for-woocommerce'); ?>
            </a>
        <?php } ?>
    </h2>

    <p style="padding-bottom:22px;margin:0 !important;" class="wapf-description">
        <?php _e( 'A field group is a collection of fields that belong together.', 'advanced-product-fields-for-woocommerce' ) ?>
    </p>
    <div id="nds-wp-list-table-demo">
        <div id="nds-post-body">
            <?php $list->views(); ?>
            <form method="post">
                <?php $list->display(); ?>
            </form>
        </div>
    </div>
</div>