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.
27 lines
870 B
27 lines
870 B
{% extends "_layout" %}
|
|
{% import "_form_macros" as form %}
|
|
|
|
{% block title -%}
|
|
Edit relation
|
|
{%- endblock %}
|
|
|
|
{% block nav -%}
|
|
<a href="/" class="btn btn-link"><i class="icon icon-home"></i>Home</a>
|
|
{%- endblock %}
|
|
|
|
{% block content -%}
|
|
|
|
<form action="/model/relation/update/{{model.id}}" method="POST">
|
|
{{ form::header_with_save_button(heading='Edit relation model "'~model.name~'"') }}
|
|
|
|
<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>
|
|
|
|
<p>The related object cannot be changed. Create a new relation if needed.</p>
|
|
</form>
|
|
|
|
{%- endblock %}
|
|
|