|
@@ -120,7 +120,7 @@ if ($dirins && $action == 'initmodule' && $modulename)
|
|
|
setEventMessages($langs->trans("AllFilesDidAlreadyExist", $srcdir, $destdir), null, 'warnings');
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
if(!empty($conf->global->MODULEBUILDER_USE_ABOUT)){
|
|
|
dol_delete_file($destdir.'/admin/about.php');
|
|
|
}
|
|
@@ -172,7 +172,7 @@ if ($dirins && $action == 'initmodule' && $modulename)
|
|
|
setEventMessages($langs->trans("ErrorFailToMakeReplacementInto", $phpfileval['fullname']), null, 'errors');
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
if(!empty($conf->global->MODULEBUILDER_SPECIFIC_README)){
|
|
|
dol_delete_file($destdir.'/README.md');
|
|
|
file_put_contents($destdir.'/README.md', $conf->global->MODULEBUILDER_SPECIFIC_README);
|
|
@@ -1680,24 +1680,24 @@ elseif (! empty($module))
|
|
|
print '<div class="div-table-responsive">';
|
|
|
print '<table class="noborder">';
|
|
|
print '<tr class="liste_titre">';
|
|
|
- print '<td>'.$langs->trans("Property");
|
|
|
- print ' (<a href="https://wiki.dolibarr.org/index.php/Language_and_development_rules#Table_and_fields_structures" target="_blank">'.$langs->trans("Example").'</a>)';
|
|
|
- print '</td>';
|
|
|
- print '<td>';
|
|
|
+ print '<th class="liste_titre">'.$langs->trans("Property");
|
|
|
+ print ' (<a class="" href="https://wiki.dolibarr.org/index.php/Language_and_development_rules#Table_and_fields_structures" target="_blank">'.$langs->trans("SeeExamples").'</a>)';
|
|
|
+ print '</th>';
|
|
|
+ print '<th>';
|
|
|
print $form->textwithpicto($langs->trans("Label"), $langs->trans("YouCanUseTranslationKey"));
|
|
|
- print '</td>';
|
|
|
- print '<td>'.$langs->trans("Type").'</td>';
|
|
|
- print '<td>'.$form->textwithpicto($langs->trans("ArrayOfKeyValues"), $langs->trans("ArrayOfKeyValuesDesc")).'</td>';
|
|
|
- print '<td class="center">'.$form->textwithpicto($langs->trans("NotNull"), $langs->trans("NotNullDesc")).'</td>';
|
|
|
- print '<td class="center">'.$langs->trans("DefaultValue").'</td>';
|
|
|
- print '<td class="center">'.$langs->trans("DatabaseIndex").'</td>';
|
|
|
- print '<td class="right">'.$langs->trans("Position").'</td>';
|
|
|
- print '<td class="center">'.$form->textwithpicto($langs->trans("Enabled"), $langs->trans("EnabledDesc")).'</td>';
|
|
|
- print '<td class="center">'.$form->textwithpicto($langs->trans("Visible"), $langs->trans("VisibleDesc")).'</td>';
|
|
|
- print '<td class="center">'.$form->textwithpicto($langs->trans("IsAMeasure"), $langs->trans("IsAMeasureDesc")).'</td>';
|
|
|
- print '<td class="center">'.$form->textwithpicto($langs->trans("SearchAll"), $langs->trans("SearchAllDesc")).'</td>';
|
|
|
- print '<td>'.$langs->trans("Comment").'</td>';
|
|
|
- print '<td></td>';
|
|
|
+ print '</th>';
|
|
|
+ print '<th>'.$langs->trans("Type").'</td>';
|
|
|
+ print '<th>'.$form->textwithpicto($langs->trans("ArrayOfKeyValues"), $langs->trans("ArrayOfKeyValuesDesc")).'</th>';
|
|
|
+ print '<th class="center">'.$form->textwithpicto($langs->trans("NotNull"), $langs->trans("NotNullDesc")).'</th>';
|
|
|
+ print '<th class="center">'.$langs->trans("DefaultValue").'</th>';
|
|
|
+ print '<th class="center">'.$langs->trans("DatabaseIndex").'</th>';
|
|
|
+ print '<th class="right">'.$langs->trans("Position").'</th>';
|
|
|
+ print '<th class="center">'.$form->textwithpicto($langs->trans("Enabled"), $langs->trans("EnabledDesc")).'</th>';
|
|
|
+ print '<th class="center">'.$form->textwithpicto($langs->trans("Visible"), $langs->trans("VisibleDesc")).'</th>';
|
|
|
+ print '<th class="center">'.$form->textwithpicto($langs->trans("IsAMeasure"), $langs->trans("IsAMeasureDesc")).'</th>';
|
|
|
+ print '<th class="center">'.$form->textwithpicto($langs->trans("SearchAll"), $langs->trans("SearchAllDesc")).'</th>';
|
|
|
+ print '<th>'.$langs->trans("Comment").'</th>';
|
|
|
+ print '<th></th>';
|
|
|
print '</tr>';
|
|
|
|
|
|
// We must use $reflectorpropdefault['fields'] to get list of fields because $tmpobjet->fields may have been
|