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.
41 lines
1.4 KiB
41 lines
1.4 KiB
4 years ago
|
{% extends "_layout" %}
|
||
|
|
||
|
{% block title -%}
|
||
|
Edit property
|
||
|
{%- endblock %}
|
||
|
|
||
|
{% block nav -%}
|
||
|
<a href="/">Home</a>
|
||
|
{%- endblock %}
|
||
|
|
||
|
{% block content -%}
|
||
|
|
||
|
<h1>Edit property {{model.name}}</h1>
|
||
|
|
||
|
<form action="/model/property/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="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>
|
||
|
|
||
|
<label for="data_type">Type:</label>
|
||
|
<select name="data_type" id="data_type" autocomplete="off">
|
||
|
<option value="String" {{selected(val=model.data_type, opt="String")}}>String</option>
|
||
|
<option value="Integer" {{selected(val=model.data_type, opt="Integer")}}>Integer</option>
|
||
|
<option value="Decimal" {{selected(val=model.data_type, opt="Decimal")}}>Decimal</option>
|
||
|
<option value="Boolean" {{selected(val=model.data_type, opt="Boolean")}}>Boolean</option>
|
||
|
</select><br>
|
||
|
|
||
|
<label for="default">Default:</label>
|
||
|
<input type="text" id="default" name="default" value="{{model.default | print_typed_value}}" autocomplete="off"><br>
|
||
|
|
||
|
<input type="submit" value="Save">
|
||
|
</form>
|
||
|
|
||
|
{%- endblock %}
|