{% extends "base.html" %} {% block title %}{{ "Tile not found" if missing_tile else ("Edit tile" if editing_tile else "New tile") }} · {{ dashboard.title }} · sqldash{% endblock %} {% block topbar %} / {{ dashboard.title }} / {{ "tile not found" if missing_tile else ("edit tile" if editing_tile else "new tile") }} {% endblock %} {% block actions %} ← Back to dashboard {% endblock %} {% block head %}{% if request.query_params.get("embedded") %}{% endif %}{% endblock %} {% block main %}
{% if missing_tile %}
No tile '{{ missing_tile }}' on {{ dashboard.title }}
It was deleted, or renamed so its id changed. This is a blank new tile, so saving here adds a tile instead of editing the one you asked for.
{% endif %}
SELECT 42 AS answer
Results appear below — ⌘⏎ to run
No results yet
Tables from your source are queryable directly
Run the query to preview

{% if editing_tile %}Saves this tile back to {{ name }}.yaml.{% else %}Saves the SQL as a named query in {{ name }}.yaml and places the tile at the bottom of the dashboard.{% endif %}

{% endblock %} {% block scripts %} {% if request.query_params.get("embedded") %}{% endif %} {% endblock %}