Add function and view for "add repair"