<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
    <h3><?= __('Affiliate') ?></h3>
</div>

<form data-ajax id="affiliate" action="<?= admin_url_to('/streamers/' . $streamer['id'] . '/affiliate') ?>">
    <?= csrf_field() ?>

    <div class="modal-body">
        <div class="form-group">
            <label for="link" class="form-control-label"><?= __('Link') ?> <span class="required">*</span></label>
            <input type="text" class="form-control" value="<?= $streamer['link'] ?>" id="link" name="link" />
        </div>

        <div class="form-group">
            <label for="cashback" class="form-control-label"><?= __('Cashback') ?></label>
            <input type="text" class="form-control" value="<?= $streamer['cashback'] ?>" id="cashback" name="cashback" />
        </div>

    </div>

    <div class="modal-footer">
        <input type="submit" class="btn btn-primary" value="<?= __('Save') ?>" />
    </div>
</form>