parent
2a71f827b0
commit
bf7e9a1871
@ -0,0 +1,35 @@ |
||||
{% extends "_layout" %} |
||||
|
||||
{% block title -%} |
||||
Edit relation |
||||
{%- endblock %} |
||||
|
||||
{% block nav -%} |
||||
<a href="/">Home</a> |
||||
{%- endblock %} |
||||
|
||||
{% block content -%} |
||||
|
||||
<h1>Edit relation model "{{model.name}}"</h1> |
||||
|
||||
<form action="/model/relation/update/{{model.id}}" method="POST"> |
||||
<label for="name">Name:</label> |
||||
<input type="text" id="name" name="name" value="{{model.name}}" autocomplete="off"><br> |
||||
|
||||
<label for="reciprocal_name">Reciprocal name:</label> |
||||
<input type="text" id="reciprocal_name" name="reciprocal_name" value="{{model.reciprocal_name}}" autocomplete="off"><br> |
||||
|
||||
<label for="optional">Optional:</label> |
||||
<input type="checkbox" name="optional" id="optional" value="true" {{opt(checked=model.optional)}} autocomplete="off"> |
||||
<br> |
||||
|
||||
<label for="multiple">Multiple:</label> |
||||
<input type="checkbox" name="multiple" id="multiple" value="true" {{opt(checked=model.multiple)}} autocomplete="off"><br> |
||||
|
||||
<p>The related object cannot be changed. Create a new relation if needed.</p> |
||||
|
||||
<input type="submit" value="Save"> |
||||
</form> |
||||
|
||||
|
||||
{%- endblock %} |
Loading…
Reference in new issue