{"body": [{"html": "<div class=\"alert alert-info mb-4\"><span class=\"font-semibold\">Tip:</span> Define reusable sections once and reuse them across every RFQ. Use the template filter to scope sections, preview content, and manage attachments before issuing a request.</div>", "type": "html"}, {"tabs": [{"label": "Overview", "elements": [{"type": "table", "options": {"addButton": false, "tableName": "rfq_templates", "editFormId": 620, "filterField": "rfq_template_id", "columnsToShow": ["name", "category", "is_default", "valid_from", "valid_until"], "showGlobalSearch": true}}]}, {"label": "Sections", "elements": [{"html": "<p class=\"text-sm text-gray-600 mb-3\">Break the RFQ into modular sections (scope, schedule, evaluation) so teams can tailor content per category.</p>", "type": "html"}, {"type": "button", "class": "btn btn-primary btn-sm mb-3", "label": "Add Section", "formName": "RFQ Template Section", "prefillFilter": "rfq_template_id"}, {"type": "table", "options": {"addButton": false, "tableName": "rfq_template_sections", "editFormId": 621, "filterField": "rfq_template_id", "columnsToShow": ["heading", "section_key", "sort_order", "is_required", "include_in_print"], "showGlobalSearch": false}}]}, {"label": "Preview", "elements": [{"html": "<p class=\"text-sm text-gray-600 mb-3\">Sections render below in sort order so you can review the narrative before publishing the template.</p>", "type": "html"}, {"type": "table", "options": {"addButton": false, "tableName": "rfq_template_sections", "editFormId": 621, "filterField": "rfq_template_id", "columnsToShow": ["sort_order", "heading", "body_markdown", "body_html"], "showGlobalSearch": false}}]}, {"label": "Attachments", "elements": [{"html": "<p class=\"text-sm text-gray-600 mb-3\">Attach boilerplate documents like NDAs or compliance packs that should accompany the RFQ.</p>", "type": "html"}, {"type": "button", "class": "btn btn-primary btn-sm mb-3", "label": "Add Attachment", "formName": "RFQ Template Attachment", "prefillFilter": "rfq_template_id"}, {"type": "table", "options": {"addButton": false, "tableName": "rfq_template_attachments", "editFormId": 622, "filterField": "rfq_template_id", "columnsToShow": ["label", "filetype", "include_when", "sort_order"], "showGlobalSearch": false}}]}], "type": "tabs"}], "title": "RFQ Templates", "footer": [{"type": "button", "label": "Close", "onClick": "closeModal"}], "header": [{"type": "button", "label": "Add Template", "formName": "RFQ Template"}, {"id": "templateFilter", "type": "filter-select", "options": {"data_column": "rfq_template_id", "placeholder": "Select template...", "source_table": "rfq_templates", "default_label": "All Templates", "source_column": "rfq_template_id", "display_column": "name"}}]}