{"id":400,"date":"2025-08-04T21:53:52","date_gmt":"2025-08-04T21:53:52","guid":{"rendered":"https:\/\/tree-of-mylife.com\/?page_id=400"},"modified":"2025-12-09T04:07:55","modified_gmt":"2025-12-09T04:07:55","slug":"consent-signature","status":"publish","type":"page","link":"https:\/\/tree-of-mylife.com\/es\/consent-signature\/","title":{"rendered":"Consent &amp; Signature"},"content":{"rendered":"\n<div style=\"max-width:700px;margin:auto;padding:30px;\nbackground: rgba(0, 0, 0, 0.6);\nbackground-image: url('https:\/\/tree-of-mylife.com\/wp-content\/uploads\/2025\/07\/ChatGPT-Image-Jul-11-2025-04_16_15-PM.png');\nbackground-size: cover;\nbackground-position: center;\nbackground-repeat: no-repeat;\nborder-radius: 12px;\nbox-shadow: 0 0 10px rgba(0,0,0,0.1);\nfont-family: Arial, sans-serif; color: #FFFFFF;\">\n\n  <!-- \ud83c\udf10 Idioma -->\n  <div style=\"text-align:right; margin-bottom:6px;\">\n    <label for=\"consent-lang\" style=\"font-size:13px;font-weight:bold;color:#fff;\">\ud83c\udf10 Language:<\/label>\n    <select id=\"consent-lang\" style=\"background:rgba(255,255,255,0.85); border:1px solid #333; border-radius:6px; padding:4px 6px; color:#000;\">\n      <option value=\"en\" selected>English<\/option>\n      <option value=\"es\">Espa\u00f1ol<\/option>\n    <\/select>\n  <\/div>\n\n  <h3 id=\"consent-title\" style=\"text-align:center;color:#FFFFFF;\">\n    Consent &amp; Signature\n  <\/h3>\n\n  <form id=\"consent-form\">\n    <p id=\"consent-text\" style=\"margin-bottom:15px;\">\n      I hereby confirm that the information provided in this form is true, complete, and accurate to the best of my knowledge.\n      I understand that any false statements may result in disqualification or further investigation.\n    <\/p>\n\n    <label>\n      <input type=\"checkbox\" name=\"consent_agree\" required style=\"margin-right:10px;\">\n      <span data-i18n=\"agree\">I agree and give my consent to process this information.<\/span>\n    <\/label>\n\n    <label id=\"lbl-fullname\" style=\"display:block;margin-top:20px;\">Full Name (as digital signature)<\/label>\n    <input type=\"text\" name=\"digital_signature\" required\n      style=\"width:100%;padding:10px;margin-bottom:15px;border-radius:6px;border:1px solid #ccc;\">\n\n    <label id=\"lbl-date\">Date<\/label>\n    <input type=\"date\" name=\"consent_date\" required\n      style=\"width:100%;padding:10px;margin-bottom:20px;border-radius:6px;border:1px solid #ccc;\">\n\n    <button type=\"submit\" style=\"background-color:#4CAF50;color:white;padding:12px 20px;border:none;border-radius:6px;cursor:pointer;\">\n      <span data-i18n=\"submit\">Submit<\/span>\n    <\/button>\n  <\/form>\n\n  <!-- \ud83d\udd3d Acciones abajo -->\n  <div style=\"display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-top:18px;\">\n    <button type=\"button\" onclick=\"CONS_share()\" style=\"background:#444;color:#fff;border:none;border-radius:6px;padding:8px 14px;cursor:pointer;\">Share<\/button>\n    <button type=\"button\" onclick=\"CONS_copy()\"  style=\"background:#444;color:#fff;border:none;border-radius:6px;padding:8px 14px;cursor:pointer;\">Copy<\/button>\n    <button type=\"button\" onclick=\"window.print()\" style=\"background:#444;color:#fff;border:none;border-radius:6px;padding:8px 14px;cursor:pointer;\">Print<\/button>\n    <button type=\"button\" onclick=\"CONS_downloadPDF()\"  style=\"background:#444;color:#fff;border:none;border-radius:6px;padding:8px 14px;cursor:pointer;\">Download PDF<\/button>\n    <button type=\"button\" onclick=\"CONS_downloadJSON()\" style=\"background:#444;color:#fff;border:none;border-radius:6px;padding:8px 14px;cursor:pointer;\">Download JSON<\/button>\n  <\/div>\n<\/div>\n\n<script>\n  \/\/ i18n EN\/ES (solo textos, sin cambiar estilos)\n  const CONS_I18N = {\n    en: {\n      title: \"Consent & Signature\",\n      paragraph: \"I hereby confirm that the information provided in this form is true, complete, and accurate to the best of my knowledge. I understand that any false statements may result in disqualification or further investigation.\",\n      agree: \"I agree and give my consent to process this information.\",\n      fullname: \"Full Name (as digital signature)\",\n      date: \"Date\",\n      submit: \"Submit\"\n    },\n    es: {\n      title: \"Consentimiento y Firma\",\n      paragraph: \"Por la presente confirmo que la informaci\u00f3n proporcionada en este formulario es verdadera, completa y precisa seg\u00fan mi leal saber y entender. Entiendo que cualquier declaraci\u00f3n falsa puede resultar en descalificaci\u00f3n o investigaci\u00f3n adicional.\",\n      agree: \"Acepto y doy mi consentimiento para procesar esta informaci\u00f3n.\",\n      fullname: \"Nombre completo (como firma digital)\",\n      date: \"Fecha\",\n      submit: \"Enviar\"\n    }\n  };\n\n  function CONS_applyLang(lang){\n    const t = CONS_I18N[lang] || CONS_I18N.en;\n    document.getElementById('consent-title').textContent = t.title;\n    document.getElementById('consent-text').textContent  = t.paragraph;\n    document.querySelector('[data-i18n=\"agree\"]').textContent = t.agree;\n    document.getElementById('lbl-fullname').textContent = t.fullname;\n    document.getElementById('lbl-date').textContent     = t.date;\n    document.querySelector('#consent-form [type=\"submit\"] span[data-i18n=\"submit\"]').textContent = t.submit;\n    localStorage.setItem('consent_lang', lang);\n  }\n\n  (function CONS_initLang(){\n    const sel = document.getElementById('consent-lang');\n    const saved = localStorage.getItem('consent_lang') || 'en';\n    sel.value = saved;\n    CONS_applyLang(saved);\n    sel.addEventListener('change', e => CONS_applyLang(e.target.value));\n  })();\n\n  \/\/ Acciones inferiores\n  function CONS_share(){\n    const data={title: document.getElementById('consent-title').textContent, url: location.href};\n    if (navigator.share){ navigator.share(data).catch(()=>{}); }\n    else { alert('Sharing not supported'); }\n  }\n  function CONS_copy(){\n    navigator.clipboard.writeText(location.href)\n      .then(()=>alert('Link copied!'))\n      .catch(()=>alert('Copy failed'));\n  }\n  function CONS_downloadJSON(){\n    const fd = new FormData(document.getElementById('consent-form'));\n    const obj = {};\n    fd.forEach((v,k)=>{ obj[k] = v; });\n    const blob = new Blob([JSON.stringify(obj,null,2)], {type:'application\/json'});\n    const a = document.createElement('a'); a.href = URL.createObjectURL(blob);\n    a.download = 'consent-signature.json'; a.click();\n    setTimeout(()=>URL.revokeObjectURL(a.href), 500);\n  }\n  function CONS_downloadPDF(){\n    alert('PDF export (demo).');\n  }\n<\/script>\n\n","protected":false},"excerpt":{"rendered":"<p>\ud83c\udf10 Language: EnglishEspa\u00f1ol Consent &amp; Signature I hereby confirm that the information provided in this form is true, complete, and accurate to the best of my knowledge. I understand that any false statements may result in disqualification or further investigation. I agree and give my consent to process this information. Full Name (as digital signature) [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","pmpro_default_level":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-400","page","type-page","status-publish","hentry","pmpro-has-access"],"_links":{"self":[{"href":"https:\/\/tree-of-mylife.com\/es\/wp-json\/wp\/v2\/pages\/400","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tree-of-mylife.com\/es\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/tree-of-mylife.com\/es\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/tree-of-mylife.com\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tree-of-mylife.com\/es\/wp-json\/wp\/v2\/comments?post=400"}],"version-history":[{"count":3,"href":"https:\/\/tree-of-mylife.com\/es\/wp-json\/wp\/v2\/pages\/400\/revisions"}],"predecessor-version":[{"id":754,"href":"https:\/\/tree-of-mylife.com\/es\/wp-json\/wp\/v2\/pages\/400\/revisions\/754"}],"wp:attachment":[{"href":"https:\/\/tree-of-mylife.com\/es\/wp-json\/wp\/v2\/media?parent=400"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}