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.
yopa/yopa-web/resources/templates/models/relation_update.html.tera

28 lines
870 B

4 years ago
{% extends "_layout" %}
4 years ago
{% import "_form_macros" as form %}
4 years ago
{% block title -%}
Edit relation
{%- endblock %}
{% block nav -%}
4 years ago
<a href="/" class="btn btn-link"><i class="icon icon-home"></i>Home</a>
4 years ago
{%- endblock %}
{% block content -%}
<form action="/model/relation/update/{{model.id}}" method="POST">
4 years ago
{{ form::header_with_save_button(heading='Edit relation model "'~model.name~'"') }}
4 years ago
4 years ago
<div class="form-horizontal container">
{{ form::text(name="name", label="Name", value=model.name) }}
{{ form::text(name="reciprocal_name", label="Reciprocal name", value=model.reciprocal_name) }}
{{ form::checkbox(name="optional", label="Optional", checked=model.optional) }}
{{ form::checkbox(name="multiple", label="Multiple", checked=model.multiple) }}
</div>
4 years ago
4 years ago
<p>The related object cannot be changed. Create a new relation if needed.</p>
4 years ago
</form>
{%- endblock %}