busao
    Preparing search index...

    Function renderUpdateSeatCountForm

    • Renders the form used by the admin to update the total number of seats available.

      Parameters

      • i18n: i18n

        The internationalisation object.

      • database: BunSQLiteDatabase

        The project's database.

      • trip: TripDirection

        The direction of the trips that will have their seat count updated.

      • maxSeats: number

        The new number of maximum seats.

      • errorMessage: string = ""

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

      Returns string

      A form to update the number of available seats.

      The maximum value is the starting maximum set at deployment.

      The default value is the last value that was set.