Răsfoiți Sursa

Move contact fields to LHS

Alan Lam 2 ani în urmă
părinte
comite
c384cc7cc1
1 a modificat fișierele cu 28 adăugiri și 19 ștergeri
  1. 28 19
      views/document.php

+ 28 - 19
views/document.php

@@ -135,6 +135,33 @@ $related_document = $document->getRelatedDocument();
 					</div>
 				</div>
 
+				<div class="row">
+					<div class="col-sm-6">
+						<div class="mb-3">
+							<label for="contact-name" class="form-label">
+								<?=htmlspecialchars(__("Contact Name"))?>
+							</label>
+							<input type="text" class="form-control" name="contact_name" id="contact-name" placeholder="<?=htmlspecialchars(__("Type contact name"))?>" value="<?=htmlspecialchars($document->contact_name)?>" />
+						</div>
+					</div>
+					<div class="col-sm-6">
+						<div class="mb-3">
+							<label for="contact-phone" class="form-label">
+								<?=htmlspecialchars(__("Contact Phone / Mobile"))?>
+							</label>
+							<input type="tel" class="form-control" name="contact_phone" id="contact-phone" placeholder="<?=htmlspecialchars(__("Type contact phone or mobile number"))?>" value="<?=htmlspecialchars($document->contact_phone)?>" />
+						</div>
+					</div>
+					<div class="col-sm-6">
+						<div class="mb-3">
+							<label for="contact-email" class="form-label">
+								<?=htmlspecialchars(__("Contact Email Address"))?>
+							</label>
+							<input type="text" class="form-control" name="contact_email" id="contact-email" placeholder="<?=htmlspecialchars(__("Type contact email address"))?>" value="<?=htmlspecialchars($document->contact_email)?>" />
+						</div>
+					</div>
+				</div>
+
 				<?php
 				if($document->hasCosts()) {
 					?>
@@ -252,6 +279,7 @@ $related_document = $document->getRelatedDocument();
 				}
 				?>
 
+
 			</div>
 			<div class="col-xl-4">
 
@@ -325,25 +353,6 @@ $related_document = $document->getRelatedDocument();
 							}
 							?>
 
-							<div class="mb-3">
-								<label for="contact-name" class="form-label">
-									<?=htmlspecialchars(__("Contact Name"))?>
-								</label>
-								<input type="text" class="form-control" name="contact_name" id="contact-name" placeholder="<?=htmlspecialchars(__("Type contact name"))?>" value="<?=htmlspecialchars($document->contact_name)?>" />
-							</div>
-							<div class="mb-3">
-								<label for="contact-phone" class="form-label">
-									<?=htmlspecialchars(__("Contact Phone / Mobile"))?>
-								</label>
-								<input type="tel" class="form-control" name="contact_phone" id="contact-phone" placeholder="<?=htmlspecialchars(__("Type contact phone or mobile number"))?>" value="<?=htmlspecialchars($document->contact_phone)?>" />
-							</div>
-							<div class="mb-3">
-								<label for="contact-email" class="form-label">
-									<?=htmlspecialchars(__("Contact Email Address"))?>
-								</label>
-								<input type="text" class="form-control" name="contact_email" id="contact-email" placeholder="<?=htmlspecialchars(__("Type contact email address"))?>" value="<?=htmlspecialchars($document->contact_email)?>" />
-							</div>
-
 							<dl>
 								<dt><?=htmlspecialchars(__("Created By"))?></dt>
 								<dd><?=htmlspecialchars($document->getUser()->getDisplayName())?></dd>