|
@@ -89,6 +89,7 @@ if (!empty($conf->global->MAIN_HTML_TITLE) && preg_match('/projectnameonly/', $c
|
|
|
$title = ($object->ref ? $object->ref.' '.$object->name.' - ' : '').$langs->trans("Gantt");
|
|
|
}
|
|
|
$help_url = "EN:Module_Projects|FR:Module_Projets|ES:Módulo_Proyectos";
|
|
|
+
|
|
|
llxHeader("", $title, $help_url, '', 0, 0, $arrayofjs, $arrayofcss);
|
|
|
|
|
|
if (($id > 0 && is_numeric($id)) || !empty($ref)) {
|
|
@@ -136,29 +137,36 @@ if (($id > 0 && is_numeric($id)) || !empty($ref)) {
|
|
|
print '<table class="border tableforfield centpercent">';
|
|
|
|
|
|
// Usage
|
|
|
- print '<tr><td class="tdtop">';
|
|
|
- print $langs->trans("Usage");
|
|
|
- print '</td>';
|
|
|
- print '<td>';
|
|
|
- if (!empty($conf->global->PROJECT_USE_OPPORTUNITIES)) {
|
|
|
- print '<input type="checkbox" disabled name="usage_opportunity"'.(GETPOSTISSET('usage_opportunity') ? (GETPOST('usage_opportunity', 'alpha') != '' ? ' checked="checked"' : '') : ($object->usage_opportunity ? ' checked="checked"' : '')).'"> ';
|
|
|
- $htmltext = $langs->trans("ProjectFollowOpportunity");
|
|
|
- print $form->textwithpicto($langs->trans("ProjectFollowOpportunity"), $htmltext);
|
|
|
- print '<br>';
|
|
|
- }
|
|
|
- if (empty($conf->global->PROJECT_HIDE_TASKS)) {
|
|
|
- print '<input type="checkbox" disabled name="usage_task"'.(GETPOSTISSET('usage_task') ? (GETPOST('usage_task', 'alpha') != '' ? ' checked="checked"' : '') : ($object->usage_task ? ' checked="checked"' : '')).'"> ';
|
|
|
- $htmltext = $langs->trans("ProjectFollowTasks");
|
|
|
- print $form->textwithpicto($langs->trans("ProjectFollowTasks"), $htmltext);
|
|
|
- print '<br>';
|
|
|
- }
|
|
|
- if (!empty($conf->global->PROJECT_BILL_TIME_SPENT)) {
|
|
|
- print '<input type="checkbox" disabled name="usage_bill_time"'.(GETPOSTISSET('usage_bill_time') ? (GETPOST('usage_bill_time', 'alpha') != '' ? ' checked="checked"' : '') : ($object->usage_bill_time ? ' checked="checked"' : '')).'"> ';
|
|
|
- $htmltext = $langs->trans("ProjectBillTimeDescription");
|
|
|
- print $form->textwithpicto($langs->trans("BillTime"), $htmltext);
|
|
|
- print '<br>';
|
|
|
+ if (!empty($conf->global->PROJECT_USE_OPPORTUNITIES) || empty($conf->global->PROJECT_HIDE_TASKS) || !empty($conf->eventorganization->enabled)) {
|
|
|
+ print '<tr><td class="tdtop">';
|
|
|
+ print $langs->trans("Usage");
|
|
|
+ print '</td>';
|
|
|
+ print '<td>';
|
|
|
+ if (!empty($conf->global->PROJECT_USE_OPPORTUNITIES)) {
|
|
|
+ print '<input type="checkbox" disabled name="usage_opportunity"'.(GETPOSTISSET('usage_opportunity') ? (GETPOST('usage_opportunity', 'alpha') != '' ? ' checked="checked"' : '') : ($object->usage_opportunity ? ' checked="checked"' : '')).'"> ';
|
|
|
+ $htmltext = $langs->trans("ProjectFollowOpportunity");
|
|
|
+ print $form->textwithpicto($langs->trans("ProjectFollowOpportunity"), $htmltext);
|
|
|
+ print '<br>';
|
|
|
+ }
|
|
|
+ if (empty($conf->global->PROJECT_HIDE_TASKS)) {
|
|
|
+ print '<input type="checkbox" disabled name="usage_task"'.(GETPOSTISSET('usage_task') ? (GETPOST('usage_task', 'alpha') != '' ? ' checked="checked"' : '') : ($object->usage_task ? ' checked="checked"' : '')).'"> ';
|
|
|
+ $htmltext = $langs->trans("ProjectFollowTasks");
|
|
|
+ print $form->textwithpicto($langs->trans("ProjectFollowTasks"), $htmltext);
|
|
|
+ print '<br>';
|
|
|
+ }
|
|
|
+ if (empty($conf->global->PROJECT_HIDE_TASKS) && !empty($conf->global->PROJECT_BILL_TIME_SPENT)) {
|
|
|
+ print '<input type="checkbox" disabled name="usage_bill_time"'.(GETPOSTISSET('usage_bill_time') ? (GETPOST('usage_bill_time', 'alpha') != '' ? ' checked="checked"' : '') : ($object->usage_bill_time ? ' checked="checked"' : '')).'"> ';
|
|
|
+ $htmltext = $langs->trans("ProjectBillTimeDescription");
|
|
|
+ print $form->textwithpicto($langs->trans("BillTime"), $htmltext);
|
|
|
+ print '<br>';
|
|
|
+ }
|
|
|
+ if (!empty($conf->eventorganization->enabled)) {
|
|
|
+ print '<input type="checkbox" disabled name="usage_organize_event"'.(GETPOSTISSET('usage_organize_event') ? (GETPOST('usage_organize_event', 'alpha') != '' ? ' checked="checked"' : '') : ($object->usage_organize_event ? ' checked="checked"' : '')).'"> ';
|
|
|
+ $htmltext = $langs->trans("EventOrganizationDescriptionLong");
|
|
|
+ print $form->textwithpicto($langs->trans("ManageOrganizeEvent"), $htmltext);
|
|
|
+ }
|
|
|
+ print '</td></tr>';
|
|
|
}
|
|
|
- print '</td></tr>';
|
|
|
|
|
|
// Visibility
|
|
|
print '<tr><td class="titlefield">'.$langs->trans("Visibility").'</td><td>';
|