..F....... [ZBX-1268] refactored so PHP and js side render the same html