{% extends "ndf/base.html" %} {% load i18n %} {% load ndf_tags %} {% load simple_filters %} {% load cache %} {% block title %} {% if node %} {% trans "Edit "%}{{title}} - {{node.name}} {% else %} {% trans "Create "%}{{title}} {% endif %} {% endblock %} {% cache 3600 node_edit_base style %} {% block style %} .divider-line { font-size: xx-large; color:lightgray; } .line-height-2 { line-height:2; } .line-height-2pt5 { line-height:2.5; } .fontsize-x-large { font-size: x-large; } .margin-0 { margin: 0 !important ;} .resource-drawer { border-color: #D3D3D3; border-style: solid; padding: 0 !important; overflow-y: auto; } .resource-drawer li.bullet-item:hover{ background-color: #ecf0f1; cursor:pointer; } .posted-by{ color: #808080; font-size: small; } .selected-resource { background-color:lightgray !important ; } .resource-type-image { height:40px; background-repeat:no-repeat; background-size: 48px 48px } #type_of{ height:36px; } {% endblock %} {% endcache %} {% block head %} {{block.super}} {% if title == "Page" or "File" in node.member_of_names_list %} {% endif %} {% endblock %} {% block body_content %}

{% if node %} {% trans "Editing " %}{% if blog_type %} {% trans 'Note' %}{% else %} {{title}} {% endif %}: {{node.name}} {% else %} {% if blog_type %} {% trans "Create New Note" %} : {% else %} {% trans "Create New " %} {{title}} : {% endif %} {% endif %} {% if not blog_type %} {% trans "Create page from existing template" %} {% endif %}

{% trans "Please give your page a descriptive name. It's helpful for others and for yourself." %}
{% check_group node.pk as is_group %}
{% csrf_token %} {% if course_tab_title %} {% endif %} {% comment %}
Do you want to create:

 Homogeneous Collection
 Heterogeneous Collection ×
{% endcomment %}
{% include "ndf/html_editor.html" with var_name="content_org" var_placeholder="Enter the content here" var_value=node.content|default_if_none:"" node_id=node.pk ckeditor_toolbar="GeneralToolbar" %}
{% comment %} {% if node.pk %} {% get_list_of_fields node.type_of "name" as type_of_list %} {% if "Wiki page" in type_of_list %}
{% include "ndf/add_editor.html" with var_name="content_org" var_placeholder="Enter the content here" var_value=node.content_org|default_if_none:"" node_id=node.pk %}
{% else %}
{% include "ndf/html_editor.html" with var_name="content_org" var_placeholder="Enter the content here" var_value=node.content|default_if_none:"" node_id=node.pk ckeditor_color="#f2f2f2" ckeditor_toolbar="GeneralToolbar" %}
{% endif %} {% else %} {% if title == "Page" %}
{% include "ndf/add_editor.html" with var_name="content_org" var_placeholder="Enter the content here" %}
{% endif %}
{% include "ndf/html_editor.html" with var_name="content_org" var_placeholder="Enter the content here" %}
{% endif %} {% endcomment %} {% if ce_id %} {% endif %} {% if program_res %} {% endif %} {% if not ce_id %}
{% trans "Settings" %}
{% if node.created_by == request.user.pk %} {% cache 300 node_edit_base_visibility node.access_policy request.LANGUAGE_CODE %}
{% if node.access_policy == "PUBLIC" or node.group_type == "PUBLIC" %} {% else %} {% if node.access_policy == "PRIVATE" or node.group_type == "PRIVATE" %} {% endif %} {% endif %}
{% endcache %} {% else %} {% if not node %}
{% endif %} {% endif %}
{% if title == "Page" and "Author" not in group_object.member_of_names_list %}
{% endif %}
{% endif %}
{% block upload_logo %} {% endblock %}
{% include 'ndf/widget_tags.html' %}
{% block prior_node %} {% endblock %} {% block collection %} {% endblock %}
{% block add_fields %} {% endblock %} {% cache 300 node_edit_base_map_widget %}
× {% include "ndf/map_widget.html" with mode="edit" %}
{% endcache %}
{% endblock %} {% block document_ready %} {{block.super}} $("input[id='educational']").each(function(){ $(this).attr("required", ""); $(this).css("width", "98%"); $(this).css("float", "left"); $(this).after("Please fill valid "+this.name+""); $(this).after("*"); }); {% endblock %}