From 096a446b7fcfe221613b0f350d8fa60eceb240db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Garci=CC=81a=20de=20La=20Fuente?= Date: Tue, 11 Mar 2014 11:15:15 +0100 Subject: [PATCH 01/18] Changed style of contract creation form to the 3.5 style --- htdocs/contrat/fiche.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/contrat/fiche.php b/htdocs/contrat/fiche.php index 59a23bebd91..59ed152de77 100644 --- a/htdocs/contrat/fiche.php +++ b/htdocs/contrat/fiche.php @@ -767,7 +767,7 @@ $objectlignestatic=new ContratLigne($db); *********************************************************************/ if ($action == 'create') { - dol_fiche_head('', '', $langs->trans("AddContract"), 0, 'contract'); + print_fiche_titre($langs->trans('AddContract')); dol_htmloutput_errors($mesg,''); From 371f0cbb8ec433939b157ddce0fd2cf36d50140a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Garci=CC=81a=20de=20La=20Fuente?= Date: Tue, 11 Mar 2014 11:15:35 +0100 Subject: [PATCH 02/18] Fixed module name in contract admin setup page --- htdocs/admin/contract.php | 2 +- htdocs/contrat/admin/contract_extrafields.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/admin/contract.php b/htdocs/admin/contract.php index b059fa34bec..00f6c7af825 100644 --- a/htdocs/admin/contract.php +++ b/htdocs/admin/contract.php @@ -204,7 +204,7 @@ print "
"; $head=contract_admin_prepare_head(); -dol_fiche_head($head, 'contract', $langs->trans("ModuleSetup")); +dol_fiche_head($head, 'contract', $langs->trans("Contracts"), 0, 'contract'); /* * Contracts Numbering model diff --git a/htdocs/contrat/admin/contract_extrafields.php b/htdocs/contrat/admin/contract_extrafields.php index c50872beee4..e6fa44e5594 100644 --- a/htdocs/contrat/admin/contract_extrafields.php +++ b/htdocs/contrat/admin/contract_extrafields.php @@ -72,7 +72,7 @@ print_fiche_titre($langs->trans("ContractsSetup"),$linkback,'setup'); print '
'; $head=contract_admin_prepare_head(); -dol_fiche_head($head, 'attributes', $langs->trans("ModuleSetup"), 0, 'contrat'); +dol_fiche_head($head, 'attributes', $langs->trans("Contracts"), 0, 'contract'); print $langs->trans("DefineHereComplementaryAttributes",$textobject).'
'."\n"; From 0a603777ae74395a097e5cb0fbf66951e10cd0a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Garci=CC=81a=20de=20La=20Fuente?= Date: Tue, 11 Mar 2014 11:27:06 +0100 Subject: [PATCH 03/18] Added missing spacing --- htdocs/compta/facture/admin/facture_cust_extrafields.php | 2 +- htdocs/compta/facture/admin/facturedet_cust_extrafields.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/compta/facture/admin/facture_cust_extrafields.php b/htdocs/compta/facture/admin/facture_cust_extrafields.php index 0efcb94d079..1056d3148c6 100644 --- a/htdocs/compta/facture/admin/facture_cust_extrafields.php +++ b/htdocs/compta/facture/admin/facture_cust_extrafields.php @@ -75,7 +75,7 @@ $head = invoice_admin_prepare_head(null); dol_fiche_head($head, 'attributes', $langs->trans("Invoices"), 0, 'invoice'); -print $langs->trans("DefineHereComplementaryAttributes",$textobject).'
'."\n"; +print $langs->trans("DefineHereComplementaryAttributes",$textobject).'

'."\n"; // Load attribute_label $extrafields->fetch_name_optionals_label($elementtype); diff --git a/htdocs/compta/facture/admin/facturedet_cust_extrafields.php b/htdocs/compta/facture/admin/facturedet_cust_extrafields.php index a0c560d52cb..5365cf2bee9 100644 --- a/htdocs/compta/facture/admin/facturedet_cust_extrafields.php +++ b/htdocs/compta/facture/admin/facturedet_cust_extrafields.php @@ -76,7 +76,7 @@ $head = invoice_admin_prepare_head(null); dol_fiche_head($head, 'attributeslines', $langs->trans("Invoices"), 0, 'invoice'); -print $langs->trans("DefineHereComplementaryAttributes",$textobject).'
'."\n"; +print $langs->trans("DefineHereComplementaryAttributes",$textobject).'

'."\n"; // Load attribute_label $extrafields->fetch_name_optionals_label($elementtype); From f9a451dbb9de09214fbf3cb94361b6c9e1a47183 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Garci=CC=81a=20de=20La=20Fuente?= Date: Tue, 11 Mar 2014 11:27:25 +0100 Subject: [PATCH 04/18] Corrected intervention translation in module configuration page --- htdocs/fichinter/admin/fichinter_extrafields.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/fichinter/admin/fichinter_extrafields.php b/htdocs/fichinter/admin/fichinter_extrafields.php index 06fefb32fbe..04c05093d5b 100644 --- a/htdocs/fichinter/admin/fichinter_extrafields.php +++ b/htdocs/fichinter/admin/fichinter_extrafields.php @@ -33,6 +33,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php'; $langs->load("companies"); $langs->load("admin"); $langs->load("members"); +$langs->load('interventions'); $extrafields = new ExtraFields($db); $form = new Form($db); @@ -64,6 +65,7 @@ require DOL_DOCUMENT_ROOT.'/core/actions_extrafields.inc.php'; llxHeader(); +$textobject=$langs->transnoentitiesnoconv("Interventions"); $linkback=''.$langs->trans("BackToModuleList").''; print_fiche_titre($langs->trans("InterventionsSetup"),$linkback,'setup'); From 54b9f72977ceae776acaf210afebc7f04e1d6399 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Garci=CC=81a=20de=20La=20Fuente?= Date: Tue, 11 Mar 2014 11:31:37 +0100 Subject: [PATCH 05/18] Unified module name in members admin page and added spacing before submit button --- htdocs/adherents/admin/adherent.php | 2 +- htdocs/adherents/admin/public.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/adherents/admin/adherent.php b/htdocs/adherents/admin/adherent.php index 6534ac09ac3..f285d9a8a3a 100644 --- a/htdocs/adherents/admin/adherent.php +++ b/htdocs/adherents/admin/adherent.php @@ -115,7 +115,7 @@ print_fiche_titre($langs->trans("MembersSetup"),$linkback,'setup'); $head = member_admin_prepare_head(); -dol_fiche_head($head, 'general', $langs->trans("Member"), 0, 'user'); +dol_fiche_head($head, 'general', $langs->trans("Members"), 0, 'user'); dol_htmloutput_mesg($mesg); diff --git a/htdocs/adherents/admin/public.php b/htdocs/adherents/admin/public.php index 1bb11d41c40..9a1fceb9b4e 100644 --- a/htdocs/adherents/admin/public.php +++ b/htdocs/adherents/admin/public.php @@ -84,7 +84,7 @@ print_fiche_titre($langs->trans("MembersSetup"),$linkback,'setup'); $head = member_admin_prepare_head(); -dol_fiche_head($head, 'public', $langs->trans("Member"), 0, 'user'); +dol_fiche_head($head, 'public', $langs->trans("Members"), 0, 'user'); dol_htmloutput_mesg($mesg); @@ -206,7 +206,7 @@ if (! empty($conf->paybox->enabled) || ! empty($conf->paypal->enabled)) print ''; print '
'; -print ''; +print '
'; print '
'; print ''; From 64e76852c5c2dd9d1e5d78607acbaa55a4018a0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Garci=CC=81a=20de=20La=20Fuente?= Date: Tue, 11 Mar 2014 11:37:42 +0100 Subject: [PATCH 06/18] Corrected projects admin page translation --- htdocs/projet/admin/project.php | 6 +++--- htdocs/projet/admin/project_extrafields.php | 5 ++--- htdocs/projet/admin/project_task_extrafields.php | 7 ++----- 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/htdocs/projet/admin/project.php b/htdocs/projet/admin/project.php index c50ddd1a290..7a4233754b9 100644 --- a/htdocs/projet/admin/project.php +++ b/htdocs/projet/admin/project.php @@ -288,7 +288,7 @@ print_fiche_titre($langs->trans("ProjectsSetup"),$linkback,'setup'); $head=project_admin_prepare_head(); -dol_fiche_head($head, 'project', $langs->trans("Project"), 0, 'project'); +dol_fiche_head($head, 'project', $langs->trans("Projects"), 0, 'project'); /* * Projects Numbering model @@ -403,7 +403,7 @@ print ''.$langs->trans("Name").''; print ''.$langs->trans("Description").''; print ''.$langs->trans("Example").''; print ''.$langs->trans("Activated").''; -print ''.$langs->trans("Infos").''; +print ''.$langs->trans("ShortInfo").''; print "\n"; clearstatcache(); @@ -671,7 +671,7 @@ print ' '.$langs->trans("Name")."\n"; print " ".$langs->trans("Description")."\n"; print ''.$langs->trans("Activated")."\n"; print ''.$langs->trans("Default")."\n"; -print ''.$langs->trans("Infos").''; +print ''.$langs->trans("ShortInfo").''; print "\n"; clearstatcache(); diff --git a/htdocs/projet/admin/project_extrafields.php b/htdocs/projet/admin/project_extrafields.php index 6b26e8bc8f5..9ed4381103a 100644 --- a/htdocs/projet/admin/project_extrafields.php +++ b/htdocs/projet/admin/project_extrafields.php @@ -59,8 +59,6 @@ require DOL_DOCUMENT_ROOT.'/core/actions_extrafields.inc.php'; * View */ -$textobject=$langs->transnoentitiesnoconv("Project"); - llxHeader("",$langs->trans("ProjectsSetup")); @@ -70,8 +68,9 @@ print_fiche_titre($langs->trans("ProjectsSetup"),$linkback,'setup'); $head = project_admin_prepare_head(); -dol_fiche_head($head, 'attributes', $langs->trans("Project"), 0, 'project'); +dol_fiche_head($head, 'attributes', $langs->trans("Projects"), 0, 'project'); +$textobject=$langs->transnoentitiesnoconv("Project"); print $langs->trans("DefineHereComplementaryAttributes",$textobject).'
'."\n"; print '
'; diff --git a/htdocs/projet/admin/project_task_extrafields.php b/htdocs/projet/admin/project_task_extrafields.php index 0ab60425a19..9d85781084a 100644 --- a/htdocs/projet/admin/project_task_extrafields.php +++ b/htdocs/projet/admin/project_task_extrafields.php @@ -59,19 +59,16 @@ require DOL_DOCUMENT_ROOT.'/core/actions_extrafields.inc.php'; * View */ -$textobject=$langs->transnoentitiesnoconv("Project"); - llxHeader("",$langs->trans("ProjectsSetup")); $linkback=''.$langs->trans("BackToModuleList").''; print_fiche_titre($langs->trans("ProjectsSetup"),$linkback,'setup'); - $head = project_admin_prepare_head(); -dol_fiche_head($head, 'attributes_task', $langs->trans("Project"), 0, 'project'); - +dol_fiche_head($head, 'attributes_task', $langs->trans("Projects"), 0, 'project'); +$textobject=$langs->transnoentitiesnoconv("Project"); print $langs->trans("DefineHereComplementaryAttributes",$textobject).'
'."\n"; print '
'; From 96143ff4a7510c6ef9f33da162e1cd5502fe64c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Garci=CC=81a=20de=20La=20Fuente?= Date: Tue, 11 Mar 2014 11:41:19 +0100 Subject: [PATCH 07/18] Added missing translation keys --- htdocs/langs/en_US/other.lang | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/langs/en_US/other.lang b/htdocs/langs/en_US/other.lang index f8f8a5fd87b..33626a001f5 100644 --- a/htdocs/langs/en_US/other.lang +++ b/htdocs/langs/en_US/other.lang @@ -22,6 +22,7 @@ Notify_WITHDRAW_CREDIT=Credit withdrawal Notify_WITHDRAW_EMIT=Perform withdrawal Notify_ORDER_SENTBYMAIL=Customer order sent by mail Notify_COMPANY_CREATE=Third party created +Notify_COMPANY_COMPANY_SENTBYMAIL=Mails sent from third party card Notify_PROPAL_SENTBYMAIL=Commercial proposal sent by mail Notify_ORDER_SENTBYMAIL=EnvĂ­o pedido por e-mail Notify_BILL_PAYED=Customer invoice payed @@ -40,6 +41,7 @@ Notify_MEMBER_VALIDATE=Member validated Notify_MEMBER_SUBSCRIPTION=Member subscribed Notify_MEMBER_RESILIATE=Member resiliated Notify_MEMBER_DELETE=Member deleted +Notify_PROJECT_CREATE=Project creation NbOfAttachedFiles=Number of attached files/documents TotalSizeOfAttachedFiles=Total size of attached files/documents MaxSize=Maximum size From 1d357ec2f9952e9f16f3ee495fa1abd33f1fa71f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Garci=CC=81a=20de=20La=20Fuente?= Date: Tue, 11 Mar 2014 11:53:22 +0100 Subject: [PATCH 08/18] Removed odd tabs from some modules --- htdocs/admin/bank.php | 9 --------- htdocs/admin/compta.php | 10 ---------- htdocs/admin/dons.php | 12 ------------ htdocs/admin/ecm.php | 10 ---------- htdocs/admin/mailing.php | 10 ---------- htdocs/admin/prelevement.php | 10 ---------- htdocs/admin/stock.php | 11 ----------- htdocs/admin/taxes.php | 12 ------------ htdocs/externalsite/admin/externalsite.php | 10 ---------- htdocs/paybox/admin/paybox.php | 10 ---------- 10 files changed, 104 deletions(-) diff --git a/htdocs/admin/bank.php b/htdocs/admin/bank.php index 0fcf52b888a..34b7ece1cf2 100644 --- a/htdocs/admin/bank.php +++ b/htdocs/admin/bank.php @@ -88,15 +88,6 @@ $linkback=''.$langs->trans("BackToM print_fiche_titre($langs->trans("BankSetupModule"),$linkback,'setup'); print '
'; -$h = 0; - -$head[$h][0] = DOL_URL_ROOT."/admin/bank.php"; -$head[$h][1] = $langs->trans("Miscellaneous"); -$head[$h][2] = 'general'; -$hselected=$h; -$h++; - -dol_fiche_head($head, $hselected, $langs->trans("ModuleSetup")); print ''; print ''; diff --git a/htdocs/admin/compta.php b/htdocs/admin/compta.php index a2abb070c3a..1e5828f55e2 100644 --- a/htdocs/admin/compta.php +++ b/htdocs/admin/compta.php @@ -104,16 +104,6 @@ print_fiche_titre($langs->trans('ComptaSetup'),$linkback,'setup'); print '
'; -$h = 0; - -$head[$h][0] = DOL_URL_ROOT."/admin/compta.php"; -$head[$h][1] = $langs->trans("Accountancy"); -$head[$h][2] = 'Compta'; -$hselected=$h; -$h++; - -dol_fiche_head($head, $hselected, $langs->trans("ModuleSetup")); - print '
'; // Cas du parametre COMPTA_MODE diff --git a/htdocs/admin/dons.php b/htdocs/admin/dons.php index bb54f0ead67..c350cea531b 100644 --- a/htdocs/admin/dons.php +++ b/htdocs/admin/dons.php @@ -120,18 +120,6 @@ llxHeader('',$langs->trans("DonationsSetup"),'DonConfiguration'); $linkback=''.$langs->trans("BackToModuleList").''; print_fiche_titre($langs->trans("DonationsSetup"),$linkback,'setup'); -print '
'; - -$h = 0; - -$head[$h][0] = DOL_URL_ROOT."/admin/dons.php"; -$head[$h][1] = $langs->trans("Donations"); -$head[$h][2] = 'Donation'; -$hselected=$h; -$h++; - -dol_fiche_head($head, $hselected, $langs->trans("ModuleSetup")); - // Document templates print '
'; diff --git a/htdocs/admin/ecm.php b/htdocs/admin/ecm.php index 68782a2620d..50ad5ce13e8 100644 --- a/htdocs/admin/ecm.php +++ b/htdocs/admin/ecm.php @@ -72,16 +72,6 @@ $linkback=''.$langs->trans("BackToM print_fiche_titre($langs->trans("ECMSetup"),$linkback,'setup'); print '
'; -$h = 0; - -$head[$h][0] = DOL_URL_ROOT."/admin/ecm.php"; -$head[$h][1] = $langs->trans("Miscellaneous"); -$head[$h][2] = 'general'; -$hselected=$h; -$h++; - -dol_fiche_head($head, $hselected, $langs->trans("ModuleSetup")); - print '
'; print ''; print ''; diff --git a/htdocs/admin/mailing.php b/htdocs/admin/mailing.php index 3c9c2f5ad93..43fd62028fd 100644 --- a/htdocs/admin/mailing.php +++ b/htdocs/admin/mailing.php @@ -80,16 +80,6 @@ llxHeader('',$langs->trans("MailingSetup")); $linkback=''.$langs->trans("BackToModuleList").''; print_fiche_titre($langs->trans("MailingSetup"),$linkback,'setup'); -$h = 0; - -$head[$h][0] = DOL_URL_ROOT."/admin/mailing.php"; -$head[$h][1] = $langs->trans("Miscellaneous"); -$head[$h][2] = 'general'; -$hselected=$h; -$h++; - -dol_fiche_head($head, $hselected, $langs->trans("ModuleSetup")); - if (! empty($conf->use_javascript_ajax)) { print "\n".'
'.$langs->trans("Description").'