css class by type resourse add 2 template