Spaces:
Sleeping
Sleeping
| {% extends "base.html.j2" %} | |
| {% import "components.html.j2" as ui %} | |
| {% block content %} | |
| <header class="doc-header"> | |
| <h1>User Event 路 {{ doc.metadata.description or doc.metadata.script_type }}</h1> | |
| <p class="doc-header-meta"> | |
| SuiteScript {{ doc.metadata.suitescript_version or "N/D" }} | |
| </p> | |
| <p class="muted">Eventos server-side sobre records.</p> | |
| </header> | |
| {{ ui.metadata_block(doc.metadata) }} | |
| {{ ui.summary_block(doc.summary) }} | |
| {# ============================================================ | |
| EVENTOS IMPLEMENTADOS | |
| ============================================================ #} | |
| {% if doc.events %} | |
| <div class="section"> | |
| <h2>Eventos implementados</h2> | |
| {% if doc.events is mapping %} | |
| {% for name, description in doc.events.items() if description %} | |
| <h3>{{ name }}</h3> | |
| <p>{{ description }}</p> | |
| {% endfor %} | |
| {% else %} | |
| <p>{{ doc.events }}</p> | |
| {% endif %} | |
| </div> | |
| {% endif %} | |
| {# ============================================================ | |
| VALIDACIONES | |
| ============================================================ #} | |
| {% if doc.validations %} | |
| {{ ui.list_block("Validaciones", doc.validations) }} | |
| {% endif %} | |
| {# ============================================================ | |
| B脷SQUEDAS | |
| ============================================================ #} | |
| {% if doc.searches %} | |
| {{ ui.table_block("B煤squedas", doc.searches, [ | |
| {"field": "type", "title": "Tipo"}, | |
| {"field": "filters", "title": "Filtros"}, | |
| {"field": "columns", "title": "Columnas"} | |
| ]) }} | |
| {% endif %} | |
| {# ============================================================ | |
| OPERACIONES EN REGISTROS | |
| ============================================================ #} | |
| {% if doc.record_operations %} | |
| {{ ui.table_block("Operaciones en registros", doc.record_operations, [ | |
| {"field": "type", "title": "Operaci贸n"}, | |
| {"field": "record", "title": "Record"}, | |
| {"field": "details", "title": "Detalles"} | |
| ]) }} | |
| {% endif %} | |
| {# ============================================================ | |
| SIDE EFFECTS | |
| ============================================================ #} | |
| {% if doc.side_effects %} | |
| {{ ui.list_block("Side effects", doc.side_effects) }} | |
| {% endif %} | |
| {# ============================================================ | |
| ERRORES | |
| ============================================================ #} | |
| {% if doc.errors %} | |
| {% if doc.errors is mapping %} | |
| {{ ui.list_block("Errores detectados", doc.errors.explicit_checks or []) }} | |
| {{ ui.list_block("Manejo de excepciones", doc.errors.exception_handling or []) }} | |
| {% else %} | |
| {{ ui.table_block("Errores", doc.errors, [ | |
| {"field": "location", "title": "Ubicaci贸n"}, | |
| {"field": "description", "title": "Descripci贸n"} | |
| ]) }} | |
| {% endif %} | |
| {% endif %} | |
| {% endblock %} | |