This commit is contained in:
Laurent Destailleur 2021-04-30 16:15:35 +02:00
parent 46f41681ff
commit 69511e2706
4 changed files with 10 additions and 24 deletions

View File

@ -65,7 +65,7 @@ class modKnowledgeManagement extends DolibarrModules
// Module description, used if translation string 'ModuleKnowledgeManagementDesc' not found (KnowledgeManagement is name of module).
$this->description = "Knowledge Management (KM)";
// Used only if file README.md and README-LL.md not found.
$this->descriptionlong = "Manage a Knowledge Management (KM) database";
$this->descriptionlong = "Manage a Knowledge Management (KM) or Help-Desk base";
// Possible values for version are: 'development', 'experimental', 'dolibarr', 'dolibarr_deprecated' or a version string like 'x.y.z'
$this->version = 'development';

View File

@ -212,7 +212,7 @@ llxHeader('', $title, $help_url);
// Part to create
if ($action == 'create') {
print load_fiche_titre($langs->trans("NewObject", $langs->transnoentitiesnoconv("KnowledgeRecord")), '', 'object_'.$object->picto);
print load_fiche_titre($langs->trans("NewKnowledgeRecord"), '', 'object_'.$object->picto);
print '<form method="POST" action="'.$_SERVER["PHP_SELF"].'">';
print '<input type="hidden" name="token" value="'.newToken().'">';

View File

@ -250,7 +250,7 @@ $now = dol_now();
//$help_url="EN:Module_KnowledgeRecord|FR:Module_KnowledgeRecord_FR|ES:Módulo_KnowledgeRecord";
$help_url = '';
$title = $langs->trans('ListOf', $langs->transnoentitiesnoconv("KnowledgeRecords"));
$title = $langs->trans('ListOfArticles');
$morejs = array();
$morecss = array();
@ -382,20 +382,6 @@ if ($num == 1 && !empty($conf->global->MAIN_SEARCH_DIRECT_OPEN_IF_ONLY_ONE) && $
llxHeader('', $title, $help_url, '', 0, 0, $morejs, $morecss, '', 'classforhorizontalscrolloftabs');
// Example : Adding jquery code
print '<script type="text/javascript" language="javascript">
jQuery(document).ready(function() {
function init_myfunc()
{
jQuery("#myid").removeAttr(\'disabled\');
jQuery("#myid").attr(\'disabled\',\'disabled\');
}
init_myfunc();
jQuery("#mybutton").click(function() {
init_myfunc();
});
});
</script>';
$arrayofselected = is_array($toselect) ? $toselect : array();

View File

@ -20,7 +20,7 @@
# Module label 'ModuleKnowledgeManagementName'
ModuleKnowledgeManagementName = Knowledge Management System
# Module description 'ModuleKnowledgeManagementDesc'
ModuleKnowledgeManagementDesc = Manage a Knowledge Management database
ModuleKnowledgeManagementDesc=Manage a Knowledge Management (KM) or Help-Desk base
#
# Admin page
@ -46,10 +46,10 @@ KnowledgeManagementArea = Knowledge Management
#
# Menu
#
MenuKnowledgeRecord = Knowledge
ListKnowledgeRecord = List
NewKnowledgeRecord = New knowledge
MenuKnowledgeRecord = Knowledge base
ListOfArticles = List of articles
NewKnowledgeRecord = New article
ValidateReply = Validate solution
KnowledgeRecords = Knowledges
KnowledgeRecord = Knowledge
KnowledgeRecordExtraFields = Extrafields for Knowledge record
KnowledgeRecords = Articles
KnowledgeRecord = Article
KnowledgeRecordExtraFields = Extrafields for Article