Test zu Fake geändert, weil Namensproblem
Dieser Commit ist enthalten in:
@@ -17,14 +17,14 @@
|
||||
<i class="bi bi-download"></i> Export
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a class="dropdown-item" href="{{ url_for('export.export_customers', format='excel', include_test=request.args.get('show_test')) }}">
|
||||
<li><a class="dropdown-item" href="{{ url_for('export.export_customers', format='excel', include_test=request.args.get('show_fake')) }}">
|
||||
<i class="bi bi-file-earmark-excel text-success"></i> Kunden (Excel)</a></li>
|
||||
<li><a class="dropdown-item" href="{{ url_for('export.export_customers', format='csv', include_test=request.args.get('show_test')) }}">
|
||||
<li><a class="dropdown-item" href="{{ url_for('export.export_customers', format='csv', include_test=request.args.get('show_fake')) }}">
|
||||
<i class="bi bi-file-earmark-text"></i> Kunden (CSV)</a></li>
|
||||
<li><hr class="dropdown-divider"></li>
|
||||
<li><a class="dropdown-item" href="{{ url_for('export.export_licenses', format='excel', include_test=request.args.get('show_test')) }}">
|
||||
<li><a class="dropdown-item" href="{{ url_for('export.export_licenses', format='excel', include_test=request.args.get('show_fake')) }}">
|
||||
<i class="bi bi-file-earmark-excel text-success"></i> Lizenzen (Excel)</a></li>
|
||||
<li><a class="dropdown-item" href="{{ url_for('export.export_licenses', format='csv', include_test=request.args.get('show_test')) }}">
|
||||
<li><a class="dropdown-item" href="{{ url_for('export.export_licenses', format='csv', include_test=request.args.get('show_fake')) }}">
|
||||
<i class="bi bi-file-earmark-text"></i> Lizenzen (CSV)</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -47,11 +47,11 @@
|
||||
<input type="text" class="form-control mb-2" id="customerSearch"
|
||||
placeholder="Kunde suchen..." autocomplete="off">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" id="showTestCustomers"
|
||||
{% if request.args.get('show_test', 'false').lower() == 'true' %}checked{% endif %}
|
||||
onchange="toggleTestCustomers()">
|
||||
<label class="form-check-label" for="showTestCustomers">
|
||||
<small class="text-muted">Testkunden anzeigen</small>
|
||||
<input class="form-check-input" type="checkbox" id="showFakeCustomers"
|
||||
{% if request.args.get('show_fake', 'false').lower() == 'true' %}checked{% endif %}
|
||||
onchange="toggleFakeCustomers()">
|
||||
<label class="form-check-label" for="showFakeCustomers">
|
||||
<small class="text-muted">Fake-Kunden anzeigen</small>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
@@ -289,7 +289,7 @@ function loadCustomerLicenses(customerId) {
|
||||
});
|
||||
document.querySelector(`[data-customer-id="${customerId}"]`).classList.add('active');
|
||||
|
||||
// URL aktualisieren ohne Reload (behalte show_test Parameter)
|
||||
// URL aktualisieren ohne Reload (behalte show_fake Parameter)
|
||||
const currentUrl = new URL(window.location);
|
||||
currentUrl.searchParams.set('customer_id', customerId);
|
||||
window.history.pushState({}, '', currentUrl.toString());
|
||||
@@ -522,10 +522,10 @@ function copyToClipboard(text) {
|
||||
}
|
||||
|
||||
// Toggle Testkunden
|
||||
function toggleTestCustomers() {
|
||||
const showTest = document.getElementById('showTestCustomers').checked;
|
||||
function toggleFakeCustomers() {
|
||||
const showTest = document.getElementById('showFakeCustomers').checked;
|
||||
const currentUrl = new URL(window.location);
|
||||
currentUrl.searchParams.set('show_test', showTest);
|
||||
currentUrl.searchParams.set('show_fake', showTest);
|
||||
window.location.href = currentUrl.toString();
|
||||
}
|
||||
|
||||
@@ -854,12 +854,12 @@ function quarantineResource(resourceId, resourceValue) {
|
||||
|
||||
// Lade verfügbare Ressourcen
|
||||
function loadAvailableResources(licenseId) {
|
||||
// Hole show_test Parameter aus der URL
|
||||
// Hole show_fake Parameter aus der URL
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
const showTest = urlParams.get('show_test') === 'true';
|
||||
const showTest = urlParams.get('show_fake') === 'true';
|
||||
|
||||
// Lade verfügbare Domains
|
||||
fetch(`/api/resources/check-availability?type=domain&count=200&show_test=${showTest}`)
|
||||
fetch(`/api/resources/check-availability?type=domain&count=200&show_fake=${showTest}`)
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
const select = document.getElementById('availableDomains');
|
||||
@@ -880,7 +880,7 @@ function loadAvailableResources(licenseId) {
|
||||
});
|
||||
|
||||
// Lade verfügbare IPv4s
|
||||
fetch(`/api/resources/check-availability?type=ipv4&count=200&show_test=${showTest}`)
|
||||
fetch(`/api/resources/check-availability?type=ipv4&count=200&show_fake=${showTest}`)
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
const select = document.getElementById('availableIpv4s');
|
||||
@@ -901,7 +901,7 @@ function loadAvailableResources(licenseId) {
|
||||
});
|
||||
|
||||
// Lade verfügbare Telefonnummern
|
||||
fetch(`/api/resources/check-availability?type=phone&count=200&show_test=${showTest}`)
|
||||
fetch(`/api/resources/check-availability?type=phone&count=200&show_fake=${showTest}`)
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
const select = document.getElementById('availablePhones');
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren