The Registrar Retiro screen is the main entry point for students borrowing multimedia equipment at Instituto Superior Brazo Oriental. From here a student enters their identity details, describes the items being taken, draws a digital signature, and submits the loan record — all without requiring staff intervention. The checkout form lives in theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/gavafue/registroComponentesMultimedia/llms.txt
Use this file to discover all available pages before exploring further.
view-checkout section of the single-page app and is always the default active view when the page loads.
Overview of the Checkout Flow
When a student arrives at the equipment desk they open the app in a browser (or on the dedicated kiosk device). The Retirar tab is already active. They fill in their personal data, type or quick-insert the equipment they are borrowing, sign with a finger or mouse, then tap Confirmar Retiro. The record is persisted immediately to the MySQL database via aPOST to api/loans.php and a green success toast confirms the submission.
Open the Retirar tab
The app loads with the Retirar tab active by default. If you are on a different view, click the Retirar button in the top navigation bar.
Enter your Cédula de Identidad
Type your Uruguayan national ID number (cédula) in the Cédula de Identidad field. The field accepts only digits and hyphens, with a minimum of 7 characters and a maximum of 8.
Fill in Nombre y Apellido (and optionally Grupo)
Enter your full name in the Nombre y Apellido field. This is a required free-text field with no length restriction enforced at the HTML level.The Grupo field (e.g.
3º Informática) is optional. Leave it blank if it does not apply. Both fields disable browser autocomplete and autocapitalize to avoid unwanted corrections.Describe the equipment being borrowed
Use the Equipamiento a Retirar textarea to list every item you are taking. You can type freely or click any of the Frecuentes quick-insert buttons to append a common keyword to the field.
Each button calls
| Button label | Appended text |
|---|---|
| Ceibalita | Ceibalita |
| Mouse | Mouse |
| Control | Control |
| Cable HDMI | Cable HDMI |
| Parlante | Parlante |
| Cargador | Cargador |
appendEquipmentKeyword() which smartly separates items with , (or a single space if the field already ends with a comma or newline):Draw your digital signature
Draw your signature inside the Firma canvas area using a mouse on desktop or your finger on a touch screen. The signature pad is implemented by the custom The pad draws in ISBO blue (
SignaturePad class (defined in assets/js/signature.js) attached to the checkout-signature-pad canvas element.#00458a) with rounded line caps for a natural feel. It handles both mouse events (mousedown, mousemove, mouseup) and touch events (touchstart, touchmove, touchend), preventing page scroll while drawing.If you make a mistake, click the trash icon button (data-canvas="checkout-signature-pad") to clear the canvas and start again.Submit the form
Click Confirmar Retiro. The button is temporarily disabled and shows a spinner while the request is in flight.The form The PHP endpoint inserts the record with
submit handler in app.js assembles the payload and calls API.createLoan():API.createLoan() sends a POST request to api/loans.php:status = 'active' and the current server timestamp as checkout_time:Confirmation and reset
On success the app:
- Shows a green toast: ”✓ ¡Registrado exitosamente!”
- Resets the entire form (
e.target.reset()) and clears the signature canvas - Scrolls smoothly back to the top of the page
- Returns focus to the Cédula de Identidad field so the next student can start immediately
navigator.vibrate([100, 50, 100]).Field Reference
| Field | Element ID | Required | Constraints |
|---|---|---|---|
| Cédula de Identidad | ci | Yes | 7–8 chars, pattern [0-9\-]+ |
| Nombre y Apellido | name | Yes | Free text |
| Grupo | group | No | Free text |
| Equipamiento a Retirar | equipment | Yes | Multi-line textarea |
| Firma | checkout-signature-pad | Yes | Must not be empty |
API Request / Response
RequestKeyboard Navigation
The three text fields (ci, name, group) support Enter to advance to the next field. Pressing Enter while in the group field smoothly scrolls to the signature area. The Limpiar button (#btn-clear-checkout) resets the form and signature without submitting.
The inactivity auto-return timer described in the Return guide applies only to the Devolver view. The checkout view has no automatic timeout — it stays active until manually navigated away.