Fixed CodeMirror on database page, closes #560

pull/561/head
Simon Willison 2019-07-13 20:38:40 -07:00
rodzic 6abe6faff6
commit a9453c4dda
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -25,7 +25,7 @@
{% if config.allow_sql %} {% if config.allow_sql %}
<form class="sql" action="{{ database_url(database) }}" method="get"> <form class="sql" action="{{ database_url(database) }}" method="get">
<h3>Custom SQL query</h3> <h3>Custom SQL query</h3>
<p><textarea name="sql">{% if tables %}select * from {{ tables[0].name|escape_sqlite }}{% else %}select sqlite_version(){% endif %}</textarea></p> <p><textarea id="sql-editor" name="sql">{% if tables %}select * from {{ tables[0].name|escape_sqlite }}{% else %}select sqlite_version(){% endif %}</textarea></p>
<p><input type="submit" value="Run SQL"></p> <p><input type="submit" value="Run SQL"></p>
</form> </form>
{% endif %} {% endif %}