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:
co-authored by
Claude Sonnet 4.6
parent
eb436638fb
commit
5afa846b4e
@@ -3265,6 +3265,7 @@ HTML;
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<button type="button" class="add-btn" onclick="addCmd()">+ Agregar comando</button>
|
<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>
|
</div>
|
||||||
|
|
||||||
<!-- ─── MENUS ────────────────────────────────────────────────────────── -->
|
<!-- ─── MENUS ────────────────────────────────────────────────────────── -->
|
||||||
@@ -3354,6 +3355,7 @@ HTML;
|
|||||||
echo <<<HTML
|
echo <<<HTML
|
||||||
</div>
|
</div>
|
||||||
<button type="button" class="add-btn" onclick="addMenu()">+ Agregar menú</button>
|
<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>
|
</div>
|
||||||
|
|
||||||
<!-- ─── FLOWS ────────────────────────────────────────────────────────── -->
|
<!-- ─── FLOWS ────────────────────────────────────────────────────────── -->
|
||||||
@@ -3629,6 +3631,7 @@ HTML;
|
|||||||
echo <<<HTML
|
echo <<<HTML
|
||||||
</div>
|
</div>
|
||||||
<button type="button" class="add-btn" onclick="addFlowCard()">+ Agregar flujo</button>
|
<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>
|
</div>
|
||||||
|
|
||||||
<!-- ─── POR CATEGORÍA ────────────────────────────────────────────────── -->
|
<!-- ─── POR CATEGORÍA ────────────────────────────────────────────────── -->
|
||||||
@@ -3744,6 +3747,7 @@ HTML;
|
|||||||
<strong>Requiere bot_type = hybrid y proveedor de IA configurado.</strong>
|
<strong>Requiere bot_type = hybrid y proveedor de IA configurado.</strong>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div style="margin-top:14px"><button type="submit" class="btn-primary">💾 Guardar IA</button></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- ─── GENERAL ──────────────────────────────────────────────────────── -->
|
<!-- ─── GENERAL ──────────────────────────────────────────────────────── -->
|
||||||
@@ -3802,6 +3806,7 @@ HTML;
|
|||||||
<div style="font-size:10px;color:#a0a8b8;text-align:center;margin-top:6px">Vista previa aproximada</div>
|
<div style="font-size:10px;color:#a0a8b8;text-align:center;margin-top:6px">Vista previa aproximada</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div style="margin-top:14px"><button type="submit" class="btn-primary">💾 Guardar</button></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="display:flex;gap:12px;margin-top:16px">
|
<div style="display:flex;gap:12px;margin-top:16px">
|
||||||
|
|||||||
Reference in New Issue
Block a user