Fix: Field birthday must be hidden for moral members
This commit is contained in:
parent
b667400cc1
commit
86645d8be9
@ -498,7 +498,7 @@ if (empty($conf->global->ADHERENT_LOGIN_NOT_REQUIRED))
|
|||||||
print '<tr><td>'.$langs->trans("PasswordAgain").' <FONT COLOR="red">*</FONT></td><td><input type="password" name="pass2" size="20" value="'.GETPOST("pass2").'"></td></tr>'."\n";
|
print '<tr><td>'.$langs->trans("PasswordAgain").' <FONT COLOR="red">*</FONT></td><td><input type="password" name="pass2" size="20" value="'.GETPOST("pass2").'"></td></tr>'."\n";
|
||||||
}
|
}
|
||||||
// Birthday
|
// Birthday
|
||||||
print '<tr><td>'.$langs->trans("DateToBirth").'</td><td>';
|
print '<tr id="trbirth" class="trbirth"><td>'.$langs->trans("DateToBirth").'</td><td>';
|
||||||
print $form->select_date($birthday,'birth',0,0,1,"newmember");
|
print $form->select_date($birthday,'birth',0,0,1,"newmember");
|
||||||
print '</td></tr>'."\n";
|
print '</td></tr>'."\n";
|
||||||
// Photo
|
// Photo
|
||||||
@ -551,8 +551,9 @@ if (! empty($conf->global->MEMBER_NEWFORM_DOLIBARRTURNOVER))
|
|||||||
}
|
}
|
||||||
if (jQuery("#morphy").val()==\'mor\') {
|
if (jQuery("#morphy").val()==\'mor\') {
|
||||||
jQuery(".amount").val(\'\');
|
jQuery(".amount").val(\'\');
|
||||||
jQuery("#trbudget").show();
|
|
||||||
jQuery("#trcompany").show();
|
jQuery("#trcompany").show();
|
||||||
|
jQuery("#trbirth").hide();
|
||||||
|
jQuery("#trbudget").show();
|
||||||
if (jQuery("#budget").val() > 0) { jQuery(".amount").val(jQuery("#budget").val()); }
|
if (jQuery("#budget").val() > 0) { jQuery(".amount").val(jQuery("#budget").val()); }
|
||||||
else { jQuery("#budget").val(\'\'); }
|
else { jQuery("#budget").val(\'\'); }
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user