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:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user