Graying out allocation button and detailed allocations on sales order

I need to be able to gray out the allocation button on a sales order and also make it to where a user can't select manual allocation either on the line.  I have global allocation set as the value in the allocation type parameter, but this isn't disabling either of these functions.

Thanks in advance!