{% extends "ndf/base.html" %} {% load i18n %} {% load ndf_tags %} {% block title %} Create a new partner {% endblock %} {% block meta_content %} {% endblock %} {% block related_content %} {% if groups %} {% trans "Existing Partners:" %} {% get_existing_groups_excluding_username as groups%} {% for items in groups %}
{{items.name|truncatechars:25}} {% endfor %} {% endif %} {% endblock %} {% block body_content %}

{% trans "Create a new partner" %}


{% csrf_token %}
Partners Details
Name
Name is required and must be a string.



Category
required
Description
{% include "ndf/add_editor.html" with var_name="content_org" var_placeholder="Enter the content here" var_value=node.content_org|default_if_none:"" %}
Street
required



Place
required



PIN
required



Contact Point
Email
required


Logo
Banner
Telephone
Website
{% comment %}
{% trans "Name of the Partner" %}
{% trans "Name is required and must be a string" %}
{% trans "Partner Type" %}
{% trans "Partner Editing policy" %}
{% trans "Partner Subscription policy" %}
{% trans "Group Encryption policy" %}
{% trans "Group Existance visibility" %}
{% endcomment %}
{% endblock %} {% block head %} {% endblock %} {% block script %} $("#node_search_form").parent().hide(); // method to provide autocomplete/intellisence of forum names $("#create_partner").submit(function(event){ var name = $("#group_name").val().trim().toLowerCase(); var nodes = {{nodes_list|safe}} if (name != "") { if (nodes.indexOf(name) != -1) { $("#message").css("display", "block"); $("#message").text("Group '"+ name +"' already exist. Please choose another name"); event.preventDefault(); } } else if (name == ""){ $("#message").css("display", "block"); $("#message").text("Group name cannot be empty."); event.preventDefault(); } else { $("#message").css("display", "none"); } }); {% endblock %}