Sindbad~EG File Manager
<div class="mobile-responsive ">
{% if "All" not in conf_date: %}
{% if delegate_data:%}
<div class="row" >
<div class="col-lg-6 col-md-6 col-sm-12 " ><span style="color:blue;font-size: 20px;">Date: {{conf_date}}</span>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 mt-1 mb-1 text-right" >
<a type="button" href ="{{url_for('signup.CMEScanDayWiseReportDownload',conf_id=conf_id,conf_key=conf_key,conf_date=conf_date)}}" target="_blank" class="btn btn-primary " title="Report Download" ><i class="fa-solid fa-download" ></i> Report Download</a>
</div>
</div>
<table class="table report_table" id="report_table_1" style="width: 100%;">
<thead style="background-color: #072645; border-color: #dee2e6; color: #fff;">
<tr>
<th><b>S.No</b></th>
<th><b>Delegate No</b></th>
<th><b>Name</b></th>
<th><b>Role</b></th>
<th><b>MC State</b></th>
<th><b>MC Number</b></th>
<th><b>Membership number</b></th>
<th><b>Signed on</b></th>
</tr>
</thead>
<tbody>
{% for row in delegate_data %}
<tr>
<td data-label="S.No">{{loop.index or ''}}</td>
<td data-label="Delegate No">{{row.delegate_no or ''}}</td>
<td data-label="Full Name No">{{row.full_name or ''}}</td>
<td data-label="Role">{{row.role or ''}}</td>
<td data-label="MC State">{{row.state or ''}}</td>
<td data-label="MC Number">{{row.mc_number or ''}}</td>
<td data-label="Membership NO">{{row.membership_no or ''}}</td>
<td data-label="Signed On">
{% if row.signed_on %} {{row.signed_on.strftime('%d-%m-%Y %H:%M:%S ') }} {% else : %}
<label> </label> {% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
{% else: %}
{% if delegate_data:%}
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 mt-1 mb-1 text-right" >
<a type="button" href ="{{url_for('signup.CMEScanDayWiseReportDownload',conf_id=conf_id,conf_key=conf_key,conf_date=conf_date)}}" target="_blank" title="Report Download" class="btn btn-primary "><i class="fa-solid fa-download" ></i> Report Download</a>
</div>
</div>
<table class="table report_table" id="report_table_2" style="width: 100%;">
<thead style="background-color: #072645; border-color: #dee2e6; color: #fff;">
<tr>
<th><b>S.No</b></th>
<th><b>Name</b></th>
<th><b>Role</b></th>
<th><b>MC State</b></th>
<th><b>MC Number</b></th>
<th><b>Membership number</b></th>
<th><b>Signed on</b></th>
</tr>
</thead>
<tbody>
{% for key, value in groupby(delegate_data,key = itemgetter('delegate_no')): %}
<tr style="background-color: #088c2147;text-align:left !important;">
<td colspan="8" data-label="Date">Delegate No : {{ key or '' }}</td>
</tr>
{% for row in value %}
<tr>
<td data-label="S.No">{{loop.index or ''}}</td>
<td data-label="Full Name No">{{row.full_name or ''}}</td>
<td data-label="Role">{{row.role or ''}}</td>
<td data-label="MC State ">{{row.state or ''}}</td>
<td data-label="MC Number">{{row.mc_number or ''}}</td>
<td data-label="Membership NO">{{row.membership_no or ''}}</td>
<td data-label="Signed On">
{% if row.signed_on %} {{row.signed_on.strftime('%d-%m-%Y %H:%M:%S ') }} {% else : %}
<label> </label> {% endif %}
</td>
</tr>
{% endfor %} {% endfor %}
</tbody>
</table>
<br>
{% endif %}
{% endif %}
</div>
<script type="text/javascript">
var BaseUrl = document.location.origin;
$(document).ready(function () {
// ----------------------------------------------
$("#report_table_1").dataTable({
iDisplayLength: 50,
});
$("#report_table_2").dataTable({
iDisplayLength: 50,
});
});
</script>
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists