There are several user types in my system and when the jobcosting page is checked(check box is checked) by usertype1 the jobcosting inputs should be disabled for usertype1. Then the usertype2 is suppose to check the jobcosting , when usertype2 checks it jobcosting inputs should be disabled to usertype1 and usertype2. This pattern goes until usertype3
What i have thought is to use gates (to check the usertype) and then in the views to use @can and have the inputs, then disable the inputs one by one accordingly. But the code is getting to ugly to maintain in this way. Is there a better way to do this?