<form action="<?= $article_url ?>" method="post">
    <label for="vote" class="pe-2"><?= __('Select a rating:') ?></label>
    <div class="form-inline">
        <select name="vote" id="vote" class="form-control me-2">
            <?php for ($r = 0; $r < 6; $r++) : ?>
                <option <?= ($r === $userVote ? 'selected ' : '') ?> value="<?= $r ?>"><?= $r ?></option>
            <?php endfor; ?>
        </select><input type="submit" name="rating_submit" class="btn btn-primary" value="<?= __('Vote') ?>"/>
    </div>
</form>
