{"title":"RFQ Templates","header":[{"type":"button","label":"Add Template","formName":"RFQ Template"},{"type":"filter-select","id":"templateFilter","options":{"source_table":"rfq_templates","source_column":"rfq_template_id","display_column":"name","data_column":"rfq_template_id","placeholder":"Select template...","default_label":"All Templates"}}],"body":[{"type":"html","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":"tabs","tabs":[{"label":"Overview","elements":[{"type":"table","options":{"tableName":"rfq_templates","showGlobalSearch":true,"addButton":false,"editFormId":620,"filterField":"rfq_template_id","columnsToShow":["name","category","is_default","valid_from","valid_until"]}}]},{"label":"Sections","elements":[{"type":"html","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":"button","label":"Add Section","formName":"RFQ Template Section","prefillFilter":"rfq_template_id","class":"btn btn-primary btn-sm mb-3"},{"type":"table","options":{"tableName":"rfq_template_sections","showGlobalSearch":false,"addButton":false,"editFormId":621,"filterField":"rfq_template_id","columnsToShow":["heading","section_key","sort_order","is_required","include_in_print"]}}]},{"label":"Preview","elements":[{"type":"html","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":"table","options":{"tableName":"rfq_template_sections","showGlobalSearch":false,"addButton":false,"editFormId":621,"filterField":"rfq_template_id","columnsToShow":["sort_order","heading","body_markdown","body_html"]}}]},{"label":"Attachments","elements":[{"type":"html","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":"button","label":"Add Attachment","formName":"RFQ Template Attachment","prefillFilter":"rfq_template_id","class":"btn btn-primary btn-sm mb-3"},{"type":"table","options":{"tableName":"rfq_template_attachments","showGlobalSearch":false,"addButton":false,"editFormId":622,"filterField":"rfq_template_id","columnsToShow":["label","filetype","include_when","sort_order"]}}]}]}],"footer":[{"type":"button","label":"Close","onClick":"closeModal"}]}