Add missing template.
This commit is contained in:
		
							parent
							
								
									560cbb0843
								
							
						
					
					
						commit
						16c8e9a360
					
				
							
								
								
									
										23
									
								
								templates/run_sql.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								templates/run_sql.html
									
									
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,23 @@
 | 
			
		|||
{% 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 %}
 | 
			
		||||
		Loading…
	
		Reference in a new issue