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

<form id="search-orders" action="<?= admin_url_to('/donate/rescues') ?>">
    <?= csrf_field() ?>

    <div class="modal-body">
        <div class="form-group">
            <label for="username" class="form-control-label"><?= __('Account') ?></label>
            <input type="text" class="form-control" id="username" name="username" />
        </div>

        <div class="form-group">
            <label for="status" class="form-control-label"><?= __('Status') ?></label>
            <select name="status" class="form-control" id="status">
                <option value=""></option>
                <?php foreach (util('Donate.Gateway')->getStatus() as $code => $name): ?>
                    <option value="<?= $code ?>"><?= $name ?></option>
                <?php endforeach ?>
            </select>
        </div>

        <div class="row">
            <div class="col-xs-6">
                <div class="form-group">
                    <label for="created1" class="form-control-label"><?= __('Created start') ?></label>
                    <input data-show-calendar type="text" class="form-control" id="created1" name="created1" />
                </div>
            </div>
            <div class="col-xs-6">
                <div class="form-group">
                    <label for="created2" class="form-control-label"><?= __('Created end') ?></label>
                    <input data-show-calendar type="text" class="form-control" id="created2" name="created2" />
                </div>
            </div>
        </div>
    </div>

    <div class="modal-footer">
        <input type="submit" data-send-modal-form="search-orders" class="btn btn-primary" value="<?= __('Search') ?>" />
    </div>
</form>