Anadir variable {{PORTAL}} al selector de variables y placeholders
This commit is contained in:
@@ -93,7 +93,7 @@
|
||||
<div>
|
||||
<label class="label-modern">Mensaje de WhatsApp</label>
|
||||
<div class="flex flex-wrap gap-2 mb-2" data-varchips></div>
|
||||
<textarea rows="3" class="input-modern" data-template="reminder_sin_citar" placeholder="Ej: Hola {{NOMBRE}}, seguimos pendientes de concretar la fecha de tu cita para el servicio {{REFERENCIA}}. Te avisaremos en cuanto tengamos hueco disponible."></textarea>
|
||||
<textarea rows="3" class="input-modern" data-template="reminder_sin_citar" placeholder="Ej: Hola {{NOMBRE}}, seguimos pendientes de concretar la fecha de tu cita para el servicio {{REFERENCIA}}. Elige tu hueco aqui: {{PORTAL}}"></textarea>
|
||||
</div>
|
||||
<div class="flex justify-end mt-4">
|
||||
<button onclick="guardarAutomatizacion('sin_citar')" class="bg-slate-900 hover:bg-blue-600 text-white px-6 py-3 rounded-2xl shadow-lg flex items-center gap-2 font-black text-xs uppercase tracking-widest transition-all active:scale-95">
|
||||
@@ -136,7 +136,7 @@
|
||||
<div>
|
||||
<label class="label-modern">Mensaje de WhatsApp</label>
|
||||
<div class="flex flex-wrap gap-2 mb-2" data-varchips></div>
|
||||
<textarea rows="3" class="input-modern" data-template="reminder_espera_cliente" placeholder="Ej: Hola {{NOMBRE}}, seguimos a la espera de que nos confirmes fecha para tu servicio {{REFERENCIA}}. ¡Contáctanos cuando puedas!"></textarea>
|
||||
<textarea rows="3" class="input-modern" data-template="reminder_espera_cliente" placeholder="Ej: Hola {{NOMBRE}}, seguimos a la espera de que nos confirmes fecha para tu servicio {{REFERENCIA}}. Puedes elegir fecha aqui: {{PORTAL}}"></textarea>
|
||||
</div>
|
||||
<div class="flex justify-end mt-4">
|
||||
<button onclick="guardarAutomatizacion('espera_cliente')" class="bg-slate-900 hover:bg-blue-600 text-white px-6 py-3 rounded-2xl shadow-lg flex items-center gap-2 font-black text-xs uppercase tracking-widest transition-all active:scale-95">
|
||||
@@ -175,7 +175,7 @@
|
||||
<div>
|
||||
<label class="label-modern">Mensaje de WhatsApp</label>
|
||||
<div class="flex flex-wrap gap-2 mb-2" data-varchips></div>
|
||||
<textarea rows="3" class="input-modern" data-template="reminder_dia_antes" placeholder="Ej: Hola {{NOMBRE}}, te recordamos tu cita de mañana {{FECHA}} a las {{HORA}} en {{DIRECCION}} para el servicio {{REFERENCIA}}."></textarea>
|
||||
<textarea rows="3" class="input-modern" data-template="reminder_dia_antes" placeholder="Ej: Hola {{NOMBRE}}, te recordamos tu cita de mañana {{FECHA}} a las {{HORA}} en {{DIRECCION}} para el servicio {{REFERENCIA}}. Detalles: {{PORTAL}}"></textarea>
|
||||
</div>
|
||||
<div class="flex justify-end mt-4">
|
||||
<button onclick="guardarAutomatizacion('dia_antes')" class="bg-slate-900 hover:bg-blue-600 text-white px-6 py-3 rounded-2xl shadow-lg flex items-center gap-2 font-black text-xs uppercase tracking-widest transition-all active:scale-95">
|
||||
@@ -239,7 +239,7 @@
|
||||
<script>
|
||||
if (!localStorage.getItem("token")) window.location.href = "index.html";
|
||||
|
||||
const VARIABLES = ["{{NOMBRE}}", "{{DIRECCION}}", "{{FECHA}}", "{{HORA}}", "{{REFERENCIA}}"];
|
||||
const VARIABLES = ["{{NOMBRE}}", "{{DIRECCION}}", "{{FECHA}}", "{{HORA}}", "{{REFERENCIA}}", "{{PORTAL}}"];
|
||||
const TEMPLATE_TYPES = { sin_citar: "reminder_sin_citar", espera_cliente: "reminder_espera_cliente", dia_antes: "reminder_dia_antes" };
|
||||
|
||||
function authHeaders(json) {
|
||||
|
||||
Reference in New Issue
Block a user