Sindbad~EG File Manager

Current Path : /home/numerotech/conf-regdesk.numerotech.com/reg_desk/core/templates/signup/
Upload File :
Current File : //home/numerotech/conf-regdesk.numerotech.com/reg_desk/core/templates/signup/auto_signup.html

{% extends "login/layout.html" %}
{% block title %}
Signup
{% 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>Badge Signup Form</h3>
				</div>
			</div>
			
			<div class="row my-2">
				<div class="col-4 text-start">
				        <a href="{{ url_for('signup.QRScanToSignup',conf_id=conf_id,conf_key=conf_key) }}" class="btn btn-success"> <i class="fa-solid fa-camera"></i> Scan to Signup</a>
				</div>
				<div class="col-4 text-center">
				    <a href="{{ url_for('signup.getSearch',conf_id=conf_id,conf_key=conf_key) }}" class="btn btn-primary"><i class="fa-solid fa-search"></i>Search delegates</a>
				</div>
				<div class="col-4 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> Signup Now</button>
					 <!--<input type="button" class="btn btn-danger" id="save" name="save_btn"  value="Signup Now">-->
					{% 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}}{{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 - Set</th>
						<td>{{delegates.counter}} - {{delegates.batch}}</td>
					</tr>
					{% if status | int != 0 %}
					<tr style="border-top: 3px solid red;">
						<th>Signup By</th>
						<td>{{delegates.signed_by or ''}}</td>
					</tr>
					<tr >
						<th>Signup Comments</th>
						<td>{{delegates.comments or ''}}</td>
					</tr>
					<tr >
						<th>Signup no</th>
						<td>{{delegates.signed_on.strftime("%d-%m-%Y %H:%M") or ''}}</td>
					</tr>
					{% endif %}
				</tbody>
			</table>
		</div>
		</div>

			{% if status | int == 0 :%}
		<form id="signupForm" method="POST">
			<div class="row card p-2">
				<div class="col-md-12">
					<label >Signedup By</label>
				</div>	
				<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 }}">
				
				<div class="col-md-12 mt-2">
					<input type="radio" class="form-input" name="signup" id="representive" required value="Representive"><label for="representive" class="ml-2">&nbsp;Representive</label>
					<input type="radio" class="form-input ml-3" name="signup" id="delegate" required value="Delegate" checked><label for="delegate" class="ml-2" >&nbsp;Delegate</label><br>
					<label id="signup-error" class="error" for="signup" style="color:rgb(226, 5, 5)"></label>
				</div>
				<div class="col-md-12">
					<label>Remarks</label>
					<textarea class="form-control" id="remarks" name="remarks" rows="3"></textarea>
				</div>
			 <!--  <div class="col-md-12 my-2 text-end" >-->
				<!--	<input type="submit" class="btn btn-danger" id="save" name="save_btn"  value="Signup Now">-->
				<!--</div>-->
			</div>
		</form>		
			{% endif %}
			
			<div class="row card p-3 bg-warning">
			    <div class="col">
			         <span> Total signup : </span> <span class="h4">{{ total_signup_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