generate model input id attribute by modelName