|
742 | 742 | $arrayofcss=array(); |
743 | 743 | llxHeader('', $langs->trans("GoogleSetup"), $help_url, '', 0, 0, $arrayofjs, $arrayofcss); |
744 | 744 |
|
745 | | -$linkback='<a href="'.DOL_URL_ROOT.'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans("BackToModuleList").'</a>'; |
746 | | -print_fiche_titre($langs->trans("GoogleSetup"), $linkback, 'setup'); |
| 745 | +$linkback = '<a href="'.DOL_URL_ROOT.'/admin/modules.php?restore_lastsearch_values=1">'.img_picto($langs->trans("BackToModuleList"), 'back', 'class="pictofixedwidth"').'<span class="hideonsmartphone">'.$langs->trans("BackToModuleList").'</span></a>'; |
747 | 746 |
|
| 747 | +print_fiche_titre($langs->trans("GoogleSetup"), $linkback, 'setup'); |
748 | 748 |
|
749 | 749 | if (! function_exists("openssl_open")) { |
750 | 750 | print '<br><div class="warning">Warning: PHP Module \'openssl\' is not installed</div><br>'; |
@@ -804,16 +804,18 @@ function initfields() |
804 | 804 | //'prospectsonly'=>$langs->trans("ProspectsOnly"), |
805 | 805 | '0'=>$langs->trans("No") |
806 | 806 | ); |
807 | | - print $form->selectarray('GOOGLE_DUPLICATE_INTO_THIRDPARTIES', $arraytmp, getDolGlobalString('GOOGLE_DUPLICATE_INTO_THIRDPARTIES')); |
808 | | - print '<br>'; |
| 807 | + print $form->selectarray('GOOGLE_DUPLICATE_INTO_THIRDPARTIES', $arraytmp, getDolGlobalString('GOOGLE_DUPLICATE_INTO_THIRDPARTIES'), 0, 0, 0, '', 0, 0, 0, '', 'maxwidth150'); |
| 808 | + print '<br><br>'; |
809 | 809 | } |
810 | 810 | if (isModEnabled('societe')) { |
811 | 811 | print img_picto('', 'contact', 'class="pictofixedwidth"').$langs->trans("GoogleEnableSyncToContacts").' '; |
812 | | - print $form->selectyesno("GOOGLE_DUPLICATE_INTO_CONTACTS", GETPOSTISSET("GOOGLE_DUPLICATE_INTO_CONTACTS") ? GETPOST('GOOGLE_DUPLICATE_INTO_CONTACTS') : getDolGlobalString('GOOGLE_DUPLICATE_INTO_CONTACTS'), 1, false, 0, 1).'<br>'; |
| 812 | + print $form->selectyesno("GOOGLE_DUPLICATE_INTO_CONTACTS", GETPOSTISSET("GOOGLE_DUPLICATE_INTO_CONTACTS") ? GETPOST('GOOGLE_DUPLICATE_INTO_CONTACTS') : getDolGlobalString('GOOGLE_DUPLICATE_INTO_CONTACTS'), 1, false, 0, 1); |
| 813 | + print '<br><br>'; |
813 | 814 | } |
814 | 815 | if (isModEnabled('adherent')) { |
815 | 816 | print img_picto('', 'member', 'class="pictofixedwidth"').$langs->trans("GoogleEnableSyncToMembers").' '; |
816 | | - print $form->selectyesno("GOOGLE_DUPLICATE_INTO_MEMBERS", GETPOSTISSET("GOOGLE_DUPLICATE_INTO_MEMBERS") ? GETPOST("GOOGLE_DUPLICATE_INTO_MEMBERS") : getDolGlobalString('GOOGLE_DUPLICATE_INTO_MEMBERS'), 1, false, 0, 1).'<br>'; |
| 817 | + print $form->selectyesno("GOOGLE_DUPLICATE_INTO_MEMBERS", GETPOSTISSET("GOOGLE_DUPLICATE_INTO_MEMBERS") ? GETPOST("GOOGLE_DUPLICATE_INTO_MEMBERS") : getDolGlobalString('GOOGLE_DUPLICATE_INTO_MEMBERS'), 1, false, 0, 1); |
| 818 | + print '<br><br>'; |
817 | 819 | } |
818 | 820 |
|
819 | 821 |
|
@@ -875,8 +877,8 @@ function initfields() |
875 | 877 | print '<table class="noborder centpercent">'; |
876 | 878 |
|
877 | 879 | print '<tr class="liste_titre">'; |
878 | | -print '<td class="titlefieldcreate">'.$langs->trans("Parameter").' ('.$langs->trans("ParametersForGoogleAPIv3Usage", "Contact").')'."</td>"; |
879 | | -print "<td>".$langs->trans("Value")."</td>"; |
| 880 | +print '<td class="titlefieldcreate" colspan="2">'.$langs->trans("Parameter").' ('.$langs->trans("ParametersForGoogleAPIv3Usage", "Contact").')'."</td>"; |
| 881 | +//print "<td></td>"; |
880 | 882 | print "<td>".$langs->trans("Note")."</td>"; |
881 | 883 | print "</tr>"; |
882 | 884 |
|
@@ -935,7 +937,7 @@ function initfields() |
935 | 937 | // Login is in GOOGLE_CONTACT_LOGIN (only in module Google) |
936 | 938 | // ID and SECRET are OAUTH_GOOGLE-CONTACT_ID and OAUTH_GOOGLE-CONTACT_SECRET so shared with OAuth module. |
937 | 939 | if (!getDolGlobalString('GOOGLE_CONTACT_LOGIN') || !getDolGlobalString('OAUTH_GOOGLE-CONTACT_ID') || !getDolGlobalString('OAUTH_GOOGLE-CONTACT_SECRET')) { |
938 | | - print $langs->trans("FillAndSaveGoogleAccount"); |
| 940 | + print '<span class="opacitymedium">'.$langs->trans("FillAndSaveGoogleAccount").'</span>'; |
939 | 941 | } else { |
940 | 942 | // https://developers.google.com/identity/protocols/OAuth2UserAgent |
941 | 943 | // $completeoauthurl=$oauthurl; |
|
0 commit comments