Fix selection of profile for demo
This commit is contained in:
parent
ed39849d33
commit
4c03aa6547
@ -97,7 +97,7 @@ if (empty($reshook))
|
|||||||
),
|
),
|
||||||
// All demo profile
|
// All demo profile
|
||||||
array('default'=>'0', 'key'=>'profdemoall','label'=>'ChooseYourDemoProfilMore',
|
array('default'=>'0', 'key'=>'profdemoall','label'=>'ChooseYourDemoProfilMore',
|
||||||
'disablemodules'=>'adherent,don,externalsite,mailmanspip',
|
'disablemodules'=>'adherent,don,externalsite,mailmanspip,takepos',
|
||||||
//'icon'=>DOL_URL_ROOT.'/public/demo/dolibarr_screenshot9.png'
|
//'icon'=>DOL_URL_ROOT.'/public/demo/dolibarr_screenshot9.png'
|
||||||
'icon'=>DOL_URL_ROOT.'/public/demo/demo-profile-all.jpg'
|
'icon'=>DOL_URL_ROOT.'/public/demo/demo-profile-all.jpg'
|
||||||
)
|
)
|
||||||
@ -106,10 +106,10 @@ if (empty($reshook))
|
|||||||
|
|
||||||
// Visible
|
// Visible
|
||||||
$alwayscheckedmodules=array('barcode','bookmark','categorie','externalrss','fckeditor','geoipmaxmind','gravatar','memcached','syslog','user','webservices'); // Technical module we always want
|
$alwayscheckedmodules=array('barcode','bookmark','categorie','externalrss','fckeditor','geoipmaxmind','gravatar','memcached','syslog','user','webservices'); // Technical module we always want
|
||||||
$alwaysuncheckedmodules=array('dav','dynamicprices','incoterm','loan','multicurrency','paybox','paypal','stripe','google','printing','scanner','skype','takepos','workflow','website'); // Module we dont want by default
|
$alwaysuncheckedmodules=array('dav','dynamicprices','incoterm','loan','multicurrency','paybox','paypal','stripe','google','printing','scanner','skype','website'); // Module we dont want by default
|
||||||
// Not visible
|
// Not visible
|
||||||
$alwayshiddencheckedmodules=array('accounting','api','barcode','blockedlog','bookmark','clicktodial','comptabilite','cron','document','domain','externalrss','externalsite','fckeditor','geoipmaxmind','gravatar','label','ldap',
|
$alwayshiddencheckedmodules=array('accounting','api','barcode','blockedlog','bookmark','clicktodial','comptabilite','cron','document','domain','externalrss','externalsite','fckeditor','geoipmaxmind','gravatar','label','ldap',
|
||||||
'mailmanspip','notification','oauth','syslog','user','webservices',
|
'mailmanspip','notification','oauth','syslog','user','webservices','workflow',
|
||||||
// Extended modules
|
// Extended modules
|
||||||
'memcached','numberwords','zipautofillfr');
|
'memcached','numberwords','zipautofillfr');
|
||||||
$alwayshiddenuncheckedmodules=array('debugbar','emailcollector','ftp','hrm','modulebuilder','webservicesclient','websites',
|
$alwayshiddenuncheckedmodules=array('debugbar','emailcollector','ftp','hrm','modulebuilder','webservicesclient','websites',
|
||||||
@ -392,10 +392,10 @@ foreach ($demoprofiles as $profilearray)
|
|||||||
//if ($modulo == 0) print '<tr>';
|
//if ($modulo == 0) print '<tr>';
|
||||||
print '<!-- id='.$val->numero.' -->';
|
print '<!-- id='.$val->numero.' -->';
|
||||||
print '<div class="nowrap">';
|
print '<div class="nowrap">';
|
||||||
print '<input type="checkbox" class="checkbox" name="'.$modulekeyname.'" value="1"';
|
print '<input type="checkbox" class="checkbox" id="id'.$modulekeyname.'" name="'.$modulekeyname.'" value="1" title="'.dol_escape_htmltag($val->getName()).'"';
|
||||||
if (in_array($modulekeyname, $alwaysuncheckedmodules)) print ' disabled';
|
if (in_array($modulekeyname, $alwaysuncheckedmodules)) print ' disabled';
|
||||||
if (! in_array($modulekeyname, $alwaysuncheckedmodules) && (! in_array($modulekeyname, $listofdisabledmodules) || in_array($modulekeyname, $alwayscheckedmodules))) print ' checked';
|
if (! in_array($modulekeyname, $alwaysuncheckedmodules) && (! in_array($modulekeyname, $listofdisabledmodules) || in_array($modulekeyname, $alwayscheckedmodules))) print ' checked';
|
||||||
print '> <div class="inline-block demomaxoveflow">'.$val->getName().'</div><br>';
|
print '> <label for="id'.$modulekeyname.'" class="inline-block demomaxoveflow" title="'.dol_escape_htmltag($val->getName()).'">'.$val->getName().'</label><br>';
|
||||||
print '</div>';
|
print '</div>';
|
||||||
//if ($modulo == ($nbcolsmod - 1)) print '</tr>';
|
//if ($modulo == ($nbcolsmod - 1)) print '</tr>';
|
||||||
$j++;
|
$j++;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user