|
|
{% extends "base.html.j2" %} |
|
|
{% import "components.html.j2" as ui %} |
|
|
|
|
|
{% block content %} |
|
|
<header class="doc-header"> |
|
|
<h1>Suitelet 路 {{ 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">Procesos de UI y rutas Suitelet.</p> |
|
|
</header> |
|
|
|
|
|
{{ ui.metadata_block(doc.metadata) }} |
|
|
{{ ui.summary_block(doc.summary) }} |
|
|
|
|
|
|
|
|
{% if doc.flow %} |
|
|
<div class="section"> |
|
|
<h2>Flujo de Ejecuci贸n</h2> |
|
|
|
|
|
{% if doc.flow.get %} |
|
|
<h3>GET</h3> |
|
|
<p>{{ doc.flow.get }}</p> |
|
|
{% endif %} |
|
|
|
|
|
{% if doc.flow.post %} |
|
|
<h3>POST</h3> |
|
|
<p>{{ doc.flow.post }}</p> |
|
|
{% endif %} |
|
|
</div> |
|
|
{% endif %} |
|
|
|
|
|
|
|
|
{% if doc.inputs %} |
|
|
{{ ui.table_block("Par谩metros GET", doc.inputs.get_parameters, [ |
|
|
{"field": "name", "title": "Nombre"}, |
|
|
{"field": "description", "title": "Descripci贸n"}, |
|
|
{"field": "type", "title": "Tipo"} |
|
|
]) }} |
|
|
|
|
|
{{ ui.table_block("Par谩metros POST", doc.inputs.post_parameters, [ |
|
|
{"field": "name", "title": "Nombre"}, |
|
|
{"field": "description", "title": "Descripci贸n"}, |
|
|
{"field": "validation", "title": "Validaci贸n"} |
|
|
]) }} |
|
|
|
|
|
|
|
|
{{ ui.table_block("Validaciones", doc.inputs.validations, [ |
|
|
{"field": "parameter", "title": "Par谩metro"}, |
|
|
{"field": "validation_rule", "title": "Regla de validaci贸n"} |
|
|
]) }} |
|
|
{% endif %} |
|
|
|
|
|
|
|
|
{% if doc.form %} |
|
|
{{ ui.table_block("Campos del formulario", doc.form.fields, [ |
|
|
{"field": "id", "title": "ID"}, |
|
|
{"field": "label", "title": "Etiqueta"}, |
|
|
{"field": "type", "title": "Tipo"}, |
|
|
{"field": "default_value", "title": "Valor por defecto"} |
|
|
]) }} |
|
|
|
|
|
{{ ui.table_block("Grupos de campos", doc.form.field_groups, [ |
|
|
{"field": "id", "title": "ID"}, |
|
|
{"field": "label", "title": "Etiqueta"}, |
|
|
{"field": "fields", "title": "Campos"} |
|
|
]) }} |
|
|
|
|
|
{{ ui.table_block("Botones", doc.form.buttons, [ |
|
|
{"field": "label", "title": "Etiqueta"}, |
|
|
{"field": "type", "title": "Tipo"} |
|
|
]) }} |
|
|
{% endif %} |
|
|
|
|
|
|
|
|
{% if doc.logic %} |
|
|
{{ ui.table_block("B煤squedas", doc.logic.searches, [ |
|
|
{"field": "type", "title": "Tipo"}, |
|
|
{"field": "filters", "title": "Filtros"}, |
|
|
{"field": "columns", "title": "Columnas"}, |
|
|
{"field": "limit", "title": "L铆mite"} |
|
|
]) }} |
|
|
|
|
|
|
|
|
{{ ui.list_block("Operaciones con registros", doc.logic.record_operations) }} |
|
|
|
|
|
{{ ui.list_block("Side effects", doc.logic.side_effects) }} |
|
|
{% endif %} |
|
|
|
|
|
|
|
|
{% if doc.errors is mapping %} |
|
|
|
|
|
{{ ui.list_block("Chequeos expl铆citos", doc.errors.explicit_checks) }} |
|
|
|
|
|
{{ ui.list_block("Manejo de excepciones", doc.errors.exception_handling) }} |
|
|
{% else %} |
|
|
|
|
|
{{ ui.list_block("Errores", doc.errors) }} |
|
|
{% endif %} |
|
|
{% endblock %} |
|
|
|