Added Preorderbilling permissions
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
<li class="breadcrumb-item active">Bepreisung</li>
|
||||
</ol>
|
||||
</div>
|
||||
<h4 class="page-title">Preise</h4>
|
||||
<h4 class="page-title">Kampagnenmanagement Preise</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -26,7 +26,7 @@
|
||||
<div class="card-body mb-3 bg-light">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<h4 class="header-title">Preise</h4>
|
||||
<h4 class="header-title">Kampagnenmanagement Preise</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -49,24 +49,36 @@
|
||||
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<?php foreach($netoperators as $netoperator): // TODO: Netoperators als Tabs anzeigen ?>
|
||||
<?php //foreach([new Address(5668), new Address(4803)] as $netoperator): // TODO: Netoperators als Tabs anzeigen ?>
|
||||
<h4><?=$netoperator->getCompanyOrName()?> (<?=$netoperator->id?>)</h4>
|
||||
<div class="card">
|
||||
<div class="card-body mb-3">
|
||||
|
||||
<h4>Produkte</h4>
|
||||
<ul class="nav nav-tabs mb-0" id="netop-tabs" role="tablist">
|
||||
<?php $i = 0; foreach($netoperators as $netoperator): ?>
|
||||
<li class="nav-item" role="presentation">
|
||||
<!--a class="nav-link active" id="netop-<?=$netoperator->id?>-tab" data-toggle="tab" data-target="#netop-<?=$netoperator->id?>"><?=$netoperator->getCompanyOrName()?> (<?=$netoperator->id?>)</a-->
|
||||
<a href="#netop-<?=$netoperator->id?>" class="nav-link <?=($i === 0) ? "active" : ""?>" id="netop-<?=$netoperator->id?>-tab" data-toggle="pill" data-target="#netop-<?=$netoperator->id?>" type="button" role="tab" aria-controls="netop-<?=$netoperator->id?>" aria-selected="<?=($i === 0) ? "true" : "false"?>">
|
||||
<?=$netoperator->getCompanyOrName()?>
|
||||
</a>
|
||||
</li>
|
||||
<?php $i++; endforeach; ?>
|
||||
</ul>
|
||||
|
||||
<div class="tab-content mt-0 pt-0" id="netop-tabs-content">
|
||||
<?php $i = 0; foreach($netoperators as $netoperator): ?>
|
||||
<div class="tab-pane fade <?=($i === 0) ? "show active" : ""?>" id="netop-<?=$netoperator->id?>" role="tabpanel">
|
||||
<div class="card">
|
||||
<div class="card-body mb-3">
|
||||
|
||||
<h4>Produkte für Netzbetreiber <?=$netoperator->getCompanyOrName()?></h4>
|
||||
<?php foreach($products as $product): ?>
|
||||
<?php $product->setNetoperatorId($netoperator->id) ?>
|
||||
<?php $product->setTodayDate($today_date); ?>
|
||||
<?php //$prices = (array_key_exists($netoperator->id, $product->prices)) ? $product->prices[$netoperator->id] : false; ?>
|
||||
<div class="card">
|
||||
<div class="card mt-4">
|
||||
<div class="card-header" >
|
||||
<h4 class="pointer"
|
||||
data-toggle="collapse" data-target="#price-detail-<?=$netoperator->id?>-<?=$product->id?>"
|
||||
id="price-detail-<?=$netoperator->id?>-<?=$product->id?>-collapse" data-collapse-indicator="fa-chevron" onclick="toggleCollapseIndicator(this)"
|
||||
>
|
||||
<i class="fas fa-fw fa-chevron-right collapse-indicator"></i> Preiseinstellungen für <span class="text-pink"><?=$product->name?></span>
|
||||
<i class="fas fa-fw fa-chevron-right collapse-indicator"></i> <span class="text-pink"><?=$product->name?></span>
|
||||
</h4>
|
||||
</div>
|
||||
<div class="card-body mb-3 collapse" id="price-detail-<?=$netoperator->id?>-<?=$product->id?>">
|
||||
@@ -79,17 +91,13 @@
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php endforeach; ?>
|
||||
|
||||
|
||||
|
||||
|
||||
<?php $i++; endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php endforeach; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -162,5 +170,23 @@
|
||||
}
|
||||
|
||||
|
||||
$(document).ready(() => {
|
||||
|
||||
var hash = window.location.hash.substring(1);
|
||||
var match = hash.match(/product-(\d+)(?:-(\d)+)?/);
|
||||
console.log(match);
|
||||
if(match && typeof match[1] !== 'undefined') {
|
||||
var netop = match[1];
|
||||
|
||||
console.log('$("#netop-' + netop + '-tab").tab("show");');
|
||||
$("#netop-" + netop + "-tab").tab('show');
|
||||
if(typeof match[2] !== 'undefined') {
|
||||
let prod_id = match[2];
|
||||
$("#price-detail-" + netop + "-" + prod_id).collapse('toggle');
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
</script>
|
||||
<?php include(realpath(dirname(__FILE__)."/../../$mfLayoutPackage")."/footer.php"); ?>
|
||||
Reference in New Issue
Block a user