Prove that every ideal of a Boolean algebra is principal iff is finite.

I cannot seem to prove either direction, here. I have photographed and uploaded the chapter text, which can be downloaded in pdf format here. The exercise in question is #10 from section 5.

Any help would be much appreciated!