SPS' V3 templates. Updated Harri's templates too to update the workato endpoints.

This commit is contained in:
Norm Rasmussen
2025-05-13 16:55:51 -04:00
parent 89c35d0506
commit 72715d9d49
322 changed files with 8995 additions and 3731 deletions

View File

@ -10,7 +10,7 @@
{% else %}
{% include 'profile_settings_initial' %}
{% endif %}
<style>
.np-account {
background: #F7F7FE;
@ -63,17 +63,17 @@
}
}
</style>
<script>
const form = document.getElementById('name-form');
form.addEventListener('input', () => {
const firstName = document.querySelector('#first-name').value;
const lastName = document.querySelector('#last-name').value;
const button = document.querySelector('button.np-form-action');
button.disabled = !(firstName.length > 0 && lastName.length > 0);
});
addEventListener('DOMContentLoaded', () => {
{% if current_person.first_name %}
document.querySelector('#first-name').setAttribute('value', '{{ current_person.first_name }}');
@ -97,7 +97,7 @@
const firstName = document.getElementById('first-name').value;
const lastName = document.getElementById('last-name').value;
const xhr = new XMLHttpRequest();
xhr.open('POST', 'https://www.workato.com/webhooks/rest/bd1a1eb7-7e79-4208-a1db-8e9c7440bcc9/pipedrive-sso-setup-first-and-last-name');
xhr.open('POST', 'https://webhooks.workato.com/webhooks/rest/bd1a1eb7-7e79-4208-a1db-8e9c7440bcc9/pipedrive-sso-setup-first-and-last-name');
xhr.setRequestHeader('Content-Type', 'application/json');
xhr.send(JSON.stringify({
"first-name": firstName,