Projektsuche Implementiert mit anbindung an INFRA
This commit is contained in:
@@ -392,6 +392,55 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mssql-config-section" style="margin-top: 40px;">
|
||||
<div class="collapsible-header" onclick="toggleMssqlSection()" style="cursor: pointer; padding: 15px; background-color: #f5f5f5; border: 1px solid #ddd; border-radius: 4px; display: flex; justify-content: space-between; align-items: center;">
|
||||
<h2 style="margin: 0;">MSSQL-Projektsuche Konfiguration</h2>
|
||||
<span id="mssqlToggleIcon" style="font-size: 18px; transition: transform 0.3s;">▼</span>
|
||||
</div>
|
||||
|
||||
<div id="mssqlContent" style="display: none; padding: 20px; border: 1px solid #ddd; border-top: none; border-radius: 0 0 4px 4px; background-color: #fff;">
|
||||
<div class="mssql-config-form">
|
||||
<h3>MSSQL-Verbindungsdaten</h3>
|
||||
<p style="margin-bottom: 20px; color: #666;">
|
||||
Konfigurieren Sie hier die Verbindung zur MSSQL-Datenbank, aus der die Projektnummern ermittelt werden
|
||||
(z.B. Tabelle <code>infra.dbo.KKOPF</code> und <code>KUNDE</code>).
|
||||
</p>
|
||||
<form id="mssqlConfigForm">
|
||||
<div class="form-group">
|
||||
<label for="mssqlServer">Server</label>
|
||||
<input type="text" id="mssqlServer" name="server" placeholder="z.B. SERVER\\INSTANZ oder server.domain.local">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="mssqlDatabase">Datenbankname</label>
|
||||
<input type="text" id="mssqlDatabase" name="database" placeholder="z.B. infra">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="mssqlUsername">Benutzername</label>
|
||||
<input type="text" id="mssqlUsername" name="username" placeholder="Datenbank-Benutzer">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="mssqlPassword">Passwort</label>
|
||||
<input type="password" id="mssqlPassword" name="password" placeholder="Leer lassen, um aktuelles Passwort zu behalten">
|
||||
</div>
|
||||
|
||||
<% if (mssqlConfig && mssqlConfig.updated_at) { %>
|
||||
<p style="margin-top: 10px; color: #666;">
|
||||
<strong>Zuletzt geändert:</strong>
|
||||
<%= new Date(mssqlConfig.updated_at).toLocaleString('de-DE') %>
|
||||
</p>
|
||||
<% } %>
|
||||
|
||||
<button type="submit" class="btn btn-primary">MSSQL-Konfiguration speichern</button>
|
||||
<button type="button" id="mssqlTestConnectionBtn" class="btn btn-secondary" style="margin-left: 10px;">Verbindung testen</button>
|
||||
<span id="mssqlTestStatus" style="margin-left: 10px;"></span>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -454,6 +503,19 @@
|
||||
}
|
||||
}
|
||||
|
||||
function toggleMssqlSection() {
|
||||
const content = document.getElementById('mssqlContent');
|
||||
const icon = document.getElementById('mssqlToggleIcon');
|
||||
|
||||
if (content.style.display === 'none') {
|
||||
content.style.display = 'block';
|
||||
icon.style.transform = 'rotate(180deg)';
|
||||
} else {
|
||||
content.style.display = 'none';
|
||||
icon.style.transform = 'rotate(0deg)';
|
||||
}
|
||||
}
|
||||
|
||||
// Rollenwechsel-Handler
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
const roleSwitcher = document.getElementById('roleSwitcher');
|
||||
|
||||
Reference in New Issue
Block a user