design bug fixing
This commit is contained in:
@@ -721,6 +721,13 @@ select#cars {
|
||||
|
||||
<div class="form-box mb-5">
|
||||
|
||||
<<<<<<< HEAD
|
||||
<label class="fs-6 fw-semibold form-label mt-3">
|
||||
|
||||
<span>City</span>
|
||||
|
||||
</label>
|
||||
=======
|
||||
<label class="fs-6 fw-semibold form-label mt-3">
|
||||
<span>Company</span>
|
||||
</label>
|
||||
@@ -843,6 +850,7 @@ select#cars {
|
||||
value='{{ $lead->total_employees }}' />
|
||||
|
||||
</div>
|
||||
>>>>>>> 59cf1f94e432bdda61327fc887fdd097004e075a
|
||||
|
||||
<input type="text" class="form-control form-control-solid"
|
||||
name="city" value='{{ $lead->city }}' />
|
||||
@@ -954,6 +962,45 @@ select#cars {
|
||||
|
||||
</div>
|
||||
|
||||
<<<<<<< HEAD
|
||||
|
||||
|
||||
<select name="cars" id="cars">
|
||||
|
||||
<option value="volvo">Recent First</option>
|
||||
|
||||
<option value="saab">Recent Last</option>
|
||||
|
||||
</select>
|
||||
|
||||
</div>
|
||||
|
||||
<form id="add-notes">
|
||||
@csrf
|
||||
<input type="hidden" name="leads_id" value="{{ $lead->id }}">
|
||||
<div class="add-note">
|
||||
<input type="text" id="fname" name="notes" placeholder="Add a note...">
|
||||
</div>
|
||||
<div class="modal-footer justify-content-end add-btn m-5">
|
||||
<button type="submit" class="btn btn-primary btn-hover-rise"
|
||||
id="fname">Save</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="main-attachments">
|
||||
<div class="Attachments">
|
||||
<div>
|
||||
<h4 class="fw-bold fs-2 mb-10">Attachments</h4>
|
||||
</div>
|
||||
<button type="button" onclick="myFunction()">Attach<i class="fa fa-caret-down"
|
||||
aria-hidden="true"></i></button>
|
||||
<div id="myDIV" style="z-index:1">
|
||||
<p><a data-bs-toggle="modal" data-bs-target="#attach_upload">Upload
|
||||
File</a></p>
|
||||
<p><a data-bs-toggle="modal" data-bs-target="#attach_link">Link(URL)</a>
|
||||
</p>
|
||||
=======
|
||||
<div class="attach">
|
||||
<div class="card">
|
||||
<ul class="list-group list-group-flush">
|
||||
@@ -983,6 +1030,7 @@ select#cars {
|
||||
@endforelse
|
||||
</ul>
|
||||
</div>
|
||||
>>>>>>> 59cf1f94e432bdda61327fc887fdd097004e075a
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1915,7 +1963,11 @@ select#cars {
|
||||
|
||||
<label for="fname">Reminder</label>
|
||||
|
||||
<<<<<<< HEAD
|
||||
<input type="text" id="" name="reminder">
|
||||
=======
|
||||
<input type="date" id="reminder" name="reminder" min="">
|
||||
>>>>>>> 59cf1f94e432bdda61327fc887fdd097004e075a
|
||||
|
||||
</div>
|
||||
|
||||
@@ -3103,6 +3155,489 @@ select#cars {
|
||||
@endsection
|
||||
|
||||
@section('scripts')
|
||||
<<<<<<< HEAD
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-datetimepicker/2.5.20/jquery.datetimepicker.full.min.js">
|
||||
</script>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
var backRoute = sessionStorage.getItem('backRoute');
|
||||
if (backRoute) {
|
||||
$('.backRouteAnchorTag').attr('href', "{{ route('personal-dashboard') }}");
|
||||
} else {
|
||||
$('.backRouteAnchorTag').attr('href', "{{ route('manage_leads') }}");
|
||||
}
|
||||
})
|
||||
$('.convertChkbox').click(function() {
|
||||
Swal.fire({
|
||||
title: 'Do you want to convert it to closed activity?',
|
||||
showDenyButton: false,
|
||||
showCancelButton: true,
|
||||
confirmButtonText: 'Yes',
|
||||
cancelButtonText: 'No',
|
||||
}).then((result) => {
|
||||
if (result.isConfirmed) {
|
||||
$.ajax({
|
||||
headers: {
|
||||
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
|
||||
},
|
||||
url: "{{ route('convert-closed') }}",
|
||||
type: "POST",
|
||||
data: {
|
||||
task_id: $(this).data('task-id'),
|
||||
table: $(this).data('table')
|
||||
},
|
||||
success: function(result) {
|
||||
toastr.success(result.message);
|
||||
setTimeout(() => {
|
||||
location.reload();
|
||||
}, 1000);
|
||||
},
|
||||
error: function(jqXHR) {
|
||||
// $("#request_callback_btn").removeClass("d-none");
|
||||
// $("#loaderContactBtn").addClass("d-none");
|
||||
warning(jqXHR.responseJSON);
|
||||
},
|
||||
});
|
||||
} else {
|
||||
$('.convertChkbox').prop("checked", false);
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
$('#dateTime').datetimepicker({
|
||||
debug: true,
|
||||
format: 'Y-m-d H:i:s',
|
||||
locale: 'ru'
|
||||
});
|
||||
|
||||
$('#meeting-from').datetimepicker({
|
||||
debug: true,
|
||||
format: 'Y-m-d H:i:s',
|
||||
locale: 'ru'
|
||||
});
|
||||
|
||||
$('#meeting-to').datetimepicker({
|
||||
debug: true,
|
||||
format: 'Y-m-d H:i:s',
|
||||
locale: 'ru'
|
||||
});
|
||||
|
||||
$('#call_start_time').datetimepicker({
|
||||
debug: true,
|
||||
format: 'Y-m-d H:i:s',
|
||||
locale: 'ru'
|
||||
});
|
||||
|
||||
$('#call_start_time_log').datetimepicker({
|
||||
debug: true,
|
||||
format: 'Y-m-d H:i:s',
|
||||
locale: 'ru'
|
||||
});
|
||||
|
||||
function myFunction() {
|
||||
var x = document.getElementById("myDIV");
|
||||
if (x.style.display === "block") {
|
||||
x.style.display = "none";
|
||||
} else {
|
||||
x.style.display = "block";
|
||||
}
|
||||
}
|
||||
|
||||
function activate() {
|
||||
var x = document.getElementById("activ_drop");
|
||||
if (x.style.display === "block") {
|
||||
x.style.display = "none";
|
||||
} else {
|
||||
x.style.display = "block";
|
||||
}
|
||||
}
|
||||
|
||||
function call() {
|
||||
var x = document.getElementById("call_drop");
|
||||
if (x.style.display === "block") {
|
||||
x.style.display = "none";
|
||||
} else {
|
||||
x.style.display = "block";
|
||||
}
|
||||
}
|
||||
|
||||
function notes() {
|
||||
var x = document.getElementById("my_notes");
|
||||
if (x.style.display === "block") {
|
||||
x.style.display = "none";
|
||||
} else {
|
||||
x.style.display = "block";
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
$("#send_mail_replybtn").on("click", function() {
|
||||
$('#view_details').modal('hide');
|
||||
$('#send_mail_reply').modal('show');
|
||||
});
|
||||
});
|
||||
|
||||
// $('#myDIV').on('hidden', function() {
|
||||
// // location.reload();
|
||||
// var x = document.getElementById("myDIV");
|
||||
// x.style.display = "none";
|
||||
// // if (x.style.display === "block") {
|
||||
// // x.style.display = "none";
|
||||
// // } else {
|
||||
// // x.style.display = "block";
|
||||
// // }
|
||||
// })
|
||||
// $(document).click(function(event) {
|
||||
// var container = $("#myDIV");
|
||||
// if (!container.is(event.target) && !container.has(event.target).length) {
|
||||
// // container.hide();
|
||||
// // container.style.display = "none";
|
||||
// $('#myDIV').addClass('d-none');
|
||||
// }
|
||||
// });
|
||||
|
||||
// "use strict";
|
||||
// var KTUsersList = function() {
|
||||
|
||||
// var e, t, n, r, o = document.getElementById("contact_from_leads"),
|
||||
|
||||
// c = () => {
|
||||
|
||||
// o.querySelectorAll('[data-kt-users-table-filter="delete_row"]').forEach((t => {
|
||||
|
||||
// t.addEventListener("click", (function(t) {
|
||||
|
||||
// t.preventDefault();
|
||||
|
||||
// const n = t.target.closest("tr"),
|
||||
|
||||
// r = n.querySelectorAll("td")[1].querySelectorAll("a")[1].innerText;
|
||||
|
||||
// Swal.fire({
|
||||
|
||||
// text: "Are you sure you want to delete " + r + "?",
|
||||
|
||||
// icon: "warning",
|
||||
|
||||
// showCancelButton: !0,
|
||||
|
||||
// buttonsStyling: !1,
|
||||
|
||||
// confirmButtonText: "Yes, delete!",
|
||||
|
||||
// cancelButtonText: "No, cancel",
|
||||
|
||||
// customClass: {
|
||||
|
||||
// confirmButton: "btn fw-bold btn-danger",
|
||||
|
||||
// cancelButton: "btn fw-bold btn-active-light-primary"
|
||||
|
||||
// }
|
||||
|
||||
// }).then((function(t) {
|
||||
|
||||
// t.value ? Swal.fire({
|
||||
|
||||
// text: "You have deleted " + r + "!.",
|
||||
|
||||
// icon: "success",
|
||||
|
||||
// buttonsStyling: !1,
|
||||
|
||||
// confirmButtonText: "Ok, got it!",
|
||||
|
||||
// customClass: {
|
||||
|
||||
// confirmButton: "btn fw-bold btn-primary"
|
||||
|
||||
// }
|
||||
|
||||
// }).then((function() {
|
||||
|
||||
// e.row($(n)).remove().draw()
|
||||
|
||||
// })).then((function() {
|
||||
|
||||
// a()
|
||||
|
||||
// })) : "cancel" === t.dismiss && Swal.fire({
|
||||
|
||||
// text: customerName + " was not deleted.",
|
||||
|
||||
// icon: "error",
|
||||
|
||||
// buttonsStyling: !1,
|
||||
|
||||
// confirmButtonText: "Ok, got it!",
|
||||
|
||||
// customClass: {
|
||||
|
||||
// confirmButton: "btn fw-bold btn-primary"
|
||||
|
||||
// }
|
||||
|
||||
// })
|
||||
|
||||
// }))
|
||||
|
||||
// }))
|
||||
|
||||
// }))
|
||||
|
||||
// },
|
||||
|
||||
// l = () => {
|
||||
|
||||
// const c = o.querySelectorAll('[type="checkbox"]');
|
||||
|
||||
// t = document.querySelector('[data-kt-user-table-toolbar="base"]'), n = document.querySelector('[data-kt-user-table-toolbar="selected"]'), r = document.querySelector('[data-kt-user-table-select="selected_count"]');
|
||||
|
||||
// const s = document.querySelector('[data-kt-user-table-select="delete_selected"]');
|
||||
|
||||
// c.forEach((e => {
|
||||
|
||||
// e.addEventListener("click", (function() {
|
||||
|
||||
// setTimeout((function() {
|
||||
|
||||
// a()
|
||||
|
||||
// }), 50)
|
||||
|
||||
// }))
|
||||
|
||||
// })), s.addEventListener("click", (function() {
|
||||
|
||||
// Swal.fire({
|
||||
|
||||
// text: "Are you sure you want to delete selected customers?",
|
||||
|
||||
// icon: "warning",
|
||||
|
||||
// showCancelButton: !0,
|
||||
|
||||
// buttonsStyling: !1,
|
||||
|
||||
// confirmButtonText: "Yes, delete!",
|
||||
|
||||
// cancelButtonText: "No, cancel",
|
||||
|
||||
// customClass: {
|
||||
|
||||
// confirmButton: "btn fw-bold btn-danger",
|
||||
|
||||
// cancelButton: "btn fw-bold btn-active-light-primary"
|
||||
|
||||
// }
|
||||
|
||||
// }).then((function(t) {
|
||||
|
||||
// t.value ? Swal.fire({
|
||||
|
||||
// text: "You have deleted all selected customers!.",
|
||||
|
||||
// icon: "success",
|
||||
|
||||
// buttonsStyling: !1,
|
||||
|
||||
// confirmButtonText: "Ok, got it!",
|
||||
|
||||
// customClass: {
|
||||
|
||||
// confirmButton: "btn fw-bold btn-primary"
|
||||
|
||||
// }
|
||||
|
||||
// }).then((function() {
|
||||
|
||||
// c.forEach((t => {
|
||||
|
||||
// t.checked && e.row($(t.closest("tbody tr"))).remove().draw()
|
||||
|
||||
// }));
|
||||
|
||||
// o.querySelectorAll('[type="checkbox"]')[0].checked = !1
|
||||
|
||||
// })).then((function() {
|
||||
|
||||
// a(), l()
|
||||
|
||||
// })) : "cancel" === t.dismiss && Swal.fire({
|
||||
|
||||
// text: "Selected customers was not deleted.",
|
||||
|
||||
// icon: "error",
|
||||
|
||||
// buttonsStyling: !1,
|
||||
|
||||
// confirmButtonText: "Ok, got it!",
|
||||
|
||||
// customClass: {
|
||||
|
||||
// confirmButton: "btn fw-bold btn-primary"
|
||||
|
||||
// }
|
||||
|
||||
// })
|
||||
|
||||
// }))
|
||||
|
||||
// }))
|
||||
|
||||
// };
|
||||
|
||||
// const a = () => {
|
||||
|
||||
// const e = o.querySelectorAll('tbody [type="checkbox"]');
|
||||
|
||||
// let c = !1,
|
||||
|
||||
// l = 0;
|
||||
|
||||
// e.forEach((e => {
|
||||
|
||||
// e.checked && (c = !0, l++)
|
||||
|
||||
// })), c ? (r.innerHTML = l, t.classList.add("d-none"), n.classList.remove("d-none")) : (t.classList.remove("d-none"), n.classList.add("d-none"))
|
||||
|
||||
// };
|
||||
|
||||
// return {
|
||||
|
||||
// init: function() {
|
||||
|
||||
// o && (o.querySelectorAll("tbody tr").forEach((e => {
|
||||
|
||||
// const t = e.querySelectorAll("td"),
|
||||
|
||||
// n = t[3].innerText.toLowerCase();
|
||||
|
||||
// let r = 0,
|
||||
|
||||
// o = "minutes";
|
||||
|
||||
// n.includes("yesterday") ? (r = 1, o = "days") : n.includes("mins") ? (r = parseInt(n.replace(/\D/g, "")), o = "minutes") : n.includes("hours") ? (r = parseInt(n.replace(/\D/g, "")), o = "hours") : n.includes("days") ? (r = parseInt(n.replace(/\D/g, "")), o = "days") : n.includes("weeks") && (r = parseInt(n.replace(/\D/g, "")), o = "weeks");
|
||||
|
||||
// const c = moment().subtract(r, o).format();
|
||||
|
||||
// t[3].setAttribute("data-order", c);
|
||||
|
||||
// const l = moment(t[5].innerHTML, "DD MMM YYYY, LT").format();
|
||||
|
||||
// t[5].setAttribute("data-order", l)
|
||||
|
||||
// })), (e = $(o).DataTable({
|
||||
|
||||
// info: !1,
|
||||
|
||||
// order: [],
|
||||
|
||||
// pageLength: 10,
|
||||
|
||||
// lengthChange: !1,
|
||||
|
||||
// columnDefs: [{
|
||||
|
||||
// orderable: !1,
|
||||
|
||||
// targets: 0
|
||||
|
||||
// }, {
|
||||
|
||||
// orderable: !1,
|
||||
|
||||
// targets: 6
|
||||
|
||||
// }]
|
||||
|
||||
// })).on("draw", (function() {
|
||||
|
||||
// l(), c(), a()
|
||||
|
||||
// })), l(), document.querySelector('[data-kt-user-table-filter="search"]').addEventListener("keyup", (function(t) {
|
||||
|
||||
// e.search(t.target.value).draw()
|
||||
|
||||
// })), document.querySelector('[data-kt-user-table-filter="reset"]').addEventListener("click", (function() {
|
||||
|
||||
// document.querySelector('[data-kt-user-table-filter="form"]').querySelectorAll("select").forEach((e => {
|
||||
|
||||
// $(e).val("").trigger("change")
|
||||
|
||||
// })), e.search("").draw()
|
||||
|
||||
// })), c(), (() => {
|
||||
|
||||
// const t = document.querySelector('[data-kt-user-table-filter="form"]'),
|
||||
|
||||
// n = t.querySelector('[data-kt-user-table-filter="filter"]'),
|
||||
|
||||
// r = t.querySelectorAll("select");
|
||||
|
||||
// n.addEventListener("click", (function() {
|
||||
|
||||
// var t = "";
|
||||
|
||||
// r.forEach(((e, n) => {
|
||||
|
||||
// e.value && "" !== e.value && (0 !== n && (t += " "), t += e.value)
|
||||
|
||||
// })), e.search(t).draw()
|
||||
|
||||
// }))
|
||||
|
||||
// })())
|
||||
|
||||
// }
|
||||
|
||||
// }
|
||||
|
||||
// }();
|
||||
// KTUtil.onDOMContentLoaded((function() {
|
||||
|
||||
// KTUsersList.init()
|
||||
|
||||
// }));
|
||||
|
||||
|
||||
$("#add-notes").validate({
|
||||
ignore: [],
|
||||
debug: false,
|
||||
rules: {
|
||||
// notes: 'required',
|
||||
},
|
||||
messages: {
|
||||
notes: "Please enter notes",
|
||||
},
|
||||
submitHandler: function(form) {
|
||||
var formData = new FormData(form);
|
||||
$.ajax({
|
||||
url: "{{ route('create-notes') }}",
|
||||
type: "POST",
|
||||
data: formData,
|
||||
beforeSend: function() {
|
||||
// $('#loaderBtn').removeClass('d-none');
|
||||
// $('#save-btn').addClass('d-none');
|
||||
},
|
||||
processData: false,
|
||||
contentType: false,
|
||||
dataType: "json",
|
||||
success: function(result) {
|
||||
// $('#save-btn').removeClass('d-none');
|
||||
// $('#loaderBtn').addClass('d-none');
|
||||
if (result.status == 200) {
|
||||
toastr.success(result.message);
|
||||
setTimeout(() => {
|
||||
location.reload();
|
||||
}, 1000);
|
||||
}
|
||||
},
|
||||
error: function(jqXHR) {
|
||||
// $("#request_callback_btn").removeClass("d-none");
|
||||
// $("#loaderContactBtn").addClass("d-none");
|
||||
warning(jqXHR.responseJSON);
|
||||
=======
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-datetimepicker/2.5.20/jquery.datetimepicker.full.min.js">
|
||||
</script>
|
||||
<script>
|
||||
@@ -3942,6 +4477,7 @@ document.getElementById("reminder").min = today;
|
||||
warning(jqXHR.responseJSON);
|
||||
},
|
||||
});
|
||||
>>>>>>> 59cf1f94e432bdda61327fc887fdd097004e075a
|
||||
},
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user