Skip to content

Admin Edit Page tab add button

I create Admin Edit Page tab for customer use this tuturial https://www.rakeshjesadiya.com/create-tab-in-admin-customer-edit-page-in-magento-2/

How to add button ‘edit’ to populate my table from as admin

i use template

      <div class="fieldset-wrapper customer-information">
<div class="fieldset-wrapper-title">
    <span class="title"><?php /* @escapeNotVerified */
        echo __('Information for Christmas Coins') ?></span>
</div>
<table class="admin__table-secondary">
    <tbody>
    <?php echo $block->getChildHtml(); ?>
    <tr>
        <th><?php /* @escapeNotVerified */ echo __('Customer ID:') ?></th>
        <th><?php /* @escapeNotVerified */ echo __('Occasion:') ?></th>
        <th><?php /* @escapeNotVerified */ echo __('Amount:') ?></th>
        <th><?php /* @escapeNotVerified */ echo __('Coins Received:') ?></th>
        <th><?php /* @escapeNotVerified */ echo __('Coins Spend:') ?></th>
        <th><?php /* @escapeNotVerified */ echo __('Date of purchase:') ?></th>
    </tr>
    <tr>
        <td><?php echo $block->getCustomerId(); ?></td>
        <td><?php echo $block->getOccasion(); ?></td>
        <td><?php echo $block->getAmount(); ?></td>
        <td><?php echo $block->getCoinsReceived(); ?></td>
        <td><?php echo $block->getCoinsSpend(); ?></td>
        <td><?php echo $block->getCreatedAt(); ?></td>
        <td><a href="<?=$block->getUrl('').'id/'.$block->getId(); ?>" class="action 
  primary">Edit</a></td>
    </tr>
    </tbody>
  </table>
</div>