From 181943bf00be0468387559250364e406c28b503a Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Thu, 18 Jun 2026 10:43:09 -0500 Subject: [PATCH] Add CodeMirror SQL editor with autocomplete for tables and columns --- app/templates/base.html | 263 ++++++------ app/templates/queries.html | 852 ++++++++++++++++++++----------------- 2 files changed, 586 insertions(+), 529 deletions(-) diff --git a/app/templates/base.html b/app/templates/base.html index c7ab7cc..fab8e57 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -1,127 +1,136 @@ - - - - - - RIPS Manager - {% block title %}Dashboard{% endblock %} - - - - - -
- {% if user %} - -
-
- - RIPS Manager -
- -
-
-
- {{ user.username[0]|upper }} -
-
-

{{ user.username }}

-

Sesión activa

-
-
-
-
- - -
-
-
-

{% block header %}Dashboard{% endblock %}

-
- - - - -
-
-
-
- {% block content %}{% endblock %} -
-
- {% else %} -
- {% block auth_content %}{% endblock %} -
- {% endif %} -
- - - - + + + + + + RIPS Manager - {% block title %}Dashboard{% endblock %} + + + + + + + + + + + +
+ {% if user %} + +
+
+ + RIPS Manager +
+ +
+
+
+ {{ user.username[0]|upper }} +
+
+

{{ user.username }}

+

Sesión activa

+
+
+
+
+ + +
+
+
+

{% block header %}Dashboard{% endblock %}

+
+ + + + +
+
+
+
+ {% block content %}{% endblock %} +
+
+ {% else %} +
+ {% block auth_content %}{% endblock %} +
+ {% endif %} +
+ + + + diff --git a/app/templates/queries.html b/app/templates/queries.html index de5f1d6..b392061 100644 --- a/app/templates/queries.html +++ b/app/templates/queries.html @@ -1,402 +1,450 @@ -{% extends "base.html" %} -{% block title %}Consultas SQL{% endblock %} -{% block header %}Consultas SQL{% endblock %} -{% block content %} - -
- - -
- -
-
-
-
-
-

Mis Consultas

- -
-
- {% for q in queries %} -
-
-
- {{ q.name }} - {{ q.query_type }} -
-

{{ q.description or 'Sin descripción' }}

-
- -
- {% endfor %} -
-
-
- -
-
-
-

Editor SQL

-
-
-
- -
-
- - -
-
- - -
-
-
- - -
-
- - -
-
- - -
-
-
-
- -
-

Parámetros disponibles

-

- Usa :doc_num para filtro por documento, - :factura para filtro por factura, - :fecha_ini y :fecha_fin para rango de fechas. -

- - -
-
-
-
- - - - -{% endblock %} +{% extends "base.html" %} +{% block title %}Consultas SQL{% endblock %} +{% block header %}Consultas SQL{% endblock %} +{% block content %} + +
+ + +
+ +
+
+
+
+
+

Mis Consultas

+ +
+
+ {% for q in queries %} +
+
+
+ {{ q.name }} + {{ q.query_type }} +
+

{{ q.description or 'Sin descripción' }}

+
+ +
+ {% endfor %} +
+
+
+ +
+
+
+

Editor SQL

+
+
+
+ +
+
+ + +
+
+ + +
+
+
+ + +
+
+
+ + +
+
+ + +
+
+
+
+ +
+

Parámetros disponibles

+

+ Usa :doc_num para filtro por documento, + :factura para filtro por factura, + :fecha_ini y :fecha_fin para rango de fechas. +

+ + +
+
+
+
+ + + + +{% endblock %}