Sindbad~EG File Manager
{% extends 'hall_logs/layout.html' %}
{% block head %}
{% endblock %}
{% block title %}Day Report{% endblock %}
{% block content %}
<div class="container">
{% for mesg in get_flashed_messages(category_filter=["successMsg"]) %}
<div class="alert alert-success text-center successMessage alert-dismissible" >
<p class="close" data-dismiss="alert" aria-label="close">×</p>
<h4>{{ mesg|safe }}</h4>
</div>
{% endfor %}
{% for mesg in get_flashed_messages(category_filter=["errorMsg"]) %}
<div class="alert alert-danger successMessage" id="successMessage">
<p class="close" data-dismiss="alert" aria-label="close">×</p>
<h6>{{ mesg|safe }} </h6>
</div>
{% endfor %}
<form class=" form-control" method="POST" id="enter_email" action ="{{url_for('halllogs.DayHallsReportsMail')}}" >
<div class="card mt-2" style="background-color:#F9E2DD">
<div class="card-body">
<div class="row ">
<input type="hidden" name="conf_id" id="conf_id" value="{{conf_id}}">
<input type="hidden" name="conf_key" id="conf_key" value="{{conf_key}}">
<div class="col-lg-4 col-md-4 col-sm-12"></div>
<div class="col-lg-4 col-md-4 col-sm-12">
<label for="status_list">Select Date</label>
<select class="form-control" name="report_date" id="report_date">
{% for j in data_data %}
<option value="{{ j.idt }}">{{j.idt.strftime('%d-%m-%Y')}}</option>
{% endfor %}
</select>
</div>
<div class="col-lg-4 col-md-4 col-sm-12"></div>
</div>
<div class="row mt-3">
<div class="col-lg-4 col-md-4 col-sm-12 text-center offset-4">
<i type = "button" class="btn btn-primary" title="Send Report via mail" data-toggle="modal" data-target="#exampleModal" aria-hidden="true" >send mail</i>
<button type="submit" name="get_btn_value" value="preview_btn" class="btn btn-primary">Preview</button>
<button type="submit" name="get_btn_value" value="download_pdf_button" class="btn btn-primary">Download PDF</button>
</div>
<div class="col-lg-4 col-md-4 col-sm-12 offset-4">
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id=""> <label>Enter mail-id(s) to send at <span id="mail_dt"></span> report </label></h5></div>
<div class="modal-body ">
<span style="font-size: 13px;color: #e5310d;">Example: <i>yourid1@gmail.com,yourid2@gmail.com</i></span>
<input class="form-control" type="text" name="mail_id" id="mail_id" value="" placeholder="Enter Mail"/>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="submit" name="get_btn_value" class="btn btn-primary" value="send_mail_btn">Send</button>
</div>
</form>
</div>
</div>
</div>
</form>
</div>
{% endblock %}
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists