{% extends "ndf/base.html" %} {% load i18n %} {% load pagination_tags %} {% load ndf_tags %} {% load i18n %} {% block title %} {{title}} {% endblock %} {% block head %} {% endblock %} {% block style %} {{block.super}} .margin-top-1 { margin-top: 1em !important; } {% endblock %} {% block help_content %} {% endblock %} {% block meta_content %} {% endblock %} {% block search_content %} {% include "ndf/node_search_base.html" %} {% endblock %} {% block related_content %} {% check_is_user_group groupid as is_author_group %} {% if user.is_authenticated %} {% user_access_policy groupid request.user as user_access %} {% if is_author_group == False %}

  {% trans "New Task" %}
{% endif %} {% endif %} {% endblock %} {% block body_content %}
{% trans "Task" %}
{{node.name}}

{% get_user_object node.created_by as user_obj %} {% get_relation_value node.pk 'has_type' as grel_dict %} {% if not grel_dict.cursor %} {% if grel_dict.grel_node.name != "Moderation" %} {% if user_obj.username == request.user.username or request.user.is_superuser %} {% trans 'Edit' %} {% endif %} {% endif %} {% endif %}

{% if subtask %}
{% for each_subtask in subtask %} {{each_subtask.name}} {% if not forloop.last %},{% endif %} {% endfor %}
{% endif %}
{% with node.html_content|safe as description %} {% if description != "None" %} {{ description }} {% else %} -- {% endif %} {% endwith %}

{% comment %}
{% if Upload_Task %} {% get_file_node request Upload_Task as new %} {% for node in new %} {% get_grid_fs_object node as grid_fs_obj %} {{grid_fs_obj.filename}} {% if not forloop.last %}, {% endif %} {% endfor %} {% else %} -- {% endif %}

{% for each_history in history %}
{% if each_history.content %} {% with each_history.content|safe as history_description %} {{ history_description }} {% endwith %} {% endif %} {% for each_altnames in each_history.altnames %}

{{each_altnames}}

{% endfor %}
{% empty %} -- {% endfor %}
{% endcomment %}

{% trans 'Edited' %} {{ node.last_update|timesince }} {% trans 'ago' %} {% trans 'by' %} {{node.user_details_dict.modified_by}}
{% trans 'Versions' %} {% for seq_no, version_no in node.version_dict.items reversed %} + {% endfor %}
{% if task_type_name.0.name != "Moderation" %} {% if collection != 'True' %} Update {% endif %} {% endif %}

×
{% endblock %} {% block script %} {% get_user_object node.created_by as user_obj %} {% if user_obj.username = request.user.username or request.user.is_superuser %} var task_title = "{{node.name}}" $(document).on('click',".edit-desc",function(){ $(".get_editor").css("display","block"); }); $(document).on('click',"#title_save",function(){ var editedTitle = $('input[name=name]').val(); if(task_title == $('input[name=name]').val()){ alert("{% trans 'Nothing is Changed' %}"); } else { $.ajax({ url: "{% url 'edit_task_title' groupid %}", type: 'POST', data: {taskid:"{{node}}",csrfmiddlewaretoken: '{{ csrf_token }}',title:editedTitle}, beforeSend: function() { }, success: function(result){ $('#nodeTitleId').html(result); }, complete: function(){ $('#titleModal').foundation('reveal', 'close'); } }); } }); $(document).on('click',"#content_save",function(){ var editedContent = CKEDITOR.instances['ckeditor_textarea'].getData();; $.ajax({ url: "{% url 'edit_task_content' groupid %}", type: 'POST', data: {taskid:"{{node}}",csrfmiddlewaretoken: '{{ csrf_token }}',content_org:editedContent}, beforeSend: function() { }, success: function(result){ $(".get_editor").css("display","none"); $('#nodeContentId').html(result); }, complete: function(){ $('#titleModal').foundation('reveal', 'close'); } }); }); {% endif %} {% endblock %}