Skip to content

Commit

Permalink
Fix css and missing translation key
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jan 29, 2017
1 parent 24c21cc commit b4b81d8
Show file tree
Hide file tree
Showing 18 changed files with 36 additions and 21 deletions.
2 changes: 1 addition & 1 deletion htdocs/comm/mailing/cibles.php
Expand Up @@ -231,7 +231,7 @@

$var=!$var;

$allowaddtarget=($object->statut == 0);
$allowaddtarget=($object->statut == 0 || $object->statut == 1);

// Show email selectors
if ($allowaddtarget && $user->rights->mailing->creer)
Expand Down
1 change: 1 addition & 0 deletions htdocs/core/modules/mailings/advthirdparties.modules.php
Expand Up @@ -26,6 +26,7 @@
class mailing_advthirdparties extends MailingTargets
{
var $name='ThirdPartyAdvancedTargeting';
// This label is used if no translation is found for key XXX neither MailingModuleDescXXX where XXX=name is found
var $desc="Third parties";
var $require_admin=0;

Expand Down
6 changes: 3 additions & 3 deletions htdocs/core/modules/mailings/contacts1.modules.php
Expand Up @@ -34,12 +34,12 @@
class mailing_contacts1 extends MailingTargets
{
var $name='ContactCompanies'; // Identifiant du module mailing
// This label is used if no translation is found for key MailingModuleDescXXX where XXX=name is found
var $desc='Contacts des tiers (prospects, clients, fournisseurs...)';
// This label is used if no translation is found for key XXX neither MailingModuleDescXXX where XXX=name is found
var $desc='Contacts of thirdparties (prospects, customers, suppliers...)';
var $require_module=array("societe"); // Module mailing actif si modules require_module actifs
var $require_admin=0; // Module mailing actif pour user admin ou non
var $picto='contact';

var $db;


Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/modules/mailings/contacts2.modules.php
Expand Up @@ -33,7 +33,7 @@
class mailing_contacts2 extends MailingTargets
{
var $name='ContactsByFunction';
// This label is used if no translation is found for key MailingModuleDescXXX where XXX=name is found
// This label is used if no translation is found for key XXX neither MailingModuleDescXXX where XXX=name is found
var $desc='Add contacts by function';
var $require_admin=0;

Expand Down
4 changes: 2 additions & 2 deletions htdocs/core/modules/mailings/contacts3.modules.php
Expand Up @@ -32,8 +32,8 @@
class mailing_contacts3 extends MailingTargets
{
var $name='ContactsByCompanyCategory';
// This label is used if no translation is found for key MailingModuleDescXXX where XXX=name is found
var $desc='Add contacts by company category';
// This label is used if no translation is found for key XXX neither MailingModuleDescXXX where XXX=name is found
var $desc='Add contacts by company category';
var $require_admin=0;

var $require_module=array();
Expand Down
4 changes: 2 additions & 2 deletions htdocs/core/modules/mailings/contacts4.modules.php
Expand Up @@ -32,8 +32,8 @@
class mailing_contacts4 extends MailingTargets
{
var $name='ContactsByCategory';
// This label is used if no translation is found for key MailingModuleDescXXX where XXX=name is found
var $desc='Add contacts by category';
// This label is used if no translation is found for key XXX neither MailingModuleDescXXX where XXX=name is found
var $desc='Add contacts by category';
var $require_admin=0;

var $require_module=array();
Expand Down
4 changes: 3 additions & 1 deletion htdocs/core/modules/mailings/example.modules.php
Expand Up @@ -32,7 +32,9 @@ class mailing_example extends MailingTargets
var $desc='Put here a description';
// CHANGE THIS: Set to 1 if selector is available for admin users only
var $require_admin=0;

// CHANGE THIS: Add a tooltip language key to add a tooltip help icon after the email target selector
var $tooltip='MyTooltipLangKey';

var $require_module=array();
var $picto='';
var $db;
Expand Down
6 changes: 2 additions & 4 deletions htdocs/core/modules/mailings/fraise.modules.php
Expand Up @@ -32,12 +32,10 @@
*/
class mailing_fraise extends MailingTargets
{
// CHANGE THIS: Put here a name not already used
var $name='FundationMembers'; // Identifiant du module mailing
// CHANGE THIS: Put here a description of your selector module.
// This label is used if no translation found for key MailingModuleDescXXX where XXX=name is found
// This label is used if no translation is found for key XXX neither MailingModuleDescXXX where XXX=name is found
var $desc='Foundation members with emails (by status)';
// CHANGE THIS: Set to 1 if selector is available for admin users only
// Set to 1 if selector is available for admin users only
var $require_admin=0;

var $require_module=array('adherent');
Expand Down
6 changes: 2 additions & 4 deletions htdocs/core/modules/mailings/framboise.modules.php
Expand Up @@ -23,12 +23,10 @@
*/
class mailing_framboise extends MailingTargets
{
// CHANGE THIS: Put here a name not already used
var $name='MembersCategories';
// CHANGE THIS: Put here a description of your selector module.
// This label is used if no translation found for key MailingModuleDescXXX where XXX=name is found
// This label is used if no translation is found for key XXX neither MailingModuleDescXXX where XXX=name is found
var $desc="Foundation members with emails (by categories)";
// CHANGE THIS: Set to 1 if selector is available for admin users only
// Set to 1 if selector is available for admin users only
var $require_admin=0;

var $require_module=array("adherent","categorie");
Expand Down
6 changes: 4 additions & 2 deletions htdocs/core/modules/mailings/modules_mailings.php
Expand Up @@ -49,7 +49,7 @@ function __construct($db)
/**
* Return description of email selector
*
* @return string Retourne la traduction de la cle MailingModuleDescXXX ou XXX nom du module, ou $this->desc si non trouve
* @return string Return translation of module label. Try translation of $this->name then translation of 'MailingModuleDesc'.$this->name, or $this->desc if not found
*/
function getDesc()
{
Expand All @@ -58,7 +58,9 @@ function getDesc()
$langs->load("mails");
$transstring="MailingModuleDesc".$this->name;
$s='';
if ($langs->trans($transstring) != $transstring) $s=$langs->trans($transstring);

if ($langs->trans($this->name) != $this->name) $s=$langs->trans($this->name);
elseif ($langs->trans($transstring) != $transstring) $s=$langs->trans($transstring);
else $s=$this->desc;

if ($this->tooltip && is_object($form)) $s .= ' '.$form->textwithpicto('', $langs->trans($this->tooltip), 1, 1);
Expand Down
1 change: 1 addition & 0 deletions htdocs/core/modules/mailings/pomme.modules.php
Expand Up @@ -31,6 +31,7 @@
class mailing_pomme extends MailingTargets
{
var $name='DolibarrUsers'; // Identifiant du module mailing
// This label is used if no translation is found for key XXX neither MailingModuleDescXXX where XXX=name is found
var $desc='Dolibarr users with emails'; // Libelle utilise si aucune traduction pour MailingModuleDescXXX ou XXX=name trouv�e
var $require_module=array(); // Module mailing actif si modules require_module actifs
var $require_admin=1; // Module mailing actif pour user admin ou non
Expand Down
1 change: 1 addition & 0 deletions htdocs/core/modules/mailings/thirdparties.modules.php
Expand Up @@ -24,6 +24,7 @@
class mailing_thirdparties extends MailingTargets
{
var $name='ContactsCategories';
// This label is used if no translation is found for key XXX neither MailingModuleDescXXX where XXX=name is found
var $desc="Third parties (by categories)";
var $require_admin=0;

Expand Down
Expand Up @@ -23,6 +23,7 @@
class mailing_thirdparties_services_expired extends MailingTargets
{
var $name='DolibarrContractsLinesExpired';
// This label is used if no translation is found for key XXX neither MailingModuleDescXXX where XXX=name is found
var $desc='Third parties with expired contract\'s lines';
var $require_admin=0;

Expand Down
1 change: 1 addition & 0 deletions htdocs/core/modules/mailings/xinputfile.modules.php
Expand Up @@ -31,6 +31,7 @@
class mailing_xinputfile extends MailingTargets
{
var $name='EmailsFromFile'; // Identifiant du module mailing
// This label is used if no translation is found for key XXX neither MailingModuleDescXXX where XXX=name is found
var $desc='EMails from a file'; // Libelle utilise si aucune traduction pour MailingModuleDescXXX ou XXX=name trouv�e
var $require_module=array(); // Module mailing actif si modules require_module actifs
var $require_admin=0; // Module mailing actif pour user admin ou non
Expand Down
1 change: 1 addition & 0 deletions htdocs/core/modules/mailings/xinputuser.modules.php
Expand Up @@ -31,6 +31,7 @@
class mailing_xinputuser extends MailingTargets
{
var $name='EmailsFromUser'; // Identifiant du module mailing
// This label is used if no translation is found for key XXX neither MailingModuleDescXXX where XXX=name is found
var $desc='EMails input by user'; // Libelle utilise si aucune traduction pour MailingModuleDescXXX ou XXX=name trouv�e
var $require_module=array(); // Module mailing actif si modules require_module actifs
var $require_admin=0; // Module mailing actif pour user admin ou non
Expand Down
5 changes: 4 additions & 1 deletion htdocs/langs/en_US/mails.lang
Expand Up @@ -74,7 +74,10 @@ ResultOfMailSending=Result of mass EMail sending
NbSelected=Nb selected
NbIgnored=Nb ignored
NbSent=Nb sent
ContactsWithThirdpartyFilter=Contact with customer filters
MailingModuleDescContactsWithThirdpartyFilter=Contact with customer filters
MailingModuleDescContactsByCompanyCategory=Contacts by third party category
MailingModuleDescContactsByCategory=Contacts by categories
MailingModuleDescContactsByFunction=Contacts by position

# Libelle des modules de liste de destinataires mailing
LineInFile=Line %s in file
Expand Down
3 changes: 3 additions & 0 deletions htdocs/theme/eldy/style.css.php
Expand Up @@ -2778,6 +2778,9 @@
padding: 5px 2px 5px 3px;
border-bottom: 1px solid #ddd;
}
form.pair, form.impair {
font-weight: normal;
}
form.tagtr:last-of-type div.tagtd, tr.even:last-of-type td, tr.pair:last-of-type td, tr.odd:last-of-type td, tr.impair:last-of-type td {
border-bottom: 0px !important;
}
Expand Down
3 changes: 3 additions & 0 deletions htdocs/theme/md/style.css.php
Expand Up @@ -2651,6 +2651,9 @@
padding: 5px 2px 5px 3px;
border-bottom: 1px solid #eee;
}
form.pair, form.impair {
font-weight: normal;
}
tr.even:last-of-type td, tr.pair:last-of-type td, tr.odd:last-of-type td, tr.impair:last-of-type td {
border-bottom: 0px !important;
}
Expand Down

0 comments on commit b4b81d8

Please sign in to comment.