<?= partial('rates') ?>

<p style="margin-bottom:2px;"><span class="off">*</span> <?= __('Quantity of resets available: %d', [$character->getResets()]) ?></p>

<form style="margin-top:10px" data-ajax action="<?= url_to('/panel/character/' . $character->getName() . '/transfer-resets') ?>" class="form" method="post">
    <?= csrf_field() ?>

    <div class="box-panel">
        <div class="box-panel-title"><?= __('Transfer resets') ?></div>
        <div class="box-panel-content">

            <div class="row">
                <div class="label">
                    <label for="resets"><?= __('Quantity of resets') ?> <span class="required">*</span></label>
                </div>
                <div class="field">
                    <input type="text" id="resets" name="resets" maxlength="7" style="width:100%" />
                </div>
            </div>
            <div class="row">
                <div class="label">
                    <label for="character"><?= __('Target character') ?> <span class="required">*</span></label>
                </div>
                <div class="field">
                    <select id="character" name="character" style="width:100%">
                        <option value=""></option>
                        <?php foreach ($available as $name): ?>
                            <option value="<?= $name ?>"><?= $name ?></option>
                        <?php endforeach ?>
                    </select>
                </div>
            </div>

        </div>
        <div class="submit">
            <input type="submit" class="btn" value="<?= __('Transfer') ?>">
        </div>
    </div>
</form>