Autofocus an input on modal show

Select the assignment for the select element based on what is being
viewed