Replace input template by component