Conditional inline editing

I think this is pretty similar to