Create a confirmation dialog directive for #301