Insert inputs in place of its template