Skip to content

Commit

Permalink
Commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
spinxi committed May 12, 2023
2 parents f035908 + 588876d commit b5ed3ef
Show file tree
Hide file tree
Showing 14,837 changed files with 2,701,048 additions and 8 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
15,759 changes: 15,758 additions & 1 deletion .gitignore

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions apps/admin.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
from django.contrib import admin

# Register your models here.
<<<<<<< HEAD

=======
>>>>>>> 588876d0dc8d4fce8bd7cad04e372aa75d08343d
13 changes: 13 additions & 0 deletions assets/js/pages/loadss/add.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
flatpickr("#id_pickup_date", {allowInput: true});
flatpickr("#id_pickup_time", {time_24hr: true, allowInput: true, noCalendar: true, enableTime: true});
flatpickr("#id_delivery_date", {allowInput: true});
flatpickr("#id_delivery_time", {time_24hr: true, allowInput: true, noCalendar: true, enableTime: true});
flatpickr("#id_cargo_expiration_date", {allowInput: true});
flatpickr("#id_physical_damage_expiration_date", {allowInput: true});

document.addEventListener("DOMContentLoaded", function () {
new Choices("#id_load_status", { shouldSort: 1 });
// new Choices("#id_trailer", { shouldSort: 1 });
// new Choices("#id_truck", { shouldSort: 1 });
// new Choices("#id_driver", { shouldSort: 1 });
});
46 changes: 46 additions & 0 deletions assets/js/pages/loadss/datatables.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
$(document).ready(function () {
var t = $("#datatable-buttons").DataTable({
dom: "tp",
scrollX: true,
ordering: !1,
language: { paginate: { previous: '<i class="mdi mdi-chevron-left"></i>', next: '<i class="mdi mdi-chevron-right"></i>' } },
// columnDefs : [
// //hide the second & fourth column
// { 'visible': false, 'targets': [6,7,8,9,10], }
// ],
buttons: [
{
extend: "excel",
charset: "utf-8",
className: "dropdown-item",
extension: ".xlsx",
text: "Export as Excel",
filename: "List-excel",
bom: !0,
init: function (t, e, n) {
$(e).removeClass("btn-secondary");
},
// exportOptions: { columns: [0, 1, 2, 4, 5] },
},
// {
// pageSize: "LEGAL",
// init: function (t, e, n) {
// $(e).removeClass("btn-secondary");
// },
// extend: "pdf",
// text: "Export as PDF",
// className: "dropdown-item",
// charset: "utf-8",
// extension: ".pdf",
// filename: "List-pdf",
// bom: !0,
// exportOptions: { columns: [0, 1, 2, 4, 5, 6, 7, 8] },
// },
],
});
t.buttons().container().appendTo($("#datatable_butt")),
$(".dt-buttons").removeClass("btn-group"),
$("#custom-filter").keyup(function () {
t.search(this.value).draw();
});
});
17 changes: 17 additions & 0 deletions assets/js/pages/loadss/form_wizard.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
$(document).ready(function () {
$("#progrss-wizard").bootstrapWizard({
onTabShow: function (a, r, i) {
r = ((i + 1) / r.find("li").length) * 100;
$("#progrss-wizard")
.find(".progress-bar")
.css({ width: r + "%" });
},
});
});
var triggerTabList = [].slice.call(document.querySelectorAll(".twitter-bs-wizard-nav .nav-link"));
triggerTabList.forEach(function (a) {
var r = new bootstrap.Tab(a);
a.addEventListener("click", function (a) {
a.preventDefault(), r.show();
});
});
1 change: 1 addition & 0 deletions assets/js/pages/trucksss/trucks-add.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
flatpickr("#id_truck_plate_exp", { });
7 changes: 7 additions & 0 deletions assets/js/pages/trucksss/trucks-delete.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

$(document).on('click','#delete-object', function(event){
var id = $(this).data("object-id");
var name = $(this).data("object-name");
$("#delete-object-a").attr("href", '/trucks/delete/' + id)
$("#object-name").text(name);
});
24 changes: 24 additions & 0 deletions assets/js/pages/trucksss/trucks-validate.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
!(function () {
"use strict";
window.addEventListener(
"load",
function () {
var e = document.getElementsByClassName("needs-validation");
Array.prototype.filter.call(e, function (t) {
t.addEventListener(
"submit",
function (e) {
!1 === t.checkValidity() && (e.preventDefault(), e.stopPropagation()), t.classList.add("was-validated");
},
!1
);
});
},
!1
);
})();
document.addEventListener("DOMContentLoaded", function () {

new Choices("#id_status", { shouldSort: 1 });
});

165 changes: 165 additions & 0 deletions assets/libs/gulp-rtlcss/node_modules/ansi-styles/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions assets/libs/gulp-rtlcss/node_modules/ansi-styles/license

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b5ed3ef

Please sign in to comment.