Spaces:
Running
Running
change de email template for internet and put the ip calculation inside a table to organise adding better final result
Browse files
script.js
CHANGED
|
@@ -177,29 +177,41 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
| 177 |
const address = document.getElementById('address').value;
|
| 178 |
const bandwidth = document.getElementById('bandwidth').value;
|
| 179 |
const ipRange = document.getElementById('ipRange').value;
|
|
|
|
| 180 |
let emailText = `Subject: Servicio Claro - Alta Internet ${bandwidth} - N掳 Enlace: ${serviceNumber} ${client}\n\n`;
|
| 181 |
emailText += `Estimado Cliente:\n\n`;
|
| 182 |
-
emailText += `
|
| 183 |
-
emailText += `
|
| 184 |
-
emailText += `
|
| 185 |
-
emailText += `
|
| 186 |
-
emailText += `
|
| 187 |
-
emailText += `
|
| 188 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 189 |
const rows = ipTableBody.querySelectorAll('tr');
|
| 190 |
-
emailText += `IP Direccion IP M谩scara\n`;
|
| 191 |
rows.forEach(row => {
|
| 192 |
const cells = row.querySelectorAll('td');
|
| 193 |
const type = cells[0].textContent.padEnd(20);
|
| 194 |
-
const ip = cells[1].textContent.padEnd(
|
| 195 |
-
const mask = cells[2].textContent;
|
| 196 |
-
emailText += `${type}${ip}${mask}\n`;
|
| 197 |
});
|
| 198 |
|
| 199 |
-
emailText += `\
|
| 200 |
-
|
| 201 |
-
emailText += `
|
| 202 |
-
emailText += `
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 203 |
emailOutput.textContent = emailText;
|
| 204 |
feather.replace();
|
| 205 |
}
|
|
|
|
| 177 |
const address = document.getElementById('address').value;
|
| 178 |
const bandwidth = document.getElementById('bandwidth').value;
|
| 179 |
const ipRange = document.getElementById('ipRange').value;
|
| 180 |
+
|
| 181 |
let emailText = `Subject: Servicio Claro - Alta Internet ${bandwidth} - N掳 Enlace: ${serviceNumber} ${client}\n\n`;
|
| 182 |
emailText += `Estimado Cliente:\n\n`;
|
| 183 |
+
emailText += `Le informamos que se ha realizado con 茅xito el ALTA a ${bandwidth} del servicio solicitado, ubicado en ${address}\n\n`;
|
| 184 |
+
emailText += `Datos del servicio:\n`;
|
| 185 |
+
emailText += `- Cliente: ${client}\n`;
|
| 186 |
+
emailText += `- N掳 de enlace: ${serviceNumber}\n`;
|
| 187 |
+
emailText += `- Domicilio: ${address}\n`;
|
| 188 |
+
emailText += `- Ancho de banda: ${bandwidth}\n`;
|
| 189 |
+
emailText += `- Rango IP: ${ipRange}\n\n`;
|
| 190 |
+
|
| 191 |
+
// IP Table for email
|
| 192 |
+
emailText += `Detalle de configuraci贸n IP:\n`;
|
| 193 |
+
emailText += `+----------------------+-----------------+-----------------+\n`;
|
| 194 |
+
emailText += `| Tipo | Direcci贸n IP | M谩scara |\n`;
|
| 195 |
+
emailText += `+----------------------+-----------------+-----------------+\n`;
|
| 196 |
+
|
| 197 |
const rows = ipTableBody.querySelectorAll('tr');
|
|
|
|
| 198 |
rows.forEach(row => {
|
| 199 |
const cells = row.querySelectorAll('td');
|
| 200 |
const type = cells[0].textContent.padEnd(20);
|
| 201 |
+
const ip = cells[1].textContent.padEnd(15);
|
| 202 |
+
const mask = cells[2].textContent.padEnd(15);
|
| 203 |
+
emailText += `| ${type} | ${ip} | ${mask} |\n`;
|
| 204 |
});
|
| 205 |
|
| 206 |
+
emailText += `+----------------------+-----------------+-----------------+\n\n`;
|
| 207 |
+
|
| 208 |
+
emailText += `Configuraci贸n DNS:\n`;
|
| 209 |
+
emailText += `- DNS Primario: 186.12.238.16\n`;
|
| 210 |
+
emailText += `- DNS Secundario: 186.12.238.15\n\n`;
|
| 211 |
+
|
| 212 |
+
emailText += `Ante inconvenientes con la puesta en marcha, favor de comunicarse conmigo.\n`;
|
| 213 |
+
emailText += `Posteriormente, por solicitudes o reclamos, Centro de Gesti贸n Empresarial gestionempresarial@claro.com.ar\n\n`;
|
| 214 |
+
emailText += `Atte.\n`;
|
| 215 |
emailOutput.textContent = emailText;
|
| 216 |
feather.replace();
|
| 217 |
}
|