How can I make a matrix with different type of input fields?