BUG_fix in ticket
This commit is contained in:
parent
659b6fd122
commit
5d351eacb7
@ -40,7 +40,7 @@ tbody td {
|
||||
|
||||
/* Add shadow + spacing row "card" effect */
|
||||
tbody tr {
|
||||
box-shadow: 0 2px 5px rgba(0,0,0,0.08);
|
||||
/* box-shadow: 0 2px 5px rgba(0,0,0,0.08); */
|
||||
}
|
||||
|
||||
/* Rounded corners for first + last cell of each row */
|
||||
@ -56,10 +56,10 @@ tbody tr td:last-child {
|
||||
/* Hover effect */
|
||||
#scroll-horizontal-datatable tbody tr:hover td {
|
||||
background-color: #e0e0e0;
|
||||
border-top-left-radius: 15px !important;
|
||||
border-bottom-left-radius: 15px !important;
|
||||
|
||||
}
|
||||
|
||||
|
||||
/* Search input with icon */
|
||||
.dataTables_filter {
|
||||
position: absolute;
|
||||
@ -110,9 +110,6 @@ tbody tr td:last-child {
|
||||
white-space: nowrap !important;
|
||||
} */
|
||||
|
||||
#scroll-horizontal-datatable tbody tr:hover {
|
||||
background-color: #e0e0e0;
|
||||
}
|
||||
|
||||
td .text-muted {
|
||||
font-size: 0.85em; /* smaller than default */
|
||||
@ -191,7 +188,7 @@ td .text-muted {
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="ticketModal" tabindex="-1" role="dialog" aria-hidden="true">
|
||||
<div class="modal-dialog modal-dialog-centered">
|
||||
<div class="modal-dialog modal-dialog-centered modal-xl">
|
||||
<div class="modal-content">
|
||||
<form id="ticketForm">
|
||||
<!-- <div class="modal-header">
|
||||
@ -242,12 +239,12 @@ td .text-muted {
|
||||
<input type="hidden" id="policy_id" name="policy_id">
|
||||
<input type="hidden" id="created_by" name="created_by" value="<?= get_session_userid(); ?>">
|
||||
|
||||
<div class="form-group col-md-6">
|
||||
<div class="form-group col-md-4">
|
||||
<label for="name">Name<span class="text-danger">*</span></label>
|
||||
<input type="text" class="form-control" id="name" name="name" placeholder="Enter Name" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-6">
|
||||
<div class="form-group col-md-4">
|
||||
<label for="email">Email Id<span class="text-danger">*</span></label>
|
||||
<input type="email" class="form-control" id="email"
|
||||
name="email" placeholder="Enter Email"
|
||||
@ -256,19 +253,19 @@ td .text-muted {
|
||||
title="Please enter a valid email address">
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-6">
|
||||
<div class="form-group col-md-4">
|
||||
<label for="empcode">Employee code</label>
|
||||
<input type="text" class="form-control" id="empcode" name="empcode" placeholder="Enter Employee code">
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-6">
|
||||
<div class="form-group col-md-4">
|
||||
<label for="policy_no">Policy Number</label>
|
||||
<select class="form-control" id="policy_no" name="policy_no" onchange="changevalue()">
|
||||
<option value="" selected data-id="">Select Policy</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-6">
|
||||
<div class="form-group col-md-4">
|
||||
<label for="ticket_type">Ticket Type<span class="text-danger">*</span></label>
|
||||
<select class="form-control" id="ticket_type" name="ticket_type" required>
|
||||
<option value="">Select Ticket Type</option>
|
||||
@ -292,7 +289,7 @@ td .text-muted {
|
||||
<!-- // enga 5-"head" and 1-"admin" assign pannvaga dropdown-data la varakudhathu
|
||||
// 2,3,4 dropdown data'va varannum but those role means hide it -->
|
||||
<?php if(in_array(get_role_id(), [2,3,4]) ) { ?>
|
||||
<div class="form-group col-md-6">
|
||||
<div class="form-group col-md-4">
|
||||
<label for="assign_to">Assign To</label>
|
||||
<select class="form-control" id="assign_to" name="assign_to">
|
||||
<option value="">Select Assign To</option>
|
||||
|
||||
@ -1,7 +1,4 @@
|
||||
<style>
|
||||
.bg-staff {
|
||||
background-color: #FFF5E5;
|
||||
}
|
||||
|
||||
.notes-box {
|
||||
display: flex;
|
||||
@ -45,18 +42,26 @@
|
||||
|
||||
.conversation-card{
|
||||
border-radius: 15px !important;
|
||||
box-shadow: 0 1px 4px #000000;
|
||||
box-shadow: 0 2px 4px 0 #00000040;
|
||||
}
|
||||
.card-scroll{
|
||||
overflow-y:auto;
|
||||
height:440px;
|
||||
|
||||
|
||||
}
|
||||
|
||||
.conversation-card,
|
||||
.conversation-card .card-header,
|
||||
.conversation-card .card-body {
|
||||
background: #F5FFFF !important;
|
||||
overflow-y:auto;
|
||||
|
||||
}
|
||||
.master-card{
|
||||
border-radius: 15px !important;
|
||||
box-shadow: 0 1px 4px #000000;
|
||||
overflow-y:auto;
|
||||
overflow-x:auto;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
@ -162,7 +167,7 @@
|
||||
<div class="col-8">
|
||||
|
||||
<!-- Conversation Card -->
|
||||
<div class="card mb-3 conversation-card">
|
||||
<div class="card mb-3 conversation-card card-scroll">
|
||||
<div class="card-header border-0">
|
||||
<h5 class="mb-0">Conversation</h5>
|
||||
<hr/>
|
||||
@ -210,8 +215,10 @@
|
||||
<div class="notes-box">
|
||||
<textarea class="form-control" id="notes" name="notes" placeholder="Write your notes here..."></textarea>
|
||||
<div class="icon-buttons">
|
||||
<button type="button" class="btn-icon" onclick="submitConverstionTicket('External')"><i class="mdi mdi-content-save"></i></button>
|
||||
<button type="button" class="btn-icon" onclick="submitConverstionTicket('Internal')"><i class="mdi mdi-email"></i></button>
|
||||
<!-- save btn means local - internal -->
|
||||
<button type="button" class="btn-icon" onclick="submitConverstionTicket('Internal')"><i class="mdi mdi-content-save"></i></button>
|
||||
<!-- mail btn means notify - external -->
|
||||
<button type="button" class="btn-icon" onclick="submitConverstionTicket('External')"><i class="mdi mdi-email"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@ -235,8 +242,8 @@
|
||||
|
||||
<div class="modal-body">
|
||||
<div class="form-row">
|
||||
<input type="hidden" id="edit_thz_id" name="thz_id">
|
||||
<input type="hidden" id="updated_by" name="updated_by" value="<?= get_session_userid(); ?>">
|
||||
<input type="text" id="edit_thz_id" name="thz_id">
|
||||
<input type="text" id="updated_by" name="updated_by" value="<?= get_session_userid(); ?>">
|
||||
|
||||
<div class="form-group col-md-12">
|
||||
<label for="ticket_type">Ticket Type<span class="text-danger">*</span></label>
|
||||
@ -329,15 +336,11 @@
|
||||
$("#ticket_type").select2();
|
||||
$("#status").select2();
|
||||
$("#assign_to").select2();
|
||||
});
|
||||
|
||||
|
||||
function openEditTicket() {
|
||||
|
||||
var form = document.getElementById('ticketForm');
|
||||
var form = document.getElementById('ticketForm');
|
||||
form.reset();
|
||||
|
||||
var masterData = <?= json_encode($master[0]); ?>;
|
||||
console.log(masterData);
|
||||
|
||||
document.getElementById('EditModalLabel').innerText = "Update";
|
||||
|
||||
@ -347,6 +350,20 @@
|
||||
document.getElementById('ticket_type').value = masterData.ticket_type;
|
||||
|
||||
|
||||
document.getElementById('EditModalLabel').innerText = "Update Ticket: " + masterData.thz_id ;
|
||||
|
||||
var myModal = new bootstrap.Modal(document.getElementById('EditModal'));
|
||||
myModal.show();
|
||||
});
|
||||
|
||||
|
||||
function openEditTicket() {
|
||||
|
||||
|
||||
|
||||
var masterData = <?= json_encode($master[0]); ?>;
|
||||
console.log(masterData);
|
||||
|
||||
document.getElementById('EditModalLabel').innerText = "Update Ticket: " + masterData.thz_id ;
|
||||
|
||||
var myModal = new bootstrap.Modal(document.getElementById('EditModal'));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user