Added ProductNetwork
This commit is contained in:
@@ -78,7 +78,6 @@
|
||||
<div class="col-lg-2">Neue Produktgruppe:</div>
|
||||
<div class="col-lg-10">
|
||||
Name: <input type="text" class="form-control" name="productgroup_new_name" id="productgroup_new_name" value="<?=$productgroup_new_name?>">
|
||||
Code: <input type="text" class="form-control" name="productgroup_new_code" id="productgroup_new_code" value="<?=$productgroup_new_code?>">
|
||||
Beschreibung: <textarea class="form-control" name="productgroup_new_description" id="productgroup_new_description"><?=$productgroup_new_description?></textarea>
|
||||
Interne Notiz: <textarea class="form-control" name="productgroup_new_note" id="productgroup_new_note"><?=$productgroup_new_note?></textarea>
|
||||
</div>
|
||||
@@ -127,6 +126,20 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label" for="networks">Netzgebiete</label>
|
||||
<div class="col-lg-10">
|
||||
<select class="select2 form-control select2-multiple" name="networks[]" id="networks" multiple="multiple" data-placeholder="Choose ...">
|
||||
<option></option>
|
||||
<?php foreach($networks as $network): ?>
|
||||
<option value="<?=$network->id?>" <?=(array_key_exists($network->id, $product->networks)) ? "selected='selected'" : ""?>><?=$network->name?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label" for="price">Verkaufspreis Netto</label>
|
||||
<div class="col-lg-10">
|
||||
@@ -219,7 +232,10 @@
|
||||
allowClear: true,
|
||||
placeholder: ""
|
||||
});
|
||||
|
||||
$("#networks").select2({
|
||||
allowClear: true,
|
||||
placeholder: ""
|
||||
});
|
||||
|
||||
$('#productgroup_id').change(function() {
|
||||
var value = $('#productgroup_id option:selected').val();
|
||||
|
||||
@@ -49,11 +49,11 @@
|
||||
<td><?=($product->external == 1) ? "<i class='fas fa-check text-success'></i>" : ""?></td>
|
||||
<td><?=$product->productgroup->name?></td>
|
||||
<td><?=$product->name?></td>
|
||||
<td><?=$product->producttech->name?></td>
|
||||
<td><?=$product->producttech->name?> (<?=$product->producttech->rtrcode?>)</td>
|
||||
<td><?=__($product->producttech->customer_type)?></td>
|
||||
<td><?=$product->price?></td>
|
||||
<td><?=$product->billing_period?>x Jährlich</td>
|
||||
<td><?=$product->sla->name?></td>
|
||||
<td><?=$product->sla->id?></td>
|
||||
<td><?=$product->ivt_id?></td>
|
||||
<td style="text-align: left; letter-spacing: 4px; font-size: 1.1em;">
|
||||
<a href="<?=self::getUrl("Product", "edit", ["id" => $product->id])?>"><i class="far fa-edit" title="Produkt Bearbeiten"></i></a>
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="<?=self::getUrl("User")?>">Benutzer</a></li>
|
||||
<li><a href="<?=self::getUrl("Network")?>">Neztgebiete</a></li>
|
||||
<li><a href="<?=self::getUrl("Network")?>">Netzgebiete</a></li>
|
||||
<li><a href="<?=self::getUrl("Product")?>">Produkte</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user