CHANGE_ test changes : GWM
This commit is contained in:
parent
0a14de4d73
commit
b452f4e885
@ -54,9 +54,14 @@
|
|||||||
<div class="col-8">
|
<div class="col-8">
|
||||||
<div class="page-title-box page-title-box-alt">
|
<div class="page-title-box page-title-box-alt">
|
||||||
<h4 class="page-title"><?php echo $docData->service_name; ?>
|
<h4 class="page-title"><?php echo $docData->service_name; ?>
|
||||||
<a class="download-btnn" style="color:#000;">
|
<a class="download-btnn" style="color:#000;" title="Download">
|
||||||
<i class="fas fa-download"></i>
|
<i class="fas fa-download"></i>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
<?php if(isset($_SESSION['is_staff_logged_in']) && $_SESSION['is_staff_logged_in']) { ?>
|
||||||
|
<i class="mdi mdi-link-variant-plus" title="Create Share Link" data-id="<?php echo $docData->doc_id; ?>" onclick="createSharedLink(this)"></i>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
</h4>
|
</h4>
|
||||||
<div class="page-title-right">
|
<div class="page-title-right">
|
||||||
<!-- <a onclick="window.history.back()" class="btn btn-secondary waves-effect waves-light" > Close </a> -->
|
<!-- <a onclick="window.history.back()" class="btn btn-secondary waves-effect waves-light" > Close </a> -->
|
||||||
@ -190,6 +195,22 @@
|
|||||||
</div><!-- /.modal -->
|
</div><!-- /.modal -->
|
||||||
|
|
||||||
|
|
||||||
|
<div id="linkModal" class="modal" tabindex="-1" role="dialog">
|
||||||
|
<div class="modal-dialog" role="document">
|
||||||
|
<div class="modal-content">
|
||||||
|
|
||||||
|
<div class="modal-body">
|
||||||
|
<p id="generatedLink" style="display:none;"></p>
|
||||||
|
Copy the document link by clicking the below button
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-primary" id="copyLinkButton">Copy Link</button>
|
||||||
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
@ -468,6 +489,56 @@
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function createSharedLink(params){
|
||||||
|
var doc_id = params.getAttribute('data-id');
|
||||||
|
$('.loader').fadeIn();
|
||||||
|
$('.loader-mask').fadeIn();
|
||||||
|
var formData = {
|
||||||
|
doc_id: doc_id,
|
||||||
|
};
|
||||||
|
$.ajax({
|
||||||
|
type: 'POST',
|
||||||
|
url: '<?php echo base_url()."createSharedLink"?>',
|
||||||
|
data: formData,
|
||||||
|
dataType: 'json',
|
||||||
|
success: function(response) {
|
||||||
|
|
||||||
|
setTimeout(function() {
|
||||||
|
$('.loader').fadeOut();
|
||||||
|
$('.loader-mask').fadeOut('slow');
|
||||||
|
}, 1000);
|
||||||
|
|
||||||
|
|
||||||
|
if (response.status == 'success')
|
||||||
|
{
|
||||||
|
$('#generatedLink').text(response.link);
|
||||||
|
$('#linkModal').modal('show');
|
||||||
|
} else {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
},
|
||||||
|
error: function(xhr, status, error) {
|
||||||
|
// Handle error response here
|
||||||
|
console.error(xhr.responseText);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
$(document).on('click', '#copyLinkButton', function() {
|
||||||
|
const textToCopy = $('#generatedLink').text();
|
||||||
|
|
||||||
|
// Use the Clipboard API to copy the text
|
||||||
|
navigator.clipboard.writeText(textToCopy).then(() => {
|
||||||
|
// Success callback
|
||||||
|
console.log('Text copied to clipboard');
|
||||||
|
}).catch(err => {
|
||||||
|
// Error callback
|
||||||
|
console.error('Failed to copy text: ', err);
|
||||||
|
});
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -29,8 +29,8 @@ bgcolor="#f6f6f6">
|
|||||||
bgcolor="#fff">
|
bgcolor="#fff">
|
||||||
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
|
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
|
||||||
<td class=""
|
<td class=""
|
||||||
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 16px; vertical-align: top; color: #fff; font-weight: 500; text-align: center; border-radius: 3px 3px 0 0; background-color: #85a7c9; margin: 0; padding: 20px;"
|
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 16px; vertical-align: top; color: #fff; font-weight: 500; text-align: center; border-radius: 3px 3px 0 0; background-color: #38414a; margin: 0; padding: 20px;"
|
||||||
align="center" bgcolor="#85a7c9" valign="top">
|
align="center" bgcolor="#71b6f9" valign="top">
|
||||||
|
|
||||||
<span style="margin-top: 10px;display: block;">Verify Document</span>
|
<span style="margin-top: 10px;display: block;">Verify Document</span>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@ -77,13 +77,12 @@
|
|||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th style="width:10px">Client Name</th>
|
<th style="width:10px">Client</th>
|
||||||
<th>Client Branch Name</th>
|
|
||||||
<th>Service Group</th>
|
<th>Service Group</th>
|
||||||
<th>Service Name</th>
|
<th>Service</th>
|
||||||
<th>Document Name</th>
|
<th>Document</th>
|
||||||
<th>Doc Status</th>
|
<th>Doc Status</th>
|
||||||
<th>Approve Date</th>
|
<th>Approvel Date</th>
|
||||||
<th>Action</th>
|
<th>Action</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -94,8 +93,7 @@
|
|||||||
<?php foreach ($doc_list as $key => $value) { ?>
|
<?php foreach ($doc_list as $key => $value) { ?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td style="width:10px"> <?php echo $value['client_name']; ?></td>
|
<td style="width:10px"> <?= $value['client_name']; ?> <?php if (!empty($value['client_branch_name'])): ?>- <?= $value['client_branch_name']; ?><?php endif; ?> </td>
|
||||||
<td> <?php echo $value['client_branch_name']; ?></td>
|
|
||||||
<td> <?php echo $value['group_name']; ?></td>
|
<td> <?php echo $value['group_name']; ?></td>
|
||||||
<td> <?php echo $value['service_name']; ?></td>
|
<td> <?php echo $value['service_name']; ?></td>
|
||||||
<td> <?php echo $value['document_name']; ?></td>
|
<td> <?php echo $value['document_name']; ?></td>
|
||||||
@ -643,10 +641,10 @@
|
|||||||
if (response.mail_status == 'success')
|
if (response.mail_status == 'success')
|
||||||
{
|
{
|
||||||
toastr.success(response.data, 'Success');
|
toastr.success(response.data, 'Success');
|
||||||
toastr.success('Mail Send To '+response.mail, 'Success');
|
toastr.success('Mail Sent To '+response.mail, 'Success');
|
||||||
} else {
|
} else {
|
||||||
toastr.success(response.data, 'Success');
|
toastr.success(response.data, 'Success');
|
||||||
toastr.warning('Failed to send mail to '+response.mail, 'Warning');
|
toastr.warning('Failed to sent mail to '+response.mail, 'Warning');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
BIN
public/assets/images/Dox-old.png
Normal file
BIN
public/assets/images/Dox-old.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 114 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 114 KiB After Width: | Height: | Size: 7.1 KiB |
Loading…
Reference in New Issue
Block a user