Browse Source

Enhances admin(create) interface

prieto 7 years ago
parent
commit
df60ae69d3
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      lodel/plugins/webui/templates/admin/editable_component.html

+ 4
- 0
lodel/plugins/webui/templates/admin/editable_component.html View File

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

Loading…
Cancel
Save