Add per-tab save buttons in bot-config page

Each tab (Comandos, Menús, Flujos, IA, General) now has its own
submit button so the user doesn't have to scroll to the bottom.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-07-04 22:16:04 -05:00
co-authored by Claude Sonnet 4.6
parent eb436638fb
commit 5afa846b4e
+5
View File
@@ -3265,6 +3265,7 @@ HTML;
</tbody>
</table>
<button type="button" class="add-btn" onclick="addCmd()">+ Agregar comando</button>
<div style="margin-top:14px"><button type="submit" class="btn-primary">💾 Guardar</button></div>
</div>
<!-- ─── MENUS ────────────────────────────────────────────────────────── -->
@@ -3354,6 +3355,7 @@ HTML;
echo <<<HTML
</div>
<button type="button" class="add-btn" onclick="addMenu()">+ Agregar menú</button>
<div style="margin-top:14px"><button type="submit" class="btn-primary">💾 Guardar</button></div>
</div>
<!-- ─── FLOWS ────────────────────────────────────────────────────────── -->
@@ -3629,6 +3631,7 @@ HTML;
echo <<<HTML
</div>
<button type="button" class="add-btn" onclick="addFlowCard()">+ Agregar flujo</button>
<div style="margin-top:14px"><button type="submit" class="btn-primary">💾 Guardar</button></div>
</div>
<!-- ─── POR CATEGORÍA ────────────────────────────────────────────────── -->
@@ -3744,6 +3747,7 @@ HTML;
<strong>Requiere bot_type = hybrid y proveedor de IA configurado.</strong>
</div>
</div>
<div style="margin-top:14px"><button type="submit" class="btn-primary">💾 Guardar IA</button></div>
</div>
<!-- ─── GENERAL ──────────────────────────────────────────────────────── -->
@@ -3802,6 +3806,7 @@ HTML;
<div style="font-size:10px;color:#a0a8b8;text-align:center;margin-top:6px">Vista previa aproximada</div>
</div>
</div>
<div style="margin-top:14px"><button type="submit" class="btn-primary">💾 Guardar</button></div>
</div>
<div style="display:flex;gap:12px;margin-top:16px">