In the fan connect the red/brown to the Live,
black/blue to the Neutral,
Put some green and yellow earth sleeving on the earth wire and fold it out the way but keep it within the fan.
On the other end take the bare earth that has been used as Switched Live out of the SL terminal and put some green and yellow sleeving on it, connect it to the earth terminal or with the other earths in the switch.
Move the red/brown cable that is going to the fan from the Live terminal into the Switch Live terminal.
This way the fan will come on and go off when you switch the lights on and off. If you want the fan to over-run then you will need to replace the fan and the cable to the fan.
black/blue to the Neutral,
Put some green and yellow earth sleeving on the earth wire and fold it out the way but keep it within the fan.
On the other end take the bare earth that has been used as Switched Live out of the SL terminal and put some green and yellow sleeving on it, connect it to the earth terminal or with the other earths in the switch.
Move the red/brown cable that is going to the fan from the Live terminal into the Switch Live terminal.
This way the fan will come on and go off when you switch the lights on and off. If you want the fan to over-run then you will need to replace the fan and the cable to the fan.