Jump to content

MediaWiki:FR2014/Resources/BannerFormHtml

From Meta, a Wikimedia project coordination wiki

<style> /* hide methods which aren't monthly capable when monthly option is selected */ .form-monthly button.no-monthly {

   display: none !important;

} </style> <form id="{{{banner}}}-form" class="frbanner-form" method="GET" name="paypalcontribution">

   <input type="hidden" name="utm_medium" value="sitenotice">
   <input type="hidden" name="utm_campaign" value="{{{campaign}}}">
   <input type="hidden" name="utm_source" value="{{{banner}}}">
   <input type="hidden" name="utm_key" value="">
   <input type="hidden" name="language" value="">
   <input type="hidden" name="country" value="">
   <input type="hidden" name="currency_code" id="input_currency_code" value="">
   <input type="hidden" name="payment_method" value="">
   <input type="hidden" name="payment_submethod" value="">
   <input type="hidden" name="recurring" value="">
   <input type="hidden" name="gateway" value="">
   <input type="hidden" name="ffname" value="">
   <input type="hidden" name="bannerhistlog" value="">
<input type="radio" name="frequency" id="frequency_onetime" onclick="toggleMonthly(false);" value="onetime" checked="checked"><label for="frequency_onetime">One-time</label> <input type="radio" name="frequency" id="frequency_monthly" onclick="toggleMonthly(true);" value="monthly"><label for="frequency_monthly">Monthly*</label>
               <input type="radio" name="amount" id="input_amount_0" onclick="document.paypalcontribution.amountGiven.value=" value="3">
               <label for="input_amount_0">$3</label>
               <input type="radio" name="amount" id="input_amount_1" onclick="document.paypalcontribution.amountGiven.value=" value="5">
               <label for="input_amount_1">$5</label>
               <input type="radio" name="amount" id="input_amount_2" onclick="document.paypalcontribution.amountGiven.value=" value="10">
               <label for="input_amount_2">$10</label>
               <input type="radio" name="amount" id="input_amount_3" onclick="document.paypalcontribution.amountGiven.value=" value="20">
               <label for="input_amount_3">$20</label>
               <input type="radio" name="amount" id="input_amount_4" onclick="document.paypalcontribution.amountGiven.value=" value="30">
               <label for="input_amount_4">$30</label>
               <input type="radio" name="amount" id="input_amount_5" onclick="document.paypalcontribution.amountGiven.value=" value="50">
               <label for="input_amount_5">$50</label>
               <input type="radio" name="amount" id="input_amount_6" onclick="document.paypalcontribution.amountGiven.value=" value="100">
               <label for="input_amount_6">$100</label>
               <input type="radio" name="amount" id="input_amount_other" value="Other">

$<input style="height: 1em;" type="text" name="amountGiven" size="3" autocomplete="off" onfocus="$('#input_amount_other').prop('checked', true);" id="input_amount_other_box">

               <button class="paymentmethod-ideal no-monthly" onclick="redirectPayment('rtbt', 'rtbt_ideal'); return false;" style="display:none;">
                   iDEAL
               </button>
               <button class="paymentmethod-cc" onclick="redirectPayment('cc'); return false;">
                   Credit Card
               </button>
               <button class="paymentmethod-cc-wp no-monthly" onclick="redirectPayment('cc-wp'); return false;" style="display:none;">
                   Credit Card
               </button>
               <button class="paymentmethod-sofort no-monthly" onclick="redirectPayment('rtbt', 'rtbt_sofortuberweisung'); return false;" style="display:none;">
                   Online Bank Transfer
               </button>
               <button class="paymentmethod-bt no-monthly" onclick="redirectPayment('bt'); return false;" style="display:none;">
                   Bank Transfer
               </button>
               <button class="paymentmethod-cash no-monthly" onclick="redirectPayment('cash'); return false;" style="display: none;">
                   Cash
               </button>
               <button class="paymentmethod-pp" onclick="redirectPayment('paypal'); return false;">
                   PayPal
               </button>
               <button class="paymentmethod-amazon no-monthly" onclick="redirectPayment('amazon'); return false;" style="display:none;">
                   Amazon
               </button>
               <button class="paymentmethod-bpay no-monthly" onclick="redirectPayment('obt', 'bpay'); return false;" style="display:none;">
                   BPay
               </button>
               <button class="paymentmethod-enets no-monthly" onclick="redirectPayment('rtbt', 'rtbt_enets'); return false" style="display:none;">
                   eNETS
               </button>
               <button class="paymentmethod-pp-usd" onclick="redirectPayment('paypal', undefined, true); return false;" style="display: none;">
                   PayPal (USD)
               </button>

</form>