File size: 2,805 Bytes
7d0c16f 0324409 7d0c16f 0324409 7d0c16f 0324409 7d0c16f 0324409 7d0c16f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
{% 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 %}
|