Add widget support to SourceColumn

Allow passing a widget class to SourceColumn. This makes
using lambdas to render model column unnecesary and are
mostly removed too.

Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2018-12-22 05:35:31 -04:00
parent 360e756093
commit 64e1c6bb67
59 changed files with 450 additions and 402 deletions
@@ -76,7 +76,7 @@
{{ object }}
{% endif %}
{% else %}
{% source_column_resolve column=object|get_source_columns:"only_identifier" %}
{% source_column_resolve column=object|get_source_columns:"only_identifier" as column_value %}{{ column_value }}
{% endif %}
</span>
</label>
@@ -98,7 +98,7 @@
{% endif %}
{% if not hide_columns %}
{% for column in object|get_source_columns %}
<td>{% source_column_resolve column=column %}{{ column_result }}</td>
<td>{% source_column_resolve column=column as column_value %}{{ column_value }}</td>{# Use explicit 'as column_value ' to force date rendering #}
{% endfor %}
{% endif %}
{% for column in extra_columns %}