oshipka/vm_gen/templates/html/_edit.html

12 lines
649 B
HTML
Raw Normal View History

2020-06-04 18:02:34 +02:00
<h2>Edit {% include "[[ name|camel_to_snake ]]/_title.html" %}</h2>
<form action="{{ url_for('update_[[ name|camel_to_snake ]]', uuid=instance.id) }}" method="post">
<input type="hidden" name="_next" value="{{ url_for('get_[[ name|camel_to_snake ]]', uuid=instance.id) }}"/>
[%- for column in columns %]
<label for="input-[[ name|camel_to_snake ]]-[[ column.name ]]">[[ column.name ]]</label>:
<input id="input-[[ name|camel_to_snake ]]-[[ column.name ]]"
value="{{ instance.[[ column.name ]] }}"
type="text" name="[[ column.name ]]" autocomplete="off"
/>
[%- endfor %]
<input type="submit">
</form>