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

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

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

        <div class="form-group">
            <label for="type" class="form-control-label"><?= __('Type') ?></label>
            <select name="type" class="form-control" id="type">
                <option value=""></option>
                <?php foreach ($types as $type): ?>
                    <option value="<?= $type ?>"><?= $type ?></option>
                <?php endforeach ?>
            </select>
        </div>

    </div>

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