Hello, there are a few workbooks and books quite usefull, for practice and learn portuguese grammar theory. This is a good one.
MODERN BRAZILIAN PORTUGUESE GRAMMAR
And there are others...
ESSENTIAL PORTUGUESE GRAMMAR
MODERN BRAZILIAN PORTUGUESE GRAMMAR WORKBOOK