a small relational database with user-editable schema for manual data entry
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
{% extends "_layout" %}
|
|
|
|
|
|
|
|
{% block title -%}
|
|
|
|
Objects
|
|
|
|
{%- endblock %}
|
|
|
|
|
|
|
|
{% block nav -%}
|
|
|
|
<a href="/models">Edit models</a>
|
|
|
|
<a href="/takeout">JSON</a>
|
|
|
|
{%- endblock %}
|
|
|
|
|
|
|
|
{% block content -%}
|
|
|
|
|
|
|
|
<h1>Objects</h1>
|
|
|
|
|
|
|
|
{% for table in models %}
|
|
|
|
|
|
|
|
<h2>{{ table.model.name }}</h2>
|
|
|
|
<a href="/object/create/{{table.model.id}}">Add {{ table.model.name }}</a>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
{% for object in table.objects %}
|
|
|
|
<li><a href="/object/detail/{{object.id}}">{{object.name}}</a> (<a href="/object/update/{{object.id}}">Edit</a>,
|
|
|
|
<a href="/object/delete/{{object.id}}" onclick="return confirm('Delete object?')">Delete</a>)
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
{%- endblock %}
|