Complex sentence: Only those civilians with essential jobs were allowed to stay but it gave the entire community a sense of being'British' by sharing in the war effort.
Split into simpler sentences: Only those civilians with essential jobs were allowed to stay. However, this event gave the entire community a sense of "Britishness" by sharing in the war effort.