edit directive template