directives: create alert directive