<?php
/**
 * @var $key string
 * @var $data array
 */
$disabled = null;
if ($data['class']) {
    $disabled = 'disabled';
}
?>
<tr class="form-field term-auction__<?= $key ?>">
    <th scope="row"><label for="term_meta[auction_<?= $key ?>]"><?php _e( $data['label'], 'auctionforge' ); ?></label></th>
    <td>
        <input type="text" <?= $disabled ?> class="<?= $data['class'] ?>" name="term_meta[auction_<?= $key ?>]" id="term_meta[auction_<?= $key ?>]" value="<?= $data['value'] ?>">
        <p class="description"><?php _e($data['description'],'auctionforge'); ?></p>
    </td>
</tr>
