busao
    Preparing search index...

    Function renderAdminTripsTable

    • Renders the table used by the admin to see all trips by date, direction and status.

      Parameters

      • i18n: i18n

        The internationalisation object.

      • database: BunSQLiteDatabase

        The project's database.

      • route: string

        The API route for trip search.

      • date: Date

        The current date.

      • trip: TripDirection

        The direction of the trips.

      • status: TripStatus

        The status of the trips.

      • search: string

        The input of the search bar associated to the table.

      • swap: boolean = true

        Whether to swap any tables with matching ID.

      Returns string

      A table containing all trips by date, direction and status, for the admin to freely manage.

      The admin table has buttons for clearing specific trips and all of its associated trips.