diff --git a/crudkit/html/templates/crudkit/_macros.html b/crudkit/html/templates/crudkit/_macros.html index 4dbf0fc..1bcdfd4 100644 --- a/crudkit/html/templates/crudkit/_macros.html +++ b/crudkit/html/templates/crudkit/_macros.html @@ -1,5 +1,4 @@ {% macro options(items, value_attr="id", label_path="name", getp=None) -%} - {%- for obj in items -%} {%- endfor -%} @@ -20,9 +19,9 @@ {% macro rows(items, fields, getp=None) -%} {%- for obj in items -%} - + {%- for f in fields -%} - {{ getp(obj, f) if getp(obj, f) is not none else '-' }} + {{ getp(obj, f) }} {%- endfor -%} {%- else -%} @@ -33,54 +32,14 @@ {%- endmacro %} {% macro pager(model, page, pages, per_page, sort, filters, fields_csv) -%} -{# -