19 lines
467 B
HTML
19 lines
467 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
<a href="create" role="button">Create</a>
|
|
<table>
|
|
<tr>
|
|
{% for model_field in view_model.fields -%}
|
|
<th>{{ model_field[0] }}</th>
|
|
{%- endfor %}
|
|
</tr>
|
|
{% for entity in entities -%}
|
|
<tr>
|
|
{% for model_field in view_model.fields -%}
|
|
<td>{{ entity.values | get(key=model_field[0]) }}</td>
|
|
{%- endfor %}
|
|
</tr>
|
|
{%- endfor %}
|
|
</table>
|
|
{% endblock content %} |