Sindbad~EG File Manager
{% extends "users/layout.html" %}
{% block title %}Dashboard{% endblock %}
{% block content %}
<div>
<div class="row">
<div class = "col text-center">
<h3 class="font-weight-bold text-primary">{{eval_details.title}}</h3>
{% if eva_abs_type != 'FPFTVAL' %}<p class="text-danger">Last date of Evaluation is {% if eval_details.end_date %}{{eval_details.end_date.strftime('%d-%b-%Y')}}{% endif %}</p>{% endif %}
</div>
</div>
{% if orderby == 1 %}
{% for i in category %}
<div class="row">
<div class = "col">
<h4 class="font-weight-bold text-primary">{{i.display_name or ''}}</h4>
</div>
</div>
<div class="row">
<div class="col mobile-responsive table-responsive">
<table class="table">
<thead>
<th scope="col">ABS NO</th>
<th scope="col">TITLE</th>
{% if eva_abs_type != 'FPFTVAL' %}
<th scope="col">TOTAL MARKS</th>
{% endif %}
<th scope="col">VIEW</th>
</thead>
{% for r in data[i.category_id] %}
{% if i.category_id == r.category_id %}
<tbody>
<tr {% if r.marks_total|int > 0 %} class="table-success"{% endif %} >
<td data-label="ABS NO" width="10%">{{r.abs_type or ''}}{{r.abs_no or ''}}</td>
<td data-label="TITLE" width="100%">{{r.title or ''}}</td>
{% if eva_abs_type != 'FPFTVAL' %}
<td data-label="MARKS" width="100%">{{r.marks_total or 0 }}</td>
{% endif %}
<td data-label="VIEW" width="100%"> {% if r.user_id != Auth.get_user(society_id).get('user_id') %} <a class="btn btn-sm btn-outline-danger" href="{{url_for('DB.View_Evaluation',abs_id= (Cryptography.encrypt(r.abs_id)),eva_abs_type=eva_abs_type,conf_id=conf_id,conf_key=conf_key)}}">VIEW</a>{% endif %}</td>
</tr>
</tbody>
{% endif %}
{% endfor %}
</table>
</div>
</div>
{% endfor %}
{% else %}
<div class="row">
<div class="col">
<table class="table">
<thead>
<th scope="col">ABS NO</th>
<th scope="col">TITLE</th>
<th scope="col">TOTAL MARKS</th>
<th scope="col">VIEW</th>
</thead>
{% for r in data %}
<tbody>
<tr {% if r.marks_total|int > 0 %} class="table-success"{% endif %} >
<td data-label="ABS NO" width="10%">{{r.abs_type or ''}}{{r.abs_no or ''}}</td>
<td data-label="TITLE" width="100%">{{r.title or ''}}</td>
<td data-label="MARKS" width="100%">{{r.marks_total or 0 }}</td>
<td data-label="VIEW" width="100%"> {% if r.user_id != Auth.get_user(society_id).get('user_id') %} <a class="btn btn-sm btn-outline-danger" href="{{url_for('DB.View_Evaluation',abs_id= (Cryptography.encrypt(r.abs_id)),eva_abs_type=eva_abs_type,conf_id=conf_id,conf_key=conf_key)}}">VIEW</a>{% endif %}</td>
</tr>
</tbody>
{% endfor %}
</table>
</div>
</div>
{% endif %}
</div>
{% endblock %}
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists