use strict;return sub{my $this = shift;my $C = $this->{C};$this->out("<table border=0 cellpadding=0 cellspacing=1 class=atkMainTable>\n<tr><td class=atkHeader>Link Paypal account to Delavo</td></tr>\n<tr><td><table class=atkInnerTable cellpadding=4 cellspacing=3 width=100\%>\n<tr>\n	<td class=atkEditorRight>\n	<span style=\"font-size:110\%\">\n");if ( $C->{UserObj}{isAdaptpayEnabledInSystem} ) {$this->out("		<b>Please link your Paypal account to your Delavo account.</b><br><br>\n		<b style=\"color:red\">Note:</b>&nbsp;You need to have a Business or Premium Paypal account Verified by Paypal.<br><br>\n");if ( $C->{Object}{pg_paypal_email} ) {$this->out("			1. Check if your Paypal address below is correct<br>\n");} else {$this->out("			1. Enter your Paypal email address below<br>\n");}$this->out("		2. Click <b>\"Link Paypal now\"</b> button<br>\n		3. Login to Paypal using the same email address that you entered<br>\n		4. Click <b>\"Grant Permission\"</b> button<br>\n		5. What until you are redirected back to Delavo<br>\n		6. That`s it!<br>\n		<br>\n		<b>Your Paypal email address:</b><br>\n		$C->{Form}{pg_paypal_email}\n		<input type=\"button\" class=\"\"btn btn-primary\"\" style=\"font-size:90\%\" value=\"Link Paypal now\" onClick=\"if (document.forms[\'Editor\'].elements[\'pg_paypal_email\'].value == \'\') alert(\'You need to enter your Paypal email in the field\'); else atkGoActionEditor(\'paypal_adaptpay_link\')\">\n");} else {$this->out("		Linking Paypal account is not possible because Delavo administrator does not have a Paypal Adaptive settings. Please contact Delavo administrator\n");}$this->out("	</span>\n	</td>\n</tr>\n</table></td></tr>\n<tr><td class=atkEditorControl>&nbsp;</td></tr>\n</table>\n");}