Przeglądaj źródła

Change filter form methods to GET

Alan Lam 3 lat temu
rodzic
commit
f76d3ec93a
5 zmienionych plików z 5 dodań i 5 usunięć
  1. 1 1
      views/customers.php
  2. 1 1
      views/documents.php
  3. 1 1
      views/locations.php
  4. 1 1
      views/sales.php
  5. 1 1
      views/tickets.php

+ 1 - 1
views/customers.php

@@ -27,7 +27,7 @@ namespace App;
 		<?=htmlspecialchars(__("Filters"))?>
 	</div>
 	<div class="card-body">
-		<form action="/customers" method="post">
+		<form action="/customers" method="get">
 			<div class="row">
 				<div class="col-sm-4">
 					<?php

+ 1 - 1
views/documents.php

@@ -66,7 +66,7 @@ if($is_aru) {
 		<?=htmlspecialchars(__("Filters"))?>
 	</div>
 	<div class="card-body">
-		<form action="/<?=$type_string?>" method="post">
+		<form action="/<?=$type_string?>" method="get">
 			<div class="row">
 				<?php
 				if($is_goods_in) {

+ 1 - 1
views/locations.php

@@ -22,7 +22,7 @@ use App\Helpers\HtmlHelper;
 		<?=htmlspecialchars(__("Filters"))?>
 	</div>
 	<div class="card-body">
-		<form action="/locations" method="post">
+		<form action="/locations" method="get">
 			<div class="row">
 				<div class="col-sm-4">
 					<div class="mb-3">

+ 1 - 1
views/sales.php

@@ -37,7 +37,7 @@ $custom_filter_options = [
 		<?=htmlspecialchars(__("Filters"))?>
 	</div>
 	<div class="card-body">
-		<form action="/leads" method="post">
+		<form action="/leads" method="get">
 			<div class="row">
 				<div class="col-sm-4">
 					<?php

+ 1 - 1
views/tickets.php

@@ -44,7 +44,7 @@ $custom_filter_options = [
 		<?=htmlspecialchars(__("Filters"))?>
 	</div>
 	<div class="card-body">
-		<form action="/tickets" method="post">
+		<form action="/tickets" method="get">
 			<div class="row">
 				<div class="col-sm-4">
 					<?php