From f6076ad97aa98eb410639e3fcca6cddaca1756d3 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Thu, 9 Nov 2023 13:09:38 -0500 Subject: [PATCH] Remove Quick Add Instead redirect them to the categories settings page when plus is clicked --- calendar_event_add_modal.php | 3 - calendar_event_edit_modal.php | 2 +- calendar_events.php | 4 -- category_quick_add_modal.php | 96 ------------------------------ client_edit_modal.php | 7 +-- clients.php | 2 - expense_add_modal.php | 4 +- expense_edit_modal.php | 4 +- expenses.php | 3 - inc_client_top_head.php | 4 -- invoice_add_modal.php | 2 +- invoice_edit_modal.php | 2 +- invoices.php | 2 - post/client.php | 32 ++++++---- product_add_modal.php | 2 +- product_edit_modal.php | 2 +- products.php | 3 - quote_add_modal.php | 2 +- quote_edit_modal.php | 2 +- quotes.php | 2 - recurring_expense_create_modal.php | 4 +- recurring_expense_edit_modal.php | 4 +- recurring_invoice_add_modal.php | 2 +- recurring_invoice_edit_modal.php | 2 +- recurring_invoices.php | 5 -- revenue_add_modal.php | 2 +- revenue_edit_modal.php | 2 +- revenues.php | 6 -- 28 files changed, 40 insertions(+), 167 deletions(-) delete mode 100644 category_quick_add_modal.php diff --git a/calendar_event_add_modal.php b/calendar_event_add_modal.php index d32c752b..9b7ad916 100644 --- a/calendar_event_add_modal.php +++ b/calendar_event_add_modal.php @@ -58,9 +58,6 @@ -
- -
diff --git a/calendar_event_edit_modal.php b/calendar_event_edit_modal.php index 7ad9fe21..01b46cce 100644 --- a/calendar_event_edit_modal.php +++ b/calendar_event_edit_modal.php @@ -145,7 +145,7 @@ diff --git a/calendar_events.php b/calendar_events.php index 984f022e..ad1a2370 100644 --- a/calendar_events.php +++ b/calendar_events.php @@ -25,9 +25,6 @@ require_once "calendar_event_add_modal.php"; require_once "calendar_add_modal.php"; -require_once "category_quick_add_modal.php"; - - //loop through IDs and create a modal for each $sql = mysqli_query($mysqli, "SELECT * FROM events LEFT JOIN calendars ON event_calendar_id = calendar_id"); while ($row = mysqli_fetch_array($sql)) { @@ -44,7 +41,6 @@ while ($row = mysqli_fetch_array($sql)) { require "calendar_event_edit_modal.php"; - } ?> diff --git a/category_quick_add_modal.php b/category_quick_add_modal.php deleted file mode 100644 index e8eee6f2..00000000 --- a/category_quick_add_modal.php +++ /dev/null @@ -1,96 +0,0 @@ - - - - - - - - - diff --git a/client_edit_modal.php b/client_edit_modal.php index 1b253698..5dbda1f8 100644 --- a/client_edit_modal.php +++ b/client_edit_modal.php @@ -68,7 +68,7 @@
- -
- -
diff --git a/clients.php b/clients.php index a2d3e3b9..5c5b3e0e 100644 --- a/clients.php +++ b/clients.php @@ -347,7 +347,5 @@ require_once "client_add_modal.php"; require_once "client_export_modal.php"; -require_once "category_quick_add_modal.php"; - require_once "footer.php"; diff --git a/expense_add_modal.php b/expense_add_modal.php index e345e67d..1f59d60b 100644 --- a/expense_add_modal.php +++ b/expense_add_modal.php @@ -95,7 +95,7 @@ ?>
- +
@@ -140,7 +140,7 @@ ?>
- +
diff --git a/expense_edit_modal.php b/expense_edit_modal.php index 528e2904..f2e74ebe 100644 --- a/expense_edit_modal.php +++ b/expense_edit_modal.php @@ -102,7 +102,7 @@ ?>
- +
@@ -147,7 +147,7 @@ ?>
- +
diff --git a/expenses.php b/expenses.php index 85dcf1fa..50beb6f1 100644 --- a/expenses.php +++ b/expenses.php @@ -201,7 +201,4 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
- +
diff --git a/invoice_edit_modal.php b/invoice_edit_modal.php index 879d04d5..8f5cbf5b 100644 --- a/invoice_edit_modal.php +++ b/invoice_edit_modal.php @@ -56,7 +56,7 @@ ?>
- +
diff --git a/invoices.php b/invoices.php index 9881473b..1b8c6bc6 100644 --- a/invoices.php +++ b/invoices.php @@ -326,7 +326,5 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); $client_name updated"; diff --git a/product_add_modal.php b/product_add_modal.php index 07a38629..b62dd51a 100644 --- a/product_add_modal.php +++ b/product_add_modal.php @@ -42,7 +42,7 @@ ?>
- +
diff --git a/product_edit_modal.php b/product_edit_modal.php index e1df979a..aaf2beeb 100644 --- a/product_edit_modal.php +++ b/product_edit_modal.php @@ -42,7 +42,7 @@ ?>
- +
diff --git a/products.php b/products.php index 5ac07d1a..cd1214da 100644 --- a/products.php +++ b/products.php @@ -123,7 +123,4 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); require_once "product_add_modal.php"; -require_once "category_quick_add_modal.php"; - require_once "footer.php"; - diff --git a/quote_add_modal.php b/quote_add_modal.php index 08e232b6..fed4f2fc 100644 --- a/quote_add_modal.php +++ b/quote_add_modal.php @@ -71,7 +71,7 @@
- +
diff --git a/quote_edit_modal.php b/quote_edit_modal.php index 3b58eb94..90563cf4 100644 --- a/quote_edit_modal.php +++ b/quote_edit_modal.php @@ -42,7 +42,7 @@
- +
diff --git a/quotes.php b/quotes.php index 4d708fa7..fc8f10dc 100644 --- a/quotes.php +++ b/quotes.php @@ -207,7 +207,5 @@ require_once "quote_add_modal.php"; require_once "quote_edit_modal.php"; -require_once "category_quick_add_modal.php"; - require_once "footer.php"; diff --git a/recurring_expense_create_modal.php b/recurring_expense_create_modal.php index ba1f110c..811bff14 100644 --- a/recurring_expense_create_modal.php +++ b/recurring_expense_create_modal.php @@ -137,7 +137,7 @@ ?>
- +
@@ -182,7 +182,7 @@ ?>
- +
diff --git a/recurring_expense_edit_modal.php b/recurring_expense_edit_modal.php index 9318825f..9ab5cb2f 100644 --- a/recurring_expense_edit_modal.php +++ b/recurring_expense_edit_modal.php @@ -141,7 +141,7 @@ ?>
- +
@@ -186,7 +186,7 @@ ?>
- +
diff --git a/recurring_invoice_add_modal.php b/recurring_invoice_add_modal.php index 324d8dd1..c3df89ca 100644 --- a/recurring_invoice_add_modal.php +++ b/recurring_invoice_add_modal.php @@ -98,7 +98,7 @@ ?>
- +
diff --git a/recurring_invoice_edit_modal.php b/recurring_invoice_edit_modal.php index 6e46562d..0dfef318 100644 --- a/recurring_invoice_edit_modal.php +++ b/recurring_invoice_edit_modal.php @@ -75,7 +75,7 @@ ?>
- +
diff --git a/recurring_invoices.php b/recurring_invoices.php index 7e70acc3..7d5097be 100644 --- a/recurring_invoices.php +++ b/recurring_invoices.php @@ -183,9 +183,4 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); require_once "recurring_invoice_add_modal.php"; -require_once "category_quick_add_modal.php"; - require_once "footer.php"; - - -?> diff --git a/revenue_add_modal.php b/revenue_add_modal.php index 6aa58242..05fb8d7d 100644 --- a/revenue_add_modal.php +++ b/revenue_add_modal.php @@ -114,7 +114,7 @@ ?>
- +
diff --git a/revenue_edit_modal.php b/revenue_edit_modal.php index 4a372c89..69f0a7cd 100644 --- a/revenue_edit_modal.php +++ b/revenue_edit_modal.php @@ -120,7 +120,7 @@ ?>
- +
diff --git a/revenues.php b/revenues.php index 6ff78a1c..738fb8ea 100644 --- a/revenues.php +++ b/revenues.php @@ -161,10 +161,4 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); require_once "revenue_add_modal.php"; -require_once "category_quick_add_modal.php"; - - require_once "footer.php"; - - -?>