Made different Layouts more customizable
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
<div class="page-title-box">
|
||||
<div class="page-title-right">
|
||||
<ol class="breadcrumb m-0">
|
||||
<li class="breadcrumb-item"><a href="<?=self::getUrl("Dashboard")?>">the-tool</a></li>
|
||||
<li class="breadcrumb-item"><a href="<?=self::getUrl("Dashboard")?>"><?=MFAPPNAME_SLUG?></a></li>
|
||||
<li class="breadcrumb-item"><a href="<?=self::getUrl("Order")?>">Bestellungen</a></li>
|
||||
<li class="breadcrumb-item active"><?=($order->id) ? "bearbeiten" : "Neu" ?></li>
|
||||
</ol>
|
||||
@@ -701,6 +701,7 @@
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
|
||||
<?php if(TT_FEATURE_IVT): ?>
|
||||
<?php if($me->is("Admin", "netoperator")): ?>
|
||||
<?php if($order->id && !$includes_external_product): ?>
|
||||
<div class="form-group row">
|
||||
@@ -711,6 +712,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2"></label>
|
||||
<div class="col-lg-10">
|
||||
@@ -767,7 +769,7 @@
|
||||
|
||||
// kunde
|
||||
<?php if($order->owner_id && is_object(($order->owner))): ?>
|
||||
$('#owner_id').autoComplete('set', { value: <?=$order->owner_id?>, text: '<?=($order->owner_id) ? str_replace(["\n", "\r"], " ", $order->owner->getCompanyOrName())." (".$order->owner->zip." ".$order->owner->city.", ".$order->owner->street.")".(($order->owner->customer_number) ? " [".$order->owner->customer_number."]" : "") : ""?>'});
|
||||
$('#owner_id').autoComplete('set', { value: <?=$order->owner_id?>, text: '<?=($order->owner_id) ? str_replace("'", "\\'", str_replace(["\n", "\r"], " ", $order->owner->getCompanyOrName()))." (".$order->owner->zip." ".$order->owner->city.", ".$order->owner->street.")".(($order->owner->customer_number) ? " [".$order->owner->customer_number."]" : "") : ""?>'});
|
||||
<?php else: ?>
|
||||
$('#owner_id').autoComplete();
|
||||
<?php endif; ?>
|
||||
@@ -797,7 +799,7 @@
|
||||
|
||||
// rechnungsadresse
|
||||
<?php if($order->billingaddress_id && is_object($order->billingaddress)): ?>
|
||||
$('#billingaddress_id').autoComplete('set', { value: <?=$order->billingaddress_id?>, text: '<?=($order->billingaddress_id) ? $order->billingaddress->getCompanyOrName()." (".$order->billingaddress->zip." ".$order->billingaddress->city.", ".$order->billingaddress->street.")" : ""?>'});
|
||||
$('#billingaddress_id').autoComplete('set', { value: <?=$order->billingaddress_id?>, text: '<?=($order->billingaddress_id) ? str_replace("'", "\\'", str_replace(["\n", "\r"], " ", $order->billingaddress->getCompanyOrName()))." (".$order->billingaddress->zip." ".$order->billingaddress->city.", ".$order->billingaddress->street.")" : ""?>'});
|
||||
<?php else: ?>
|
||||
$('#billingaddress_id').autoComplete();
|
||||
<?php endif; ?>
|
||||
@@ -1215,4 +1217,4 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<?php include(realpath(dirname(__FILE__)."/../")."/footer.php"); ?>
|
||||
<?php include(realpath(dirname(__FILE__)."/../../$mfLayoutPackage")."/footer.php"); ?>
|
||||
|
||||
Reference in New Issue
Block a user