|
@@ -8,8 +8,10 @@
|
8
|
8
|
<input id="field_input_{{fieldname}}" class="form-control" name="field_input_{{fieldname}}" type="checkbox" checked="{% if value %}checked{% endif %}" >
|
9
|
9
|
{% elif field.base_type == 'password' %}
|
10
|
10
|
<input id="{{fieldname}}" name="field_input_{{fieldname}}" class="form-control" type="password" value="{{sval}}" >
|
11
|
|
- {% elif field.base_type == 'char' or field.base_type == 'int' %}
|
|
11
|
+ {% elif field.base_type == 'char' or field.base_type == 'int' or field.base_type == 'varchar' %}
|
12
|
12
|
<input id="{{fieldname}}" class="form-control" name="field_input_{{fieldname}}" type="text" value="{{value}}" >
|
|
13
|
+ {% elif field.base_type == 'text' %}
|
|
14
|
+ <textarea id="{{fieldname}}" class="form-control" name="field_input_{{fieldname}}"></textarea>
|
13
|
15
|
{% elif field.base_type == 'ref' %}
|
14
|
16
|
{% if value is iterable %}
|
15
|
17
|
{% set sval=value|join(',') %}
|