Store criteria inputs when changing badge type

Store the current entered values in the criteria form's markup so
changing the badge type doesn't lose work. Fixes #20