{% extends "base.html" %} {% load custom_tags %} {% load static %} {% block styling %} .statistic:not(.last-stat){ border-right: 1px solid #e0e1e2 ; } .statistics th:not(.last-th){ border-right: 1px solid #dddddd; } {% endblock %} {% block content %}
{{ current_round.roundNo }}

Current Round
{{ current_round.endDate }}

Last date
{{ allApplications|length }}

Total Applications
{{ ProjectWiseShortlistedApplications|get_count_multilist }}

Shortlisted applications
{{ allotedStudents|length }}

Alloted students

Time remaining for Round {{ current_round.roundNo }}
{% get_remaining_days current_round.endDate %}


Information to Faculty
PROJECT TITLE
DESCRIPTION
CONTACT DETAILS
REQUISITES
AVAILABLE POSITIONS
ACTIONS
{% for opening in availablePositions %}
{{ opening.title }}
{{ opening.description }}
{{ opening.contact_details }}
{% for requisite in opening.get_requisites %} {% endfor %}
Subject CGPA
{{ requisite.Subject }} {{ requisite.cgpa }}
{{ opening.total_positions }}
{% endfor %}
{% if allotedStudents|length == 0 %}
Information to Faculty
{% else %}
ROUND NUMBER
NAME
PROJECT
CGPA
ACTIONS
{% for student in allotedStudents %}
{{ student.roundNo }}
{{ student.student.student.get_full_name }}
{{ student.project.title }}
{% endfor %}
{% endif %}
{% endblock %} {% block modals %} {% for application in allApplications %} {% endfor %} {% for shortlistedApplications in ProjectWiseShortlistedApplications %} {% for application in shortlistedApplications %} {% endfor %} {% endfor %} {% for application in allotedStudents %} {% endfor %}
{% for updateform in updateforms %} {% endfor %}
{% endblock %} {% block scripts %} $(document).ready(function() { window.requisitesformCount = parseInt($('#new-position #id_requisites-TOTAL_FORMS').val()); window.requisitesformInst = $('.requisites-form:first').clone(true).get(0); window.updaterequisitesformInst = $('.update-requisites-form:last').clone(true).get(0); window.requisitesPrefix = 'requisites-'; window.updaterequisitePrefix = 'update-requisites-' $('#time-progress').progress(); $(".rating").rating('disable'); $('.menu .item').tab(); $('.date_picker').calendar({ type: 'date', minDate: new Date(), formatter: { date: function (date, settings) { if (!date) return ''; var day = date.getDate(); var month = date.getMonth() + 1; var year = date.getFullYear(); return year + '-' + month + '-' + day; } } }); $( function() { {% for projects in ProjectWiseShortlistedApplications %} $( "#sortable-{{ forloop.counter0 }}" ).sortable(); $( "#sortable-{{ forloop.counter0 }}" ).disableSelection(); {% endfor %} }); $('#applications').DataTable({ columnDefs: [ { orderable: false, targets: [4] } ], }); $('.ui.dropdown').dropdown(); sync_total_forms(); {% if messages %} {% for message in messages %} $('body') .toast({ class: "error", title: "Error logging in", displayTime: 3000, closeIcon: true, position: "top center", showIcon: "exclamation", message: '{{ message }}', }); {% endfor %} {% endif %} } ); function sync_total_forms(){ $('#updateforms .requisitesList').each(function(){ $(this).find('#id_requisites-TOTAL_FORMS').val($(this).find('.update-requisites-form').length); }); } function show_student_detail(id){ $(".modals #application-"+id).modal('show'); } function show_update_form(id){ $(".modals #update-position-"+id).modal('show'); } function show_new_position_form(){ $(".modals #new-position").modal('show'); } function updateElementIndex(row,index) { $(row).children().children().each(function(){ curr_id = $(this).attr('id'); if(curr_id==null){ curr_id = $(this).find('select').attr('id'); new_id = curr_id.replace(/[0-9]+/gi,index); $(this).find('select').attr('id',new_id); curr_name = $(this).find('select').attr('name'); new_name = curr_name.replace(/[0-9]+/gi,index); $(this).find('select').attr('name',new_name); } else{ new_id = curr_id.replace(/[0-9]+/gi,index); $(this).attr('id',new_id); curr_name = $(this).attr('name'); new_name = curr_name.replace(/[0-9]+/gi,index); $(this).attr('name',new_name); } }); } function addRequesiteForm(){ var row = $(window.requisitesformInst).clone(true); requisitesformCount = parseInt($('#new-position #id_requisites-TOTAL_FORMS').val()); $(row).find(".ui.dropdown").dropdown(); if(requisitesformCount == 0){ $('#new-position .requisites ').html(row); } else{ $(row).attr('id',window.requisitesPrefix+requisitesformCount+'-row').insertAfter($('#new-position .requisites-form:last')); var forms = $('#new-position .requisites-form'); $(forms).each(function(index){ updateElementIndex(this,index); }); } $(row).find('.delete-row').attr('onclick','deleterequisitesForm(this,"'+window.requisitesPrefix+requisitesformCount+'")'); $('#new-position #id_requisites-TOTAL_FORMS').val(requisitesformCount+1); return false; } function deleterequisitesForm(btn){ $(btn).parents('.requisites-form').remove(); var forms = $('#new-position .requisites-form'); requisitesformCount = parseInt($('#new-position #id_requisites-TOTAL_FORMS').val()); $('#new-position #id_requisites-TOTAL_FORMS').val(requisitesformCount-1); $(forms).each(function(index){ $(this).attr('id',window.requisitesPrefix+index+'-row'); updateElementIndex(this,index); }); return false; } function addUpdateRequesiteForm(id){ var row = $(window.updaterequisitesformInst).clone(true); requisitesformCount = parseInt($(id + ' #id_requisites-TOTAL_FORMS').val()); $(row).find(".ui.dropdown").dropdown(); if(requisitesformCount == 0){ $(id+' .update-requisites ').html(row); } else{ $(row).attr('id',window.updaterequisitePrefix+requisitesformCount+'-row').insertAfter($(id +' .update-requisites-form:last')); var forms = $(id + ' .update-requisites-form'); $(forms).each(function(index){ updateElementIndex(this,index); }); } $(row).find('.delete-row').attr('onclick','deleteupdaterequisitesForm(this,"'+String(id)+'")'); $(id + ' #id_requisites-TOTAL_FORMS').val(requisitesformCount+1); return false; } function deleteupdaterequisitesForm(btn,id,filled_row){ if(filled_row){ count = $(id + ' #id_requisites-INITIAL_FORMS').val(); $(id + ' #id_requisites-INITIAL_FORMS').val(parseInt(count)-1); } $(btn).parents('.update-requisites-form').remove(); var forms = $(id + ' .update-requisites-form'); requisitesformCount = parseInt($(id + ' #id_requisites-TOTAL_FORMS').val()); $(id + ' #id_requisites-TOTAL_FORMS').val(requisitesformCount-1); $(forms).each(function(index){ $(this).attr('id',window.updaterequisitePrefix+index+'-row'); updateElementIndex(this,index); }); return false; } function submit_priorities(index,projectId){ } {% endblock %}