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

<form data-ajax data-upload class="form-focus" action="<?= admin_url_to('/items/change-image/' . $item['id']) ?>" method="post">
    <?= csrf_field() ?>

    <div class="modal-body">
        <div class="form-group">
            <label class="control-label" for="image"><?= __('Image') ?> <span class="required">*</span></label>
            <input id="image" data-upload-field class="form-control" type="file" name="image" />
        </div>
    </div>

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