generate_shinyinput function

A helper function that takes a model and generates shiny UI elements