Nessun oggetto della modifica
Nessun oggetto della modifica
 
(8 versioni intermedie di uno stesso utente non sono mostrate)
Riga 1: Riga 1:
<div class="linkedin-request-table">
__NOTOC__


== 🧠 Richieste LinkedIn in attesa ==
<div class="mw-ui-container mw-ui-vform" style="padding: 2em; background: #f9f9f9; border: 1px solid #ccc; border-radius: 8px;">
<table class="wikitable sortable">
= 🔐 Richieste di Accesso con LinkedIn =
  <thead>
    <tr>
      <th>📅 Data</th>
      <th>👤 Nome</th>
      <th>📌 Stato</th>
      <th>🔗 LinkedIn</th>
      <th>⚙️ Azione</th>
    </tr>
  </thead>
  <tbody id="linkedin-requests-body">
    <!-- Righe generate via JS -->
  </tbody>
</table>


<p>Qui sotto sono elencate le richieste in attesa da parte degli utenti che hanno effettuato il login con LinkedIn. Ogni richiesta può essere <b>approvata</b> o <b>rifiutata</b> manualmente cliccando sui pulsanti corrispondenti.</p>
<div id="richiesteLinkedIn">
  <p>🔄 Caricamento richieste in corso...</p>
</div>
</div>
</div>
document.addEventListener('DOMContentLoaded', function () {
<script>
fetch('/linkedin_requests.json')
  .then(res => res.json())
  .then(data => {
    const tbody = document.getElementById('linkedin-requests-body');
    data.forEach(req => {
      const tr = document.createElement('tr');
      const tdData = document.createElement('td');
      tdData.textContent = req.data;
      const tdNome = document.createElement('td');
      tdNome.textContent = req.nome;
      const tdStato = document.createElement('td');
      tdStato.textContent = req.stato;
      const tdProfilo = document.createElement('td');
      const linkProfilo = document.createElement('a');
      linkProfilo.href = req.profilo_linkedin;
      linkProfilo.target = "_blank";
      linkProfilo.innerHTML = '🔗 Profilo';
      tdProfilo.appendChild(linkProfilo);
      const tdContatta = document.createElement('td');
      const linkContatta = document.createElement('a');
      linkContatta.href = req.profilo_linkedin;
      linkContatta.target = "_blank";
      linkContatta.className = 'mw-ui-button';
      linkContatta.innerHTML = '✉️ Contatta';
      tdContatta.appendChild(linkContatta);
      tr.appendChild(tdData);
      tr.appendChild(tdNome);
      tr.appendChild(tdStato);
      tr.appendChild(tdProfilo);
      tr.appendChild(tdContatta);
      tbody.appendChild(tr);
    });
  })
  .catch(err => {
    document.getElementById('linkedin-requests-body').innerHTML =
      '<tr><td colspan="5">⚠️ Nessuna richiesta trovata.</td></tr>';
    console.error(err);
  });
</script>
});

Versione attuale delle 13:54, 14 giu 2025


🔐 Richieste di Accesso con LinkedIn

Qui sotto sono elencate le richieste in attesa da parte degli utenti che hanno effettuato il login con LinkedIn. Ogni richiesta può essere approvata o rifiutata manualmente cliccando sui pulsanti corrispondenti.

🔄 Caricamento richieste in corso...