actix-admin/actix_admin/templates/create.html
2022-07-17 22:12:18 +02:00

13 lines
468 B
HTML

{% extends "base.html" %}
{% block content %}
<form method="post">
<div class="grid">
{% for model_field in view_model.fields -%}
<input type="{{ model_field[1] }}" name="{{ model_field[0] }}" placeholder="{{ model_field[0] }}" aria-label="{{ model_field[0] }}"><!-- required="" -->
{%- endfor %}
<button type="submit">Save</button>
<button onclick="history.back()">Cancel</button>
</div>
</form>
{% endblock content %}