Closes #6711: Add longtext custom field type with Markdown support

This commit is contained in:
jeremystretch
2021-10-14 14:48:00 -04:00
parent 3e7922e41e
commit 176bd2396b
7 changed files with 101 additions and 19 deletions

View File

@@ -1,3 +1,5 @@
{% load helpers %}
{% with custom_fields=object.get_custom_fields %}
{% if custom_fields %}
<div class="card">
@@ -10,7 +12,9 @@
<tr>
<td><span title="{{ field.description }}">{{ field }}</span></td>
<td>
{% if field.type == 'boolean' and value == True %}
{% if field.type == 'longtext' and value %}
{{ value|render_markdown }}
{% elif field.type == 'boolean' and value == True %}
<i class="mdi mdi-check-bold text-success" title="True"></i>
{% elif field.type == 'boolean' and value == False %}
<i class="mdi mdi-close-thick text-danger" title="False"></i>