{% load i18n %}{% load jsonify from creme_core_tags %}
{% block selectors %}

{% translate 'Fields'%}

{# highlight : main fields | popular | recent #}
{% block field_selectors %} {% with rfields_widget=widget.regular_field %} {% if rfields_widget %}{% include rfields_widget.template_name with widget=rfields_widget %}{% endif %} {% endwith %} {% with cfields_widget=widget.custom_field %} {% if cfields_widget %}{% include cfields_widget.template_name with widget=cfields_widget %}{% endif %} {% endwith %} {% with ffields_widget=widget.function_field %} {% if ffields_widget %}{% include ffields_widget.template_name with widget=ffields_widget %}{% endif %} {% endwith %} {% endblock %}
{% with rtypes_widget=widget.relation %} {% if rtypes_widget %}{% include rtypes_widget.template_name with widget=rtypes_widget %}{% endif %} {% endwith %} {% endblock %}
{% block preview %}

{# #}
{% endblock %}
{{ widget.samples|json_script:widget.uuid }}