<div class="erp-crm-contact-group-wrap">

    <div class="row">
        <?php erp_html_form_input( [
            'label'       => __( 'Name', 'erp' ),
            'name'        => 'group_name',
            'type'        => 'text',
            'id'          => 'erp-crm-contact-group-name',
            'required'    => true,
            'value'       => '{{ data.name }}',
        ] ); ?>
    </div>

    <div class="row">
        <?php erp_html_form_input( [
            'label'       => __( 'Description', 'erp' ),
            'name'        => 'group_description',
            'type'        => 'textarea',
            'id'          => 'erp-crm-contact-group-description',
            'value'       => '{{ data.description }}',
            'placeholder' => __( 'Optional', 'erp' ),
        ] ); ?>
    </div>

    <# var isPrivate = ( data.private ) ? data.private : 0; #>

    <div class="row" data-checked="{{ isPrivate }}">
        <?php erp_html_form_input( [
            'label'       => __( 'Private', 'erp' ),
            'name'        => 'group_private',
            'type'        => 'radio',
            'options'     => [
                '1' => __( 'Yes', 'erp' ),
                '0' => __( 'No', 'erp' ),
            ],
        ] ); ?>
    </div>

    <?php wp_nonce_field( 'wp-erp-crm-contact-group' ); ?>

    <input type="hidden" name="action" value="erp-crm-contact-group">
    <input type="hidden" name="id" value="{{ data.id }}">
</div>
