Fixed badge registation page and edit of top level requirements.
Another type mismatch.
Fixed a couple of regresions.
Added tooltip to badges on the gallery page.
Fixed some more types.
Added badge cords. Added badge requirements editing.
Added index and deleted to badge_requirements.
Coverted some missing stuff from the bootstrap 3 to bootstrap 5. Introduced the bootstrap toggles again. Changed to bootstrap tooltips.