I had put my glasses on the table, and my friend forgot to take it for me when we went outside.
First, I had put my glasses, and then my friend forgot. That is why I use Past Perfect for the first clause and Past Simple for the second one.
However, I do not understand the situation with the dependent clause. Please, help me to understand which verb tense I need to use in the dependent clause.