mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Edit SQL button on canned queries, closes #1019
This commit is contained in:
parent
acf07a6772
commit
f3a087a578
4 changed files with 85 additions and 4 deletions
|
|
@ -54,6 +54,7 @@
|
|||
<button id="sql-format" type="button" hidden>Format SQL</button>
|
||||
{% if canned_write %}<input type="hidden" name="csrftoken" value="{{ csrftoken() }}">{% endif %}
|
||||
<input type="submit" value="Run SQL">
|
||||
{% if canned_query and edit_sql_url %}<a href="{{ edit_sql_url }}" class="canned-query-edit-sql">Edit SQL</a>{% endif %}
|
||||
</p>
|
||||
</form>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue