Drupal: Uporabnik sam izbere čas trajanja in PayPal začasno skrijemo.

This commit is contained in:
Robert Smalc 2020-08-21 13:46:35 +02:00
parent 5f2b5b72b6
commit 614a73a4cc
2 changed files with 16 additions and 12 deletions

View File

@ -647,6 +647,10 @@
jQuery('[name="payment_method"]').siblings().addClass('error-field');
}
if(!jQuery('[name="trajanje"]').is(":checked")){
jQuery('[name="trajanje"]').siblings().addClass('error-field');
}
// Dodamo opozorilov input polja in tudi sklop obarvamo rdeče
jQuery(':input[required]:visible').each(function () {
if (jQuery(this).val() == '') {

View File

@ -100,7 +100,7 @@
</label>
</span>
<input type="radio" id="trajanje12m" name="trajanje" value="12" required="required" checked="checked">
<input type="radio" id="trajanje12m" name="trajanje" value="12" required="required">
<span class="mesec">
<label for="trajanje12m">
<?php if ($language->language == 'sl'): ?>
@ -497,17 +497,17 @@
</label>
</span>
<input type="radio" id="paymentMethod2" name="payment_method" value="2" required="required">
<span class="paket vrsta-placila">
<label for="paymentMethod2">
<?php if ($language->language == 'sl'): ?>
Plačilo preko PayPal računa
<?php else: ?>
Payment via PayPal account
<?php endif; ?>
</label>
<img src="/d/sites/all/themes/pro1ka/img/paypal_logo.png" class="logo">
</span>
<!-- <input type="radio" id="paymentMethod2" name="payment_method" value="2" required="required">-->
<!-- <span class="paket vrsta-placila">-->
<!-- <label for="paymentMethod2">-->
<!-- --><?php //if ($language->language == 'sl'): ?>
<!-- Plačilo preko PayPal računa-->
<!-- --><?php //else: ?>
<!-- Payment via PayPal account-->
<!-- --><?php //endif; ?>
<!-- </label>-->
<!-- <img src="/d/sites/all/themes/pro1ka/img/paypal_logo.png" class="logo">-->
<!-- </span>-->
<input type="radio" id="paymentMethod3" name="payment_method" value="3" required="required" checked="checked">
<span class="paket vrsta-placila">