mirror of
https://github.com/yweber/lodel2.git
synced 2025-10-30 19:19:03 +01:00
Enhances admin(create) interface
This commit is contained in:
parent
8df56868f2
commit
df60ae69d3
1 changed files with 4 additions and 0 deletions
|
|
@ -10,6 +10,10 @@
|
|||
<input id="{{fieldname}}" name="field_input_{{fieldname}}" class="form-control" type="password" value="{{sval}}" >
|
||||
{% elif field.base_type == 'char' or field.base_type == 'int' %}
|
||||
<input id="{{fieldname}}" class="form-control" name="field_input_{{fieldname}}" type="text" value="{{value}}" >
|
||||
{% elif field.base_type == 'text' %}
|
||||
<textarea class="form-control" name="field_input_{{fieldname}}">{{value}}</textarea>
|
||||
{% elif field.base_type == 'datetime' %}
|
||||
<input class="form-control" type="date" value="{{value}}" name="field_input_{{fieldname}}">
|
||||
{% elif field.base_type == 'ref' %}
|
||||
{% if value is iterable %}
|
||||
{% set sval=value|join(',') %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue