owl-map/templates/run_sql.html

24 lines
522 B
HTML
Raw Permalink Normal View History

2023-05-14 16:45:22 +01:00
{% extends "base.html" %}
{% block title %}{% endblock %}
{% block content %}
<div class="container my-2">
<form method="POST">
<div class="mb-3">
<label for="sql" class="form-label">SQL</label>
<textarea class="form-control" id="sql" name="sql" rows="6">{{ request.form.sql }}</textarea>
</div>
<button type="submit" class="btn btn-primary">run</button>
</form>
{% if result %}
{% for row in result %}
<pre>{{ row }}</pre>
{% endfor %}
{% endif %}
</div>
{% endblock %}