Build recurrence input parameters in widget.

Moved from template to widget for easier customization.