<div class="round-border">
    <label for="InputType">Input Type</label>
    <input type="text" id="InputType" name="InputType"
        value="<?= old("InputType", esc($inputtype->InputType)) ?>" spellcheck="true">

    <label for="DisplayOrder">Display Order</label>
    <input type="number" id="DisplayOrder" name="DisplayOrder"
        value="<?= old("InputType", $inputtype->DisplayOrder) ?>">



    <label for="IsCoffee">Is the Input type Coffee?<br />(Demand is calculated by weight than number)</label><br>

    <input type="radio" id="IsCoffeeYes" name="IsCoffee" value="1"
        <?= set_value("IsCoffee", $inputtype->IsCoffee) == 1 ? "checked" : "" ?>>
    <label for="IsCoffeeYes">Yes</label><br>

    <input type="radio" id="IsCoffeeNo" name="IsCoffee" value="0"
        <?= set_value("IsCoffee", $inputtype->IsCoffee) == 0 ? "checked" : "" ?>>
    <label for="IsCoffeeNo">No</label><br>



    <button class="button" type="submit">Save</button>
    <a class="button" href="<?= previous_url() ?>" default>Cancel</a>
</div>