{% load ndf_tags %} {% load i18n %} {% if fields_name == 'name' or fields_name == "altnames" %}
{% endif %} {% if gs_type == 'attribute_set' %} {% if fields_type == "bool" %} {{regularexp}}
{% elif fields_type == "datetime.datetime" %} {{regularexp}} {% elif fields_type == "status" %}{{regularexp}} {% elif fields_type == "int" or fields_type == "float" or fields_type == "long" %} {{regularexp}}
{% elif fields_type == "list" %}
{% include 'ndf/widget_selector.html' with for=fields_name all_options="" selected_options="" %}
{% elif fields_type == "dict" %}
{% include 'ndf/widget_selector.html' with for=fields_name all_options="" selected_options="" %}
{% elif fields_type == "IS()" %} {{regularexp}}
{% elif fields_type == "ObjectId" %}
{% trans "Upload" %}
{% elif fields_type == "unicode" or fields_type == "basestring" %} {% if fields_name == "Location" or fields_name == "location" %}
× {% include "ndf/map_widget.html" with mode="edit" location_geo_json=fields_value %}
{# {% else if fields_name="email_id" %} #} {% else %} {% endif %} {% endif %} {% elif gs_type == 'relation_set' %}
{% endif %}