{% extends "ndf/base.html" %} {% load i18n %} {% load cache %} {% load ndf_tags %} {% block title %}{% trans 'Events' %}{% endblock %} {% block style %} .course_outline_table, tr { border: 2px solid #0b8a91; border-collapse: collapse; } .gray-text{ color: gray; } #content > p { color: #6F6F6F !important; /*font-size: inherit;*/ } tr:hover{ cursor:pointer; } .tab{ padding-left: 2em; background-color:yellow !important; } .tab2{ padding-left: 4em; } #eventModal > label { color: white; font-weight: bold; font-size: 1rem; } .all_blogs{ overflow-y: auto; height:500px; } .jqtree-tree .jqtree-title { margin: 5px; font-size: 15px; color: black !important; /*Change the color here to change font color of tree*/ } .jqtree-tree { border-color:#0b8a91; border-width:1px; border-style: solid; } li.enroll-btn-li{ list-style: none; } {% endblock %} {% block head %} {% endblock %} {% block extended_header %} {% endblock %} {% block body_content %} {% check_is_gstaff groupid request.user as gstaff_access %} {% user_access_policy groupid request.user as user_access %}
×
{% trans "About" %}
{% if user_access == "allow" %} {% if node.collection_set %}
{% trans "Start" %}
{% endif %}
{% trans "NoteBook" %}
{% trans "Gallery" %}
{% comment %}
{% trans "Analytics" %}
{% endcomment %} {% endif %}
{% if not gstaff_access %} {% endif %}
{% include "ndf/res_node_ajax_view.html" %}
{% if user_access == "allow" %}

{% trans 'Following are the Notes added: ' %}

{% for each_blog in blog_pages %}
  • {% include 'ndf/simple_card.html' with resource=each_blog has_contributor=True no_description=True no_checkbox=True url_name="page_details" first_arg=group_id second_arg=each_blog.pk %}
  • {% comment %}

    {{each_blog.name}}

    {% if request.user.id == each_blog.created_by or gstaff_access %} Edit {% endif %} Created by {{each_blog.created_by|get_username}} at {{each_blog.created_at}}
    {{each_blog.html_content|safe}}

    {% endcomment %} {% empty %} {% endfor %}
    {% comment %} {% endcomment %} {% endif %}
    {% endblock %} {% block script %} $(document).on('click','.enroll-btn',function(){ //trigger the ajax call to enroll $.ajax({ url: "{% url 'enroll_to_course' node.pk %}", data: { 'csrfmiddlewaretoken': "{{csrf_token}}" }, type: "POST", dataType: "json", success: function(data){ success_state = data["success"] if(success_state){ $(".enroll-btn").attr('value', 'ENROLLED') $(".enroll-btn").attr("disabled","disabled") location.reload(); } }, });//end of ajax }) $("main.row > aside.columns") .removeClass("medium-2") .addClass('medium-3').addClass("large-3"); $("main.row > article.columns") .removeClass("medium-10") .addClass("medium-9") .addClass("large-9") .css('float','left'); $(".jqtree-title-folder").addClass('jqtree-toggler').removeClass('jqtree-title').removeClass('jqtree-title-folder') {% endblock %}