|
@@ -964,7 +964,7 @@ if ($action == 'create' && $user->rights->projet->creer) {
|
|
|
print '</td>';
|
|
|
print '<td>';
|
|
|
if (!empty($conf->global->PROJECT_USE_OPPORTUNITIES)) {
|
|
|
- print '<input type="checkbox" id="usage_opportunity" name="usage_opportunity"'.(GETPOSTISSET('usage_opportunity') ? (GETPOST('usage_opportunity', 'alpha') != '' ? ' checked="checked"' : '') : ($object->usage_opportunity ? ' checked="checked"' : '')).'"> ';
|
|
|
+ print '<input type="checkbox" id="usage_opportunity" name="usage_opportunity"'.(GETPOSTISSET('usage_opportunity') ? (GETPOST('usage_opportunity', 'alpha') != '' ? ' checked="checked"' : '') : ($object->usage_opportunity ? ' checked="checked"' : '')).'> ';
|
|
|
$htmltext = $langs->trans("ProjectFollowOpportunity");
|
|
|
print '<label for="usage_opportunity">'.$form->textwithpicto($langs->trans("ProjectFollowOpportunity"), $htmltext).'</label>';
|
|
|
print '<script>';
|
|
@@ -990,7 +990,7 @@ if ($action == 'create' && $user->rights->projet->creer) {
|
|
|
print '<br>';
|
|
|
}
|
|
|
if (empty($conf->global->PROJECT_HIDE_TASKS)) {
|
|
|
- print '<input type="checkbox" id="usage_task" name="usage_task"' . (GETPOSTISSET('usage_task') ? (GETPOST('usage_task', 'alpha') != '' ? ' checked="checked"' : '') : ($object->usage_task ? ' checked="checked"' : '')) . '"> ';
|
|
|
+ print '<input type="checkbox" id="usage_task" name="usage_task"' . (GETPOSTISSET('usage_task') ? (GETPOST('usage_task', 'alpha') != '' ? ' checked="checked"' : '') : ($object->usage_task ? ' checked="checked"' : '')) . '> ';
|
|
|
$htmltext = $langs->trans("ProjectFollowTasks");
|
|
|
print '<label for="usage_task">'.$form->textwithpicto($langs->trans("ProjectFollowTasks"), $htmltext).'</label>';
|
|
|
print '<script>';
|
|
@@ -1016,7 +1016,7 @@ if ($action == 'create' && $user->rights->projet->creer) {
|
|
|
print '<br>';
|
|
|
}
|
|
|
if (empty($conf->global->PROJECT_HIDE_TASKS) && !empty($conf->global->PROJECT_BILL_TIME_SPENT)) {
|
|
|
- print '<input type="checkbox" id="usage_bill_time" name="usage_bill_time"' . (GETPOSTISSET('usage_bill_time') ? (GETPOST('usage_bill_time', 'alpha') != '' ? ' checked="checked"' : '') : ($object->usage_bill_time ? ' checked="checked"' : '')) . '"> ';
|
|
|
+ print '<input type="checkbox" id="usage_bill_time" 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 '<label for="usage_bill_time">'.$form->textwithpicto($langs->trans("BillTime"), $htmltext).'</label>';
|
|
|
print '<script>';
|
|
@@ -1042,7 +1042,7 @@ if ($action == 'create' && $user->rights->projet->creer) {
|
|
|
print '<br>';
|
|
|
}
|
|
|
if (isModEnabled('eventorganization')) {
|
|
|
- print '<input type="checkbox" id="usage_organize_event" name="usage_organize_event"'. (GETPOSTISSET('usage_organize_event') ? (GETPOST('usage_organize_event', 'alpha') != '' ? ' checked="checked"' : '') : ($object->usage_organize_event ? ' checked="checked"' : '')) . '"> ';
|
|
|
+ print '<input type="checkbox" id="usage_organize_event" 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 '<label for="usage_organize_event">'.$form->textwithpicto($langs->trans("ManageOrganizeEvent"), $htmltext).'</label>';
|
|
|
print '<script>';
|
|
@@ -1250,26 +1250,26 @@ if ($action == 'create' && $user->rights->projet->creer) {
|
|
|
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"' : '')).'"> ';
|
|
|
+ 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"' : '')).'"> ';
|
|
|
+ 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"' : '')).'"> ';
|
|
|
+ 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 (isModEnabled('eventorganization')) {
|
|
|
- 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"' : '')).'"> ';
|
|
|
+ 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);
|
|
|
}
|