Sindbad~EG File Manager
{% extends "login/layout.html" %}
{% block title %}
T-shirt
{% endblock %}
{% block style %}
{% endblock %}
{% block content %}
<div class="container">
<div class="row">
<div class="col-lg-3"></div>
<div class="col-lg-6">
<input type="hidden" name="conf_id" id="conf_id" value="{{conf.conf_id}}" />
<input type="hidden" name="conf_key" id="conf_key" value="{{conf.conf_key}}" />
<input type="hidden" name="delegate_no" id="delegate_no" value="{{delegates.delegate_no}}" />
<div class="row">
<div class="col">
<h3>T-Shirt Form</h3>
</div>
</div>
<div class="row my-2">
<div class="col-6 text-start">
<a href="{{ url_for('signup.DelnoQRScan',conf_id=conf_id,conf_key=conf_key) }}" class="btn btn-success"> <i class="fa-solid fa-camera"></i> Scan</a>
</div>
<div class="col-6 text-end">
{% if status | int == 0 :%}
<button type="button" class="btn btn-danger" id="save" name="save_btn"> <i class="fa-solid fa-check"></i> Save Now</button>
{% endif %}
</div>
</div>
{% if status | int == 1 :%}
<h4 class="mt-3 alert alert-danger text-center text-danger">{{msg}}</h4>
{% elif status | int == 2 %}
<h4 class="alert alert-success text-center text-black">{{msg}}</h4>
{% endif %}
<div class="row card">
<div class="col pt-3 px-3">
<table class="table table-striped table-bordered bg-white">
<tbody>
<tr>
<th>Delegate No.</th>
<td> <b>{{delegates.delegate_no}}</b></td>
</tr>
<tr>
<th>Name</th>
<td>{{delegates.prefix or ''}}{{delegates.full_name}}</td>
</tr>
<!-- <tr>
<th>Email</th>
<td>{{delegates.email or '-'}}</td>
</tr>
<tr>
<th>Mobile</th>
<td>{{delegates.mobile or '-'}}</td>
</tr>
<tr>
<th>Counter - Batch</th>
<td>{{delegates.counter}} - {{delegates.batch}}</td>
</tr> -->
<tr >
<th>T-shirt Size</th>
<td>{{delegates.reg_remarks or 'Not provided'}}</td>
</tr>
<tr >
<th>T-shirt collected status</th>
<td>
<b>
{% if delegates.tshirt_collected_at : %}
{{delegates.tshirt_collected_at.strftime("%d-%m-%Y %H:%M")}}
{% else %}
Not Collected
{% endif %}
</b>
</td>
</tr>
{% if status | int != 0 %}
{% endif %}
</tbody>
</table>
</div>
</div>
{% if status | int == 0 :%}
<form id="signupForm" method="POST" action="{{ url_for('signup.PostDelnoQRScanView',conf_id=conf.conf_id,conf_key=conf.conf_key,uuid=delegates.user_uuid)}}">
<input type="hidden" name="is_post_signup" id="is_post_signup" value="1">
<input type="hidden" name="delegate_no" id="delegate_no" value="{{ delegates.delegate_no }}">
</form>
{% endif %}
<div class="row card p-3 bg-warning">
<div class="col">
<span> Total T-shirt Collected : </span> <span class="h4">{{ total_collected_count or 0 }}</span>
</div>
</div>
</div>
<div class="col-lg-3"></div>
</div>
</div>
{% endblock %}
{% block bottomscript %}
<script type="text/javascript">
var BaseUrl = document.location.origin;
$(document).ready( function ()
{
$('#save').on('click', function() {
$('#signupForm').submit(); // Submit the form with ID signupForm
});
});
</script>
{% endblock %}
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists