[IMPROVEMENT] Adding custom loop selection in cfct_loop template

Signed-off-by: Simone Conti <s.conti@itnok.com>