use strict;return sub{my $this = shift;my $C = $this->{C};$this->out("");$C->{ListerControlsIncidence}++;$this->out("\n");$this->out(Zen::PerlHandler->get("II5117351e1a4f1d07d1c88690b7a75168->mnt_pgates_list")->do($this->{C}));$this->out("<div class=\"form-inline\">\n<select class=\"custom-select mb-2 mr-sm-2\" name=\"PGatesAddSelector$C->{ListerControlsIncidence}\">\n<option value=\"\"> Select a payment option type to add...\n");my $in = $C->{PGatesList};my $loop = ref($in) eq "ARRAY" ? $in : ref($in) eq "CODE" ? &{$in} : [];$C->{ITERATION}{t} = -1;for my $f (@$loop) {$C->{ITERATION}{t}++;$C->{t} = $f;$this->out("<option value=\"$C->{t}{type}\"> $C->{t}{title}\n");}$this->out("</select>\n\n<input type=button class=\"btn btn-primary mb-2 mr-sm-2\" value=\"Add\" onClick=\"var f = document.forms[\'Lister\']; var sel = f.PGatesAddSelector$C->{ListerControlsIncidence}; var pgt = sel.options[sel.selectedIndex].value; if (pgt == null || pgt == \'\') { alert(\'You should choose a payment option type to add\') } else { f.elements[\'TabCustom1\'].value = pgt; f.elements[\'TabAct\'].value = \'edit\'; f.submit() }\">\n</div>\n");}