Răsfoiți Sursa

Adjust margins

Alan Lam 3 ani în urmă
părinte
comite
daa28e2280

+ 1 - 1
views/components/alerts.php

@@ -27,7 +27,7 @@ foreach($alerts as $alert) {
 			break;
 	}
 	?>
-	<div class="alert <?=$class?> alert-dismissible fade show mb-2">
+	<div class="alert <?=$class?> alert-dismissible fade show mb-3">
 		<i class="fa fa-fw <?=$icon?>"></i>
 		<?=htmlspecialchars($alert["message"])?>
 		<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>

+ 1 - 1
views/document_items_section.php

@@ -45,7 +45,7 @@ if($document->isAru()) {
 		?>
 		<form action="<?=htmlspecialchars($document->getUrl())?>/items-batch-action" method="post">
 
-			<table class="table table-bordered table-hover mb-2">
+			<table class="table table-bordered table-hover mb-3">
 				<colgroup>
 					<col style="width: 1%"/>
 					<col style="width: 35%"/>

+ 1 - 1
views/modals/sale_note.php

@@ -10,7 +10,7 @@ namespace App;
 			<input type="hidden" name="sale_note_id" value="" />
 
 			<div class="modal-body">
-				<div class="mb-2">
+				<div class="mb-3">
 					<label for="sale-note-content" class="form-label"><?=htmlspecialchars(__("Content"))?></label>
 					<textarea class="form-control" name="content" id="sale-note-content" rows="4" placeholder="<?=htmlspecialchars(__("Type content"))?>" required></textarea>
 				</div>

+ 1 - 1
views/product.php

@@ -9,7 +9,7 @@ namespace App;
 $supplier = $product->getSupplier();
 
 ?>
-<div class="row mb-2">
+<div class="row mb-3">
 	<div class="col">
 		<h3>
 			<?=htmlspecialchars($product->name)?>

+ 6 - 6
views/product_form.php

@@ -1,4 +1,4 @@
-<?php
+<?php /** @noinspection PhpUnhandledExceptionInspection */
 
 namespace App;
 
@@ -29,7 +29,7 @@ else {
 	?>
 
 	<div class="mb-3">
-		<label for="supplier-id"><?=htmlspecialchars(__("Supplier"))?></label>
+		<label class="form-label" for="supplier-id"><?=htmlspecialchars(__("Supplier"))?></label>
 		<select class="form-select" name="supplier_id" id="supplier-id" required>
 			<option value=""><?=htmlspecialchars(__("Select Supplier"))?></option>
 			<?php
@@ -45,19 +45,19 @@ else {
 	</div>
 
 	<div class="mb-3">
-		<label for="name"><?=htmlspecialchars(__("Name"))?></label>
+		<label class="form-label" for="name"><?=htmlspecialchars(__("Name"))?></label>
 		<input class="form-control" type="text" id="name" name="name" placeholder="<?=htmlspecialchars(__("Type name"))?>" value="<?=htmlspecialchars($product->name)?>" maxlength="255" required />
 	</div>
 
 	<div class="mb-3">
-		<label for="sku"><?=htmlspecialchars(__("SKU"))?></label>
+		<label class="form-label" for="sku"><?=htmlspecialchars(__("SKU"))?></label>
 		<input class="form-control" type="text" id="sku" name="sku" placeholder="<?=htmlspecialchars(__("Type SKU"))?>" value="<?=htmlspecialchars($product->sku)?>" maxlength="255" required />
 	</div>
 
 	<div class="row">
 		<div class="col-6">
 			<div class="mb-3">
-				<label for="type"><?=htmlspecialchars(__("Type"))?></label>
+				<label class="form-label" for="type"><?=htmlspecialchars(__("Type"))?></label>
 				<select class="form-select" name="type" id="type" required>
 					<?php
 					foreach(Product::getTypeOptions() as $value => $display) {
@@ -73,7 +73,7 @@ else {
 		</div>
 		<div class="col-6">
 			<div class="mb-3">
-				<label for="price"><?=htmlspecialchars(__("Price"))?></label>
+				<label class="form-label" for="price"><?=htmlspecialchars(__("Price"))?></label>
 				<input class="form-control" type="number" id="price" name="price" placeholder="<?=htmlspecialchars(__("Type price"))?>" value="<?=htmlspecialchars($product->price)?>" min="0" max="999999.99" step="any" required />
 			</div>
 		</div>

+ 1 - 1
views/sale_items_section.php

@@ -33,7 +33,7 @@ use NumberFormatter;
 		$currency = $sale->getCurrency();
 		?>
 		<form action="<?=$sale->getUrl()?>/items-batch-action" method="post">
-			<table id="sale-items-table" class="table table-bordered table-hover mb-2">
+			<table id="sale-items-table" class="table table-bordered table-hover mb-3">
 				<colgroup>
 					<col style="width: 1%"/>
 					<col style="width: 40%"/>

+ 1 - 1
views/supplier.php

@@ -12,7 +12,7 @@ $products = $supplier->getProducts();
 
 <h3><?=htmlspecialchars($supplier->name)?></h3>
 
-<div class="row mb-2">
+<div class="row mb-3">
 	<div class="col">
 		<h4><?=htmlspecialchars(__("Products"))?></h4>
 	</div>

+ 8 - 8
views/ticket.php

@@ -106,7 +106,7 @@ $render_data_row = static function(string $title, string $html): void {
 		<form method="post">
 			<div class="row g-3">
 				<div class="col-md-6 col-lg">
-					<div class="mb-2">
+					<div class="mb-3">
 						<label class="form-label" for="assignee"><?=htmlspecialchars(__("Assignee"))?></label>
 						<select class="form-control" name="assignee" id="assignee">
 							<option value=""><?=htmlspecialchars(__("Unassigned"))?></option>
@@ -117,7 +117,7 @@ $render_data_row = static function(string $title, string $html): void {
 					</div>
 				</div>
 				<div class="col-md-6 col-lg">
-					<div class="mb-2">
+					<div class="mb-3">
 						<label class="form-label" for="priority"><?=htmlspecialchars(__("Priority"))?></label>
 						<select class="form-control" name="priority" id="priority">
 							<?php
@@ -127,13 +127,13 @@ $render_data_row = static function(string $title, string $html): void {
 					</div>
 				</div>
 				<div class="col-md-6 col-lg">
-					<div class="mb-2">
+					<div class="mb-3">
 						<label class="form-label" for="sale-number"><?=htmlspecialchars(__("Lead No."))?></label>
 						<input class="form-control" type="number" name="sale_number" id="sale-number" value="<?=$sale ? $sale->getNumber() : ""?>" placeholder="<?=htmlspecialchars(__("Type number"))?>" />
 					</div>
 				</div>
 				<div class="col-md-6 col-lg">
-					<div class="mb-2">
+					<div class="mb-3">
 						<label class="form-label" for="aru-document-number"><?=htmlspecialchars(__("ARU No."))?></label>
 						<input class="form-control" type="number" name="aru_document_number" id="aru-document-number" value="<?= $aru->number ?? "" ?>" placeholder="<?=htmlspecialchars(__("Type number"))?>" />
 					</div>
@@ -173,12 +173,12 @@ $render_data_row = static function(string $title, string $html): void {
 		<form method="post" enctype="multipart/form-data">
 			<div class="row">
 				<div class="col-lg">
-					<div class="mb-2">
+					<div class="mb-3">
 						<label class="form-label" for="content"><?=htmlspecialchars(__("Comment"))?></label>
 						<textarea class="form-control" name="content" id="content" rows="4" placeholder="<?=htmlspecialchars(__("Type comment"))?>" required></textarea>
 					</div>
 
-					<div class="mb-2">
+					<div class="mb-3">
 						<div class="form-check form-switch">
 							<input class="form-check-input" name="internal" id="internal" type="checkbox" value="1" />
 							<label class="form-check-label" for="internal">
@@ -188,7 +188,7 @@ $render_data_row = static function(string $title, string $html): void {
 					</div>
 				</div>
 				<div class="col-lg">
-					<div class="mb-2">
+					<div class="mb-3">
 						<label class="form-label" for="status"><?=htmlspecialchars(__("Status"))?></label>
 						<select name="status" id="status" class="form-control">
 							<option value=""><?=htmlspecialchars(__("Select Status"))?></option>
@@ -198,7 +198,7 @@ $render_data_row = static function(string $title, string $html): void {
 						</select>
 					</div>
 
-					<div class="mb-2">
+					<div class="mb-3">
 						<label class="form-label" for="attachments"><?=htmlspecialchars(__("Attachments"))?></label>
 						<input class="form-control" type="file" id="attachments" name="attachments[]" multiple />
 					</div>

+ 2 - 2
views/tickets.php

@@ -128,7 +128,7 @@ else {
 				<h5><?=htmlspecialchars(__("Batch Actions"))?></h5>
 				<div class="row">
 					<div class="col-lg">
-						<div class="mb-2">
+						<div class="mb-3">
 							<label class="form-label" for="assign-to"><?=htmlspecialchars(__("Assign To"))?></label>
 							<select class="form-control" name="assign_to" id="assign-to">
 								<option value=""><?=htmlspecialchars(__("Select User"))?></option>
@@ -139,7 +139,7 @@ else {
 						</div>
 					</div>
 					<div class="col-lg">
-						<div class="mb-2">
+						<div class="mb-3">
 							<label class="form-label" for="status"><?=htmlspecialchars(__("Status"))?></label>
 							<select class="form-control" name="status" id="status">
 								<option value=""><?=htmlspecialchars(__("Select Status"))?></option>