{% load static %}
{% load i18n %}

<!-- string format -->

{% if item.is_multi %}

<div class="mb-3 row">
  <label class="col-form-label col-sm-2">{{ item.displayname }}</label>
  <div class="form-check col-sm-10">
  Unsupported Multi-value
  <div class="form-text">{{ item.description }}</div>
</div>
</div>


{% else %}

<div class="mb-3 row">
<label class="col-form-label col-sm-2">{{ item.displayname }}</label>
<div class="form-check col-sm-10">

{% if item.dataformat_ext == "html" %}

  <textarea class="tinymce" cols="80" data-mce-conf="{&quot;theme&quot;: &quot;silver&quot;, &quot;height&quot;: 500, &quot;menubar&quot;: false, &quot;plugins&quot;: &quot;advlist,autolink,lists,link,image,charmap,print,preview,anchor,searchreplace,visualblocks,code,fullscreen,insertdatetime,media,table,paste,code,help,wordcount&quot;, &quot;toolbar&quot;: &quot;undo redo | formatselect | link |bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | code | preview | help&quot;, &quot;relative_urls&quot;: 0, &quot;remove_script_host&quot;: 0, &quot;language&quot;: &quot;fr_FR&quot;, &quot;directionality&quot;: &quot;ltr&quot;, &quot;strict_loading_mode&quot;: 1, &quot;selector&quot;: &quot;#{{ item.fieldname }}&quot;}" id="{{ item.fieldname }}" maxlength="25000" name="{{ item.fieldname }}" rows="30">{{ item.value.0|default_if_none:''}}</textarea>

{% else %} <!-- None, YAML, JSON, MARKDOWN -->
<pre>
<textarea class="form-control" id="{{ item.fieldname }}" name="{{ item.fieldname }}" rows="8">{{ item.value.0|default_if_none:''}}</textarea>
</pre>

{% endif %}

{% if item.description %}<div class="form-text">{{ item.description }}</div>{% endif %}
</div>
</div>
{% endif %}