busao
    Preparing search index...

    Function renderTripsForm

    • Renders the form used for registering trips.

      Parameters

      • i18n: i18n

        The internationalisation object.

      • route: string

        The API route for adding trips.

      • errorMessage: string = ""

        The error message to be added to the form in case something goes wrong.

      Returns string

      A form for registering trips.

      The form asks for a name (with length limit) and uses a radio button to determine the trip's direction.