Sindbad~EG File Manager
{% extends "conferenceapp/layout.html" %}
{% block style %}
<style>
.form .error{
color: red;
}
</style>
{% endblock %}
{% block content %}
<div class="row mt-3">
<div class="col-md-1"></div>
<div class="col-md-10">
<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-md-12">
<p align="right">
<a class="btn btn-danger" type="button" id="back" href="{{ url_for('confapp.ConferenceIndex') }}" title="Back">Back</a>
</p>
<center><h5>{% if conf_data.conf_name %} {{conf_data.conf_name}} {% else %}<span style="color:red">CONF NAME NOT GIVEN</span> {% endif %} - CONFERENCE EDIT</h5></center>
</div>
<div class="card mb-5">
<div class="card-body mt-3">
<form id="edit_conf_form" method="POST" action="{{url_for('confapp.UpdateConf' ,conf_id= conf_id, conf_key =conf_key)}}">
{% for mesg in get_flashed_messages(category_filter=["EditConfSuccessMsg"]) %}
<div class="row">
<div class="col-lg-12 col-sm-12 col-sm-12"></div>
<div class="col-lg-12 col-sm-12 col-sm-12">
<div class=" text-center" id="successMsg" >
<h6 class="alert alert-success alert-dismissible">
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>{{ mesg }}</h6>
</div>
<div class="col-lg-12 col-sm-12 col-sm-12"></div>
</div>
</div>
{% endfor %}
{% for mesg in get_flashed_messages(category_filter=["EditConfErrorMsg"]) %}
<div class="row">
<div class="col-lg-12 col-sm-12 col-sm-12"></div>
<div class="col-lg-12 col-sm-12 col-sm-12">
<div class="text-center" id="successMsg" >
<h6 class="alert alert-danger alert-dismissible">
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>{{ mesg }}</h6>
</div>
<div class="col-lg-12 col-sm-12 col-sm-12"></div>
</div>
</div>
{% endfor %}
<div class="row" >
<div class="col-md-3">
<label for="conf_name">Conf Name </label>
<input type="text" name="conf_name" placeholder="Enter Conf Name" id="conf_name" class="form-control" value="{{conf_data.conf_name or '' }}" />
</div>
<div class="col-md-4">
<label for="conf_title">Conf Title</label>
<input type="text" name="conf_title" placeholder="Enter Conf Title" id="conf_title" class="form-control" value="{{conf_data.conf_title or '' }}" />
</div>
<div class="col-md-5">
<label for="header_text">Header Text</label>
<input type="text" name="header_text" id="header_text" class="form-control" placeholder="Enter Header Text" value="{{conf_data.header_text or ''}}">
</div>
</div><br>
<div class="row" >
<div class="col-md-4" >
<label for="conf_name_full_form">Conf Name Fullform</label>
<input type="text" name="conf_name_full_form" id="conf_name_full_form" class="form-control" placeholder="Enter Conf Name Fullform" value="{{conf_data.conf_name_full_form or ''}}">
</div>
<div class="col-md-4" >
<label for="favicon_url">Favicon URL</label>
<input type="text" name="favicon_url" id="favicon_url" class="form-control" placeholder="Enter Favicon URL" value="{{conf_data.favicon_url or 'https://delegateapp.s3.ap-southeast-1.amazonaws.com/favicon/globe.png'}}">
</div>
<div class="col-md-2" >
<label>Favicon Img</label>
<br>
<img style="margin-left: 30px;" src="{{conf_data.favicon_url or 'https://delegateapp.s3.ap-southeast-1.amazonaws.com/favicon/globe.png'}}" ></img>
</div>
<div class="col-md-2">
<div class="row">
<div class="col-md-12">
<label for="is_active">Is Active</label>
</div>
<div class="col-md-12">
<label><input type="radio" name="is_active" id="is_active_yes" {% if conf_data.is_active == 1 : %}checked="checked" {% endif %} value="1"> Yes </label>
<label><input type="radio" name="is_active" id="is_active_no" {% if conf_data.is_active == 0 : %}checked="checked" {% endif %} value="0"> No </label>
</div>
</div>
</div>
</div><br> <hr><br>
<div class="row" >
<div class="col-md-4">
<label for="e_support_email">Support Mail</label>
<input type="text" name="e_support_email" placeholder="Enter Support email" id="e_support_email" class="form-control" value="{{conf_data.e_support_email or '' }}" />
</div>
<div class="col-md-4">
<label for="e_backup_emails">Backup Mail</label>
<input type="text" name="e_backup_emails" placeholder="Enter Backup email" id="e_backup_emails" class="form-control" value="{{conf_data.e_backup_emails or '' }}" />
</div>
<div class="col-md-4">
<label for="pg_details">PG Details</label>
<input type="text" name="pg_details" id="pg_details" placeholder="Enter PG Details" class="form-control" value="{{conf_data.pg_details or '' }}" />
</div>
</div>
<br>
<div class="row">
<div class="col-md-4">
<label for="e_from_email">From Email Mail</label>
<input type="text" name="e_from_email" placeholder="Enter From Email Maill" id="e_from_email" class="form-control" value="{{conf_data.e_from_email or '' }}" />
</div>
<div class="col-md-4">
<label for="e_reply_to">Reply to</label>
<input type="text" name="e_reply_to" placeholder="Enter Reply to" id="e_reply_to" class="form-control" value="{{conf_data.e_reply_to or '' }}" />
</div>
<div class="col-md-4">
<label for="e_reply_name">Reply Mail Name</label>
<input type="text" name="e_reply_name" placeholder="Enter Reply Mail Name" id="e_reply_name" class="form-control" value="{{conf_data.e_reply_name or '' }}" />
</div>
</div><br><hr><br>
<div class=" card" style="background-color:#eaeff5;" >
<div class=" card-body" >
<div class="row">
<div class="col-md-12">
</div>
</div> <br>
<div class="row">
<div class="col-md-6">
<label for="payment_api_url">Payment API URL </label>
<input type="text" name="payment_api_url" id="payment_api_url" placeholder="Enter Payment Api URL" class="form-control" value="{{conf_data.payment_api_url or 'https://paymentapi.numerotech.com/api_key' }}" />
<span class="text-danger">{{society_app_data.paymentgateway_api_url or '' }} </span>
</div>
<div class="col-md-6">
<label for="call_payment_url">Call Payment URL</label>
<input type="text" name="call_payment_url" id="call_payment_url" placeholder="Enter Call Payment URL" class="form-control" value="{{conf_data.call_payment_url or 'https://paymentapi.numerotech.com/payments/' }}" />
<span class="text-danger">{{society_app_data.paymentgateway_response_url or '' }} </span>
</div>
</div><br>
<div class="row">
<div class="col-md-3">
<label for="stylesheet">Style Sheet</label>
<input type="text" name="stylesheet" id="stylesheet" placeholder="Enter Stylesheet" class="form-control" value="{{conf_data.stylesheet or 'style.css' }}" />
<span class="text-danger">{{society_app_data.app_style or '' }} </span>
</div>
<div class="col-md-3">
<label for="pg_appmaster_id">AM Id</label>
<input type="number" name="pg_appmaster_id" id="pg_appmaster_id" placeholder="Enter AM ID" class="form-control" value="{{conf_data.pg_appmaster_id or '' }}" />
<span class="text-danger">{% if society_app_data.paymentgateway_appmaster_id %}Am Id : {{society_app_data.paymentgateway_appmaster_id or '' }} {% endif %} </span>
</div>
<div class="col-md-2">
<div class="row">
<div class="col-md-12">
<label for="pg_is_test">Is Test</label><br>
</div>
<div class="col-md-12">
<label><input type="radio" name="pg_is_test" id="pg_is_test_yes" {% if conf_data.pg_is_test | int == 1 : %}checked="checked" {% endif %} value="1"> Yes </label>
<label><input type="radio" name="pg_is_test" id="pg_is_test_no" {% if conf_data.pg_is_test | int== 0 : %}checked="checked" {% endif %} value="0"> No </label>
</div>
</div>
<span class="text-danger">Is test : {{society_app_data.paymentgateway_is_test or 0 }} </span>
</div>
<div class="col-md-4">
<label for="app_url">App URL</label>
<input type="text" name="app_url" id="app_url" placeholder="Enter App URL" class="form-control" value="{{society_app_data.app_url or '' }}" />
</div>
</div><br>
<div class="row" >
<div class="col-md-8 ">
<span class="text-primary h5">Check before updating in Society Application</span>
<label>If you want to update same details in Society Application ( Note : Only Stylesheet,Payment Gateway details )</label>
</div>
<div class="col-md-2 ">
<button type="button" class="btn btn-primary btn-md text-left" name="update_sa_btn" id="update_sa_btn" class="update_sa_btn" title="Update In society Application">Update</button>
</div>
<div class="col-md-2 "></div>
</div>
</div>
</div><br><hr><br>
<div class="row" >
<div class="col-md-6">
<label for="mail_header_logo">Mail Header Logo</label>
<input type="text" name="mail_header_logo" id="mail_header_logo" placeholder="Enter Mail Header Logo" class=" form-control" value="{{conf_data.mail_header_logo or '' }}" />
{% if conf_data.mail_header_logo : %}
<div style=" overflow-x: hidden;overflow-y: hidden; border: 1px solid #ced4da;border-radius: 8px;margin-top: 3px; text-align: center;">
<iframe src="{{conf_data.mail_header_logo}}" height="120" width="640"></iframe> </div>
{% else %}
{% endif %}
</div>
<div class="col-md-6">
<label for="header_logo">Header Logo</label>
<input type="text" name="header_logo" id="header_logo" placeholder="Enter Header Logo" class="form-control" value="{{conf_data.header_logo or '' }}"/>
{% if conf_data.header_logo : %}
<div style=" overflow-x: hidden;overflow-y: auto; border: 1px solid #ced4da;border-radius: 8px;margin-top: 3px; text-align: center;">
<iframe src="{{conf_data.header_logo}}" style="margin-top: 8px;" height="120" width="640"></iframe> </div>
{% else %}
{% endif %}
</div>
</div><br>
<div class="row" >
<div class="col-md-2">
<label for="index_content">Index Content</label>
</div>
<div class="col-md-10">
<textarea name="index_content" id="index_content" rows="8" cols="68" class="form-control" placeholder="Enter Index Content">{{conf_data.index_content or ''}}</textarea>
</div>
</div><br>
<div class="row">
<div class="col-md-12 text-right">
<button class="btn btn-info view_index_content_btn" id="view_index_content_btn" type="button" data-toggle="collapse" data-target="#view_index_content" aria-expanded="false" aria-controls="view_index_content">View Index Content (In Html)</button>
</div>
</div><br/>
<div class="row">
<div class="col-md-12 text-center">
<div class="container" style="width: 100%; height: auto;">
<div class="collapse" id="view_index_content">
<div class="card card-body">
<div class="row">
<div class="col-md-6 col-md-12">
{{conf_data.index_content or '' }}
</div>
</div>
</div>
</div>
</div>
</div>
</div><br/>
<div class="row" >
<div class="col-md-2">
<label for="tariff_url">Tariff Content</label>
</div>
<div class="col-md-10">
<textarea name="tariff_content" id="tariff_content" rows="8" cols="68" class="form-control" placeholder="Enter Tariff Content / URL">{{conf_data.tariff_url or ''}}</textarea>
</div>
</div><br>
<div class="row">
<div class="col-md-6 text-right">
<button class="btn btn-info view_tariff_btn" id="view_tariff_btn" type="button" data-toggle="collapse" data-target="#view_tariff_html" aria-expanded="false" aria-controls="view_tariff_html">View Tariff Content (In Html)</button>
</div>
<div class="col-md-6 text-left">
<button class="btn btn-primary" type="button" data-toggle="collapse" data-target="#view_tariff_image" aria-expanded="false" aria-controls="view_tariff_image">View Tariff (In Image)</button>
</div>
</div><br/>
<div class="row">
<div class="col-md-12 text-center">
<div class="container" style="width: 100%; height: auto;">
<div class="collapse" id="view_tariff_image">
<div class="card card-body">
<div class="row">
<div class="col-md-6 col-md-12">
<img src=" {{conf_data.tariff_url or '' }}">
</div>
</div>
</div>
</div>
</div>
</div>
</div><br/>
<div class="row">
<div class="col-md-12 text-center">
<div class="container" style="width: 100%; height: auto;">
<div class="collapse" id="view_tariff_html">
<div class="card card-body">
<div class="row">
<div class="col-md-6 col-md-12">
{{conf_data.tariff_url|safe or '' }}
</div>
</div>
</div>
</div>
</div>
</div>
</div><br/>
<div class="row" >
<div class="col-md-3">
<label for="reg_start_on">Reg Start on</label>
<input type="date" name="reg_start_on" class="form-control" id="reg_start_on" value="{{conf_data.reg_start_on}}">
</div>
<div class="col-md-3">
<label for="reg_end_on">Reg End on</label>
<input type="datetime-local" name="reg_end_on" class="form-control" id="reg_end_on" value="{{conf_data.reg_end_on }}">
</div>
<div class="col-md-3">
<label for="conf_start_time">Conf Start Time</label>
<input type="datetime-local" name="conf_start_time" class="form-control" id="conf_start_time" value="{{conf_data.conf_start_time }}">
</div>
<div class="col-md-3">
<label for="conf_end_time">Conf End Time</label>
<input type="datetime-local" name="conf_end_time" class="form-control" id="conf_end_time" value="{{conf_data.conf_end_time }}">
</div>
</div><br>
<div class="row" >
<div class="col-md-3">
<label for="user_name">User Name</label>
<input type="text" name="user_name" id="user_name" class="form-control" placeholder="Enter User Name" {% if conf_data.username %} value="{{conf_data.username}}" {% else %} value="{{conf_key}}" {% endif %}>
</div>
<div class="col-md-3">
<label for="badge_login_password">Badge Login Password</label>
<input type="text" name="badge_login_password" id="badge_login_password" class="form-control" placeholder="Enter Badge Login Password" {% if conf_data.badge_login_password %} value="{{conf_data.badge_login_password}}" {% else %} value="{{conf_key}}" {% endif %}>
</div><br>
<div class="col-md-3">
<label for="conf_uuid">Conf UUID :</label>
{% if conf_data.conf_uuid %}
<input type="text" name="conf_uuid" id="conf_uuid" class="form-control" value="{{conf_data.conf_uuid or '' }}">
{% else %}
<a href="{{url_for('confapp.GenerateConfUuid',conf_id=conf_id,conf_key=conf_key)}}" id="generate_conf_uuid" name="generate_conf_uuid" class="btn btn-info ml-3 mt-3" title="Generate Conf UUID">Generate</a>
{% endif %}
</div> <br>
<div class="col-md-3">
<label for="regdesk_pin">Regdesk Pin</label>
<input type="text" name="regdesk_pin" id="regdesk_pin" placeholder="Enter Regdesk Pin" class="form-control" value="{{conf_data.regdesk_pin or '' }}" />
</div>
</div><br>
<div class="row" >
<div class="col-md-4">
<div class="row">
<div class="col-md-12">
<label for="is_regdesk_open">Is regdesk open or not</label><br>
</div>
<div class="col-md-12">
<label><input type="radio" name="is_regdesk_open" id="is_regdesk_open_yes" {% if conf_data.is_regdesk_open == 1 : %}checked="checked" {% endif %} value="1"> Yes </label>
<label><input type="radio" name="is_regdesk_open" id="is_regdesk_open_no" {% if conf_data.is_regdesk_open == 0 : %}checked="checked" {% endif %} value="0"> No </label>
</div>
</div>
</div>
<div class="col-md-4">
<div class="row">
<div class="col-md-12">
<label for="system_wise_scan">Is System wise scan</label><br>
</div>
<div class="col-md-12">
<label><input type="radio" name="system_wise_scan" id="system_wise_scan_yes" {% if conf_data.system_wise_scan == 1 : %}checked="checked" {% endif %} value="1"> Yes </label>
<label><input type="radio" name="system_wise_scan" id="system_wise_scan_no" {% if conf_data.system_wise_scan == 0 : %}checked="checked" {% endif %} value="0"> No </label>
</div>
</div>
</div>
<div class="col-md-4">
</div>
</div><hr>
<div class="row" >
<div class="col-md-9">
</div>
</div>
<div class="row mt-5">
<div class="col-lg-12 col-md-12 col-sm-12 text-center">
<button type="submit" class="btn btn-primary btn-md text-center" name="update_btn" id="update_btn" class="update_btn" title="Update">Update</button>
<a class="btn btn-danger" type="button" id="back" href="{{ url_for('confapp.ConferenceIndex') }}" title="Cancel">Cancel</a>
</div>
</div>
</form>
</div>
</div>
<div class="col-md-1"></div>
</div>
{% endblock %}
{% block bottomscript %}
<script type="text/javascript">
var BaseUrl = document.location.origin;
$(document).ready(function(){
$("#view_tariff_btn").click(function()
{
var tariff_content = $("#tariff_content").val();
$("#view_tariff_html").html(tariff_content);
});
$("#view_index_content_btn").click(function()
{
var index_content = $("#index_content").val();
$("#view_index_content").html(index_content);
});
});
$("#update_sa_btn").click(function (e) {
e.preventDefault();
if(confirm("Are you sure you want to Update in Society Application ?"))
{
var conf_id = $("#conf_id").val();
var conf_key = $("#conf_key").val();
var payment_api_url = $("#payment_api_url").val();
var call_payment_url = $("#call_payment_url").val();
var stylesheet = $("#stylesheet").val();
var pg_appmaster_id = $("#pg_appmaster_id").val();
var pg_is_test = $('input[name="pg_is_test"]:checked').val();
var app_url = $("#app_url").val();
ShowProgress();
$.ajax({
type: "POST",
url: BaseUrl +"/"+conf_id +"/" +conf_key + "/update_society_application",
data:{
'payment_api_url':payment_api_url,
'call_payment_url':call_payment_url,
'stylesheet':stylesheet,
'pg_appmaster_id':pg_appmaster_id,
'pg_is_test':pg_is_test,
'app_url':app_url
},
dataType:'html',
success: function (response) {
StopProgress();
var data_1 = JSON.parse(response);
var msg = data_1.msg;
if (data_1.status == 1) {
alert(msg);
window.location.reload();
} else {
alert(msg);
return false;
}
},
});
}
else{
return false;
}
});
$("#generate_conf_uuid").click(function (e) {
e.preventDefault();
if(confirm("Are you sure you want to Generate Conf UUID ?"))
{
var conf_id = $("#conf_id").val();
var conf_key = $("#conf_key").val();
ShowProgress();
$.ajax({
type: "GET",
url: BaseUrl +"/"+conf_id +"/" +conf_key + "/generate_conf_uuid",
dataType:'html',
success: function (response) {
StopProgress();
var data_1 = JSON.parse(response);
var msg = data_1.msg;
if (data_1.status == 1) {
window.location.reload();
} else {
alert(msg);
return false;
}
},
});
}
else{
return false;
}
});
</script>
{% endblock %}
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists