@Override
  protected void initForm(
      FormItemContainer formLayout, Controller listener, final UserRequest ureq) {
    titleContainer = FormLayoutContainer.createHorizontalFormLayout("titleLayout", getTranslator());
    formLayout.add(titleContainer);

    // spacer
    formLayout.add(new SpacerElementImpl("spacer1"));

    long defaultWeekRange = numDaysRange_ * 24 * 60 * 60 * 1000;

    // from date
    fromDate =
        new JSDateChooser(
            "fromDate", new Date(new Date().getTime() - defaultWeekRange), getLocale());
    fromDate.setLabel("datechooser.bdate", null);
    fromDate.setExampleKey("datechooser.example.bdate", null);
    fromDate.setDisplaySize(fromDate.getExampleDateString().length());
    formLayout.add(fromDate);
    // end date
    toDate = new JSDateChooser("toDate", new Date(), getLocale());
    toDate.setLabel("datechooser.edate", null);
    toDate.setExampleKey("datechooser.example.edate", null);
    toDate.setDisplaySize(toDate.getExampleDateString().length());
    formLayout.add(toDate);

    // submit button
    subm = new FormSubmit("subm", "datechooser.generate");
    formLayout.add(subm);

    formLayout.add(new SpacerElementImpl("spacer2"));
  }