<?xml version="1.0"?>
<t name="Donation input" t-name="website_payment.donation_input">
        <input name="o_donation_amount" type="number" class="form-control o_amount_input" t-att-min="donation_options.get('minimumAmount')" t-att-max="donation_options.get('customAmount') == 'slider' and donation_options.get('maximumAmount') or undefined" t-att-value="amount" placeholder="Amount to donate" id="other_amount_value"/>
        <small class="text-danger d-none" id="warning_message_id">Please enter the amount to donate.</small>
        <small class="text-danger d-none" id="warning_min_message_id">
            <t t-if="donation_options.get('minimumAmount')">
                The minimum donation amount is
                <t t-set="amount" t-value="donation_options.get('minimumAmount')"/>
                <t t-set="before" t-value="currency.symbol if currency.position == 'before' else ''"/>
                <t t-set="after" t-value="currency.symbol if currency.position != 'before' else ''"/>
                <t t-out="'%s%s%s.' % (before, amount, after)"/>
            </t>
            <t t-else="">
                Enter a valid number!
            </t>
        </small>
    </t>

