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.
65 lines
1.2 KiB
65 lines
1.2 KiB
4 years ago
|
{% extends "_layout" %}
|
||
|
|
||
|
{% block title -%}
|
||
|
Index
|
||
|
{%- endblock %}
|
||
|
|
||
|
{% block nav -%}
|
||
|
<a href="/">Home</a>
|
||
|
{%- endblock %}
|
||
|
|
||
|
{% block content -%}
|
||
|
|
||
|
<h1>Welcome to tera on actix</h1>
|
||
|
|
||
|
<a href="/model/object/create">New model</a>
|
||
|
|
||
|
<h2>Defined models:</h2>
|
||
|
|
||
|
<ul>
|
||
|
{% for model in models %}
|
||
|
<li>
|
||
|
<b>{{model.name}}</b><br>
|
||
|
|
||
|
{#
|
||
|
|
||
|
{% if !model.properties.is_empty() %}
|
||
|
Properties:
|
||
|
<ul>
|
||
|
{% for prop in model.properties %}
|
||
|
<li>{{prop.name}}, {{prop.data_type}}, def: {{prop.default}}, opt: {{prop.optional}}, mult: {{prop.multiple}}</li>
|
||
|
{% endfor %}
|
||
|
</ul>
|
||
|
{% endif %}
|
||
|
|
||
|
<a href="/model/property/create/{{model.id}}">New property</a>
|
||
|
|
||
|
{% if !model.relations.is_empty() %}
|
||
|
Relations:
|
||
|
<ul>
|
||
|
{% for rel in model.relations %}
|
||
|
<li>
|
||
|
{{rel.name}} -> {{rel.related_name}}
|
||
|
|
||
|
{% if !rel.properties.is_empty() %}
|
||
|
Properties:
|
||
|
<ul>
|
||
|
{% for prop in rel.properties %}
|
||
|
<li>{{prop.name}}, {{prop.data_type}}, def: {{prop.default}}, opt: {{prop.optional}}, mult: {{prop.multiple}}</li>
|
||
|
{% endfor %}
|
||
|
</ul>
|
||
|
{% endif %}
|
||
|
</li>
|
||
|
{% endfor %}
|
||
|
</ul>
|
||
|
{% endif %}
|
||
|
|
||
|
<a href="/model/relation/create/{{model.id}}">New relation</a>
|
||
|
|
||
|
#}
|
||
|
</li>
|
||
|
{% endfor %}
|
||
|
</ul>
|
||
|
|
||
|
{%- endblock %}
|