Added Products
This commit is contained in:
@@ -133,6 +133,7 @@
|
||||
<table class="table table-bordered">
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Netzeigentümer</th>
|
||||
<?php foreach(TT_NETWORK_ROLES as $role): ?>
|
||||
<th class="text-center"><?=__($role)?></th>
|
||||
<?php endforeach ?>
|
||||
@@ -141,10 +142,11 @@
|
||||
<?php foreach($network->addresstypes as $address_id => $addresstypes): ?>
|
||||
<tr>
|
||||
<td><?=AddressModel::getOne($address_id)->getCompanyOrName()?></td>
|
||||
<td><input type="checkbox" <?=($network->owner_id == $address_id) ? "checked='checked'" : ""?> disabled="disabled" /></td>
|
||||
<?php foreach(TT_NETWORK_ROLES as $role): ?>
|
||||
<td class="text-center">
|
||||
<?php if(AddresstypeModel::getFirst(['address_id' => $address_id, 'addresstype' => [$role]]) !== null): ?>
|
||||
<input
|
||||
<input type="checkbox"
|
||||
type="checkbox"
|
||||
name="roles[<?=$address_id?>][]"
|
||||
value="<?=$role?>"
|
||||
@@ -158,7 +160,7 @@
|
||||
</td>
|
||||
<?php endforeach; ?>
|
||||
<td class="controls" style="text-align: left; letter-spacing: 4px; font-size: 1.1em;">
|
||||
<a href="<?=self::getUrl("NetworkAddress", "delete", ["id" => $address_id])?>" class="text-danger" title="Löschen"><i class="fas fa-trash"></i></a>
|
||||
<a href="<?=self::getUrl("NetworkAddress", "delete", ["network_id" => $network->id, "address_id" => $address_id])?>" onclick="if(!confirm('Berechtigungen wirklich löschen?')) return false;" class="text-danger" title="Löschen"><i class="fas fa-trash"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
@@ -184,7 +186,7 @@
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<select class="select2 form-control " name="address_id" id="address_id">
|
||||
<select class="select2 form-control" name="address_id" id="address_id">
|
||||
<option></option>
|
||||
<?php foreach(AddressModel::search(["parents_only" => 1]) as $address): ?>
|
||||
<?php if(is_array($network->addresstypes) && array_key_exists($address->id, $network->addresstypes)) continue; ?>
|
||||
|
||||
Reference in New Issue
Block a user