diff --git a/htdocs/ifttt/admin/index.php b/htdocs/ifttt/admin/index.php index ec8fb8c756c..30ed2ef0a86 100644 --- a/htdocs/ifttt/admin/index.php +++ b/htdocs/ifttt/admin/index.php @@ -64,7 +64,7 @@ llxHeader(); $linkback=''.$langs->trans("BackToModuleList").''; print load_fiche_titre($langs->trans("IFTTTSetup"), $linkback, 'title_setup'); -print $langs->trans("IFTTTDesc")."
\n"; +print ''.$langs->trans("IFTTTDesc")."
\n"; print "
\n"; print '
'; @@ -91,7 +91,7 @@ print ''.$langs->trans("IFTTT_DOLIBARR_ENDPOINT_SECUREKEY").''; print ''; print ''; print ''; -print ''.$langs->trans("DefineAValueOfYourChoice").''; +print ''; print ''; print ''; @@ -113,10 +113,11 @@ $urlwithroot=$urlwithouturlroot.DOL_URL_ROOT; // This is to use external domain // Show message $message=''; -$url=$urlwithroot.'/ifttt/index.php?securekey='.$conf->global->IFTTT_DOLIBARR_ENDPOINT_SECUREKEY; +$url=$urlwithroot.'/public/ifttt/index.php?securekey='.$conf->global->IFTTT_DOLIBARR_ENDPOINT_SECUREKEY; $message.=$langs->trans("UrlForIFTTT").':
'; -$message.=img_picto('', 'object_globe.png').' '.$url; +$message.=img_picto('', 'object_globe.png').' '; print $message; +print ajax_autoselect("endpointforifttt"); print '
'; print '
'; diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang index 9f8162deb8f..23f10739424 100644 --- a/htdocs/langs/en_US/admin.lang +++ b/htdocs/langs/en_US/admin.lang @@ -1882,3 +1882,9 @@ SmallerThan=Smaller than LargerThan=Larger than IfTrackingIDFoundEventWillBeLinked=Note that If a tracking ID is found into incoming email, the event will be automatically linked to the related objects. WithGMailYouCanCreateADedicatedPassword=With a GMail account, if you enabled the 2 steps validation, it is recommanded to create a dedicated second password for the application instead of using your own account passsword from https://myaccount.google.com/. +IFTTTSetup=IFTTT module setup +IFTTT_SERVICE_KEY=IFTTT Service key +IFTTT_DOLIBARR_ENDPOINT_SECUREKEY=Security key to secure the endpoint URL used by IFTTT to send messages to your Dolibarr. +IFTTTDesc=This module is designed to trigger events on IFTTT and/or to execute some action on external IFTTT triggers. +UrlForIFTTT=URL endpoint for IFTTT +YouWillFindItOnYourIFTTTAccount=You will find it on your IFTTT account \ No newline at end of file