Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
c342e2e1
Commit
c342e2e1
authored
18 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
On conditionne affichage des options de fckeditor selon module
parent
9afc0b39
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
htdocs/admin/fckeditor.php
+16
-4
16 additions, 4 deletions
htdocs/admin/fckeditor.php
htdocs/langs/en_US/admin.lang
+1
-0
1 addition, 0 deletions
htdocs/langs/en_US/admin.lang
htdocs/langs/fr_FR/admin.lang
+1
-0
1 addition, 0 deletions
htdocs/langs/fr_FR/admin.lang
with
18 additions
and
4 deletions
htdocs/admin/fckeditor.php
+
16
−
4
View file @
c342e2e1
...
...
@@ -37,10 +37,19 @@ if (!$user->admin)
// Constante et traduction de la description du module
$modules
=
array
(
'PRODUCTDESC'
=>
'FCKeditorForProductDescription'
,
'DETAILS'
=>
'FCKeditorForDetails'
,
'MAILING'
=>
'FCKeditorForMailing'
,
);
'SOCIETE'
=>
'FCKeditorForCompany'
,
'PRODUCTDESC'
=>
'FCKeditorForProductDescription'
,
'DETAILS'
=>
'FCKeditorForDetails'
,
'MAILING'
=>
'FCKeditorForMailing'
);
// Conditions pour que l'option soit proposée
$conditions
=
array
(
'SOCIETE'
=>
$conf
->
societe
->
enabled
,
'PRODUCTDESC'
=>
(
$conf
->
produit
->
enabled
||
$conf
->
service
->
enabled
),
'DETAILS'
=>
(
$conf
->
facture
->
enabled
||
$conf
->
propal
->
enabled
||
$conf
->
commande
->
enabled
),
'MAILING'
=>
$conf
->
mailing
->
enabled
);
foreach
(
$modules
as
$const
=>
$desc
)
{
...
...
@@ -97,6 +106,9 @@ print "</tr>\n";
// Modules
foreach
(
$modules
as
$const
=>
$desc
)
{
// Si condition non remplie, on ne propose pas l'option
if
(
!
$conditions
[
$const
])
continue
;
$var
=!
$var
;
print
"<tr "
.
$bc
[
$var
]
.
">"
;
print
'<td>'
.
$langs
->
trans
(
$desc
)
.
'</td>'
;
...
...
This diff is collapsed.
Click to expand it.
htdocs/langs/en_US/admin.lang
+
1
−
0
View file @
c342e2e1
...
...
@@ -533,6 +533,7 @@ DeliveryOrderModel=Products deliveries receipt model
DeliveriesOrderAbility=Products deliveries receipt ability
##### FCKeditor #####
ActivateFCKeditor=Activate FCKeditor for:
FCKeditorForCompany=WYSIWIG creation/edition of companies description and note
FCKeditorForProductDescription=WYSIWIG creation/edition of products/services description and note
FCKeditorForDetails=WYSIWIG creation/edition of details lines for all entities (proposals, orders, invoices, etc...)
FCKeditorForMailing=WYSIWIG creation/edition of mailings
This diff is collapsed.
Click to expand it.
htdocs/langs/fr_FR/admin.lang
+
1
−
0
View file @
c342e2e1
...
...
@@ -533,6 +533,7 @@ DeliveryOrderModel=Mod
DeliveriesOrderAbility=Prise en charge des bons de réception client
##### FCKeditor #####
ActivateFCKeditor=Activer FCKeditor pour :
FCKeditorForCompany=Création/édition WYSIWIG de la description et note des tiers
FCKeditorForProductDescription=Création/édition WYSIWIG de la description et note des produits/services
FCKeditorForDetails=Création/édition WYSIWIG des lignes details des entités (commandes, propales, factures, etc...)
FCKeditorForMailing=Création/édition WYSIWIG des mailings
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment