<template>
    <template if:true={isBatchMode}>
        <c-ge-batch-gift-entry-header
                batch-id={recordId}
                is-permission-error={isPermissionError}
                onbatchdryrun={handleBatchDryRun}
                onedit={handleEditBatch}
                onprocessbatch={handleProcessBatch}>
        </c-ge-batch-gift-entry-header>
        <br/>
    </template>

    <c-ge-form-renderer
            batch-id={recordId}
            onsubmit={handleSubmit}
            onsectionsretrieved={handleSectionsRetrieved}
            onpermissionerror={handlePermissionErrors}
            ontogglemodal={handleToggleModal}
            loading-text={loadingText}>
    </c-ge-form-renderer>

    <template if:false={isPermissionError}>
        <template if:true={isBatchMode}>
            <c-ge-batch-gift-entry-table
                    title={giftsTableTitle}
                    count={count}
                    expected-count={expectedCountOfGifts}
                    total={total}
                    expected-total={expectedTotalBatchAmount}
                    batch-id={recordId}
                    onloaddata={handleLoadData}
                    oncountchanged={handleCountChanged}
                    ontotalchanged={handleTotalChanged}>
            </c-ge-batch-gift-entry-table>
        </template>
    </template>
</template>
<template>
    <template if:true={isBatchMode}>
        <c-ge-batch-gift-entry-header
                batch-id={recordId}
                is-permission-error={isPermissionError}
                onbatchdryrun={handleBatchDryRun}
                onedit={handleEditBatch}
                onprocessbatch={handleProcessBatch}>
        </c-ge-batch-gift-entry-header>
        <br/>
    </template>

    <c-ge-form-renderer
            batch-id={recordId}
            onsubmit={handleSubmit}
            onsectionsretrieved={handleSectionsRetrieved}
            onpermissionerror={handlePermissionErrors}
            ontogglemodal={handleToggleModal}
            loading-text={loadingText}>
    </c-ge-form-renderer>

    <template if:false={isPermissionError}>
        <template if:true={isBatchMode}>
            <c-ge-batch-gift-entry-table
                    title={giftsTableTitle}
                    count={count}
                    expected-count={expectedCountOfGifts}
                    total={total}
                    expected-total={expectedTotalBatchAmount}
                    batch-id={recordId}
                    onloaddata={handleLoadData}
                    ondelete={handleDelete}
                    oncountchanged={handleCountChanged}
                    ontotalchanged={handleTotalChanged}>
            </c-ge-batch-gift-entry-table>
        </template>
    </template>
</template>
Handle deletion events from table in app
Handle deletion events from table in app
