tenant_form = (req, base_url) =>
  new Form({
    action: "/tenant/create",
    submitLabel: req.__("Create"),
    labelCols: 4,
    blurb: req.__(
      "Please select a name for your application. The name will determine the address at which it will be available. "
    ),
    fields: [
      {
        name: "subdomain",
        label: req.__("Application name"),
        input_type: "text",
        postText: text("." + base_url),
        attributes: { autofocus: true },
      },
    ],
  })
Declare Form to create Tenant
@param {object} req - Request
@param base_url - Base URL
@returns {Form} - Saltcorn Form Declaration
@category server