Fixed template display issue for model index where delete button is not dislayed for records that cannot be deleted.