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.
|
|
|
{% 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">
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th><label for="name">Name:</label></th>
|
|
|
|
<td><input type="text" id="name" name="name" value="{{model.name}}" autocomplete="off">
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th><label for="reciprocal_name">Reciprocal name:</label></th>
|
|
|
|
<td><input type="text" id="reciprocal_name" name="reciprocal_name" value="{{model.reciprocal_name}}" autocomplete="off">
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th><label for="optional">Optional:</label>
|
|
|
|
</th>
|
|
|
|
<td><input type="checkbox" name="optional" id="optional" value="true" {{opt(checked=model.optional)}} autocomplete="off">
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th><label for="multiple">Multiple:</label></th>
|
|
|
|
<td><input type="checkbox" name="multiple" id="multiple" value="true" {{opt(checked=model.multiple)}} autocomplete="off">
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<p>The related object cannot be changed. Create a new relation if needed.</p>
|
|
|
|
|
|
|
|
<input type="submit" value="Save">
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
{%- endblock %}
|