use strict;return sub{my $this = shift;my $C = $this->{C};$this->out("<div class=\"font-weight-bold text-primary text-uppercase mb-1\">Labels</div>\n<div class=\"form-group\">\n	<a class=\"atkControl\" href=\"#\" onClick=\"popWin=window.open(\'$C->{ENV}{SCRIPT_NAME}/zen/table/labelling_table.html?TableClass=$C->{TableClass}&first_load=1\',\'popWin\',\'toolbar=0,status=0,width=600,height=300\'); return false;\">Create / edit</a>\n</div>\n<div class=\"form-group\">\n	<label for=\"text\">Add</label> \n	\n		<span id=atkLabelAdd_$C->{Object}{id}></span>\n</div>\n<div class=\"form-group\">\n	<label for=\"text\">Remove</label> \n	\n		<span id=atkLabelRemove_$C->{Object}{id}></span>\n</div>\n<script type=\"text/javascript\" src=\"$C->{ENV}{SCRIPT_NAME}/suppl/atk/labelling.js\"></script>\n<script type=\"text/javascript\">\n	atkLblEditAddLabels($C->{Object}{id}, \'$C->{ENV}{SCRIPT_NAME}/action/Zen/Table/Labelling/object_labels.html?TableClass=$C->{TableClass}&ObjectId=$C->{Object}{id}&act=edit&mode=form&form_type=add\');\n	atkLblEditRemoveLabels($C->{Object}{id}, \'$C->{ENV}{SCRIPT_NAME}/action/Zen/Table/Labelling/object_labels.html?TableClass=$C->{TableClass}&ObjectId=$C->{Object}{id}&act=edit&mode=form&form_type=remove\');\n	setTimeout(function () {\n		if (popWin.closed)\n		{\n			atkLblEditAddLabels($C->{Object}{id}, \'$C->{ENV}{SCRIPT_NAME}/action/Zen/Table/Labelling/object_labels.html?TableClass=$C->{TableClass}&ObjectId=$C->{Object}{id}&act=edit&mode=form&form_type=add\');\n			atkLblEditRemoveLabels($C->{Object}{id}, \'$C->{ENV}{SCRIPT_NAME}/action/Zen/Table/Labelling/object_labels.html?TableClass=$C->{TableClass}&ObjectId=$C->{Object}{id}&act=edit&mode=form&form_type=remove\');\n		}\n		else\n		{\n			setTimeout(arguments.callee, 5);\n		}\n	}, 5);\n</script>\n");}