[fix bug 1038598] Remove spaces from IDs in edit_event template.