Fix position
This commit is contained in:
parent
7b8f20da1c
commit
f94cfd0d60
1 changed files with 50 additions and 50 deletions
|
|
@ -812,31 +812,6 @@ if ($action == 'create' && $user->hasRight('projet', 'creer')) {
|
|||
print '</td></tr>';
|
||||
}
|
||||
|
||||
// Visibility
|
||||
print '<tr><td>'.$langs->trans("Visibility").'</td><td class="maxwidthonsmartphone">';
|
||||
$array = array();
|
||||
if (!getDolGlobalString('PROJECT_DISABLE_PRIVATE_PROJECT')) {
|
||||
$array[0] = $langs->trans("PrivateProject");
|
||||
}
|
||||
if (!getDolGlobalString('PROJECT_DISABLE_PUBLIC_PROJECT')) {
|
||||
$array[1] = $langs->trans("SharedProject");
|
||||
}
|
||||
|
||||
if (count($array) > 0) {
|
||||
print $form->selectarray('public', $array, GETPOSTINT('public') ? 1 : 0, 0, 0, 0, '', 0, 0, 0, '', '', 1);
|
||||
} else {
|
||||
print '<input type="hidden" name="public" id="public" value="'.(GETPOSTINT('public') ? 1 : 0).'">';
|
||||
|
||||
if (GETPOSTINT('public') == 0) {
|
||||
print img_picto($langs->trans('PrivateProject'), 'private', 'class="paddingrightonly"');
|
||||
print $langs->trans("PrivateProject");
|
||||
} else {
|
||||
print img_picto($langs->trans('SharedProject'), 'world', 'class="paddingrightonly"');
|
||||
print $langs->trans("SharedProject");
|
||||
}
|
||||
}
|
||||
print '</td></tr>';
|
||||
|
||||
if (getDolGlobalString('PROJECT_USE_OPPORTUNITIES')) {
|
||||
// Opportunity status
|
||||
print '<tr class="classuseopportunity"><td><span class="fieldrequired">'.$langs->trans("OpportunityStatus").'</span></td>';
|
||||
|
|
@ -901,6 +876,31 @@ if ($action == 'create' && $user->hasRight('projet', 'creer')) {
|
|||
print "</td></tr>";
|
||||
}
|
||||
|
||||
// Visibility
|
||||
print '<tr><td>'.$langs->trans("Visibility").'</td><td class="maxwidthonsmartphone">';
|
||||
$array = array();
|
||||
if (!getDolGlobalString('PROJECT_DISABLE_PRIVATE_PROJECT')) {
|
||||
$array[0] = $langs->trans("PrivateProject");
|
||||
}
|
||||
if (!getDolGlobalString('PROJECT_DISABLE_PUBLIC_PROJECT')) {
|
||||
$array[1] = $langs->trans("SharedProject");
|
||||
}
|
||||
|
||||
if (count($array) > 0) {
|
||||
print $form->selectarray('public', $array, GETPOSTINT('public') ? 1 : 0, 0, 0, 0, '', 0, 0, 0, '', '', 1);
|
||||
} else {
|
||||
print '<input type="hidden" name="public" id="public" value="'.(GETPOSTINT('public') ? 1 : 0).'">';
|
||||
|
||||
if (GETPOSTINT('public') == 0) {
|
||||
print img_picto($langs->trans('PrivateProject'), 'private', 'class="paddingrightonly"');
|
||||
print $langs->trans("PrivateProject");
|
||||
} else {
|
||||
print img_picto($langs->trans('SharedProject'), 'world', 'class="paddingrightonly"');
|
||||
print $langs->trans("SharedProject");
|
||||
}
|
||||
}
|
||||
print '</td></tr>';
|
||||
|
||||
// Selection of Owner contact type
|
||||
print '<tr><td class="tdtop">'.$langs->trans("ProjectContactTypeManager").'</td>';
|
||||
print '<td>';
|
||||
|
|
@ -1210,31 +1210,6 @@ if ($action == 'create' && $user->hasRight('projet', 'creer')) {
|
|||
print '</td></tr>';
|
||||
}
|
||||
|
||||
// Visibility
|
||||
print '<tr><td>'.$langs->trans("Visibility").'</td><td>';
|
||||
$array = array();
|
||||
if (!getDolGlobalString('PROJECT_DISABLE_PRIVATE_PROJECT')) {
|
||||
$array[0] = $langs->trans("PrivateProject");
|
||||
}
|
||||
if (!getDolGlobalString('PROJECT_DISABLE_PUBLIC_PROJECT')) {
|
||||
$array[1] = $langs->trans("SharedProject");
|
||||
}
|
||||
|
||||
if (count($array) > 0) {
|
||||
print $form->selectarray('public', $array, $object->public, 0, 0, 0, '', 0, 0, 0, '', '', 1);
|
||||
} else {
|
||||
print '<input type="hidden" id="public" name="public" value="'.$object->public.'">';
|
||||
|
||||
if ($object->public == 0) {
|
||||
print img_picto($langs->trans('PrivateProject'), 'private', 'class="paddingrightonly"');
|
||||
print $langs->trans("PrivateProject");
|
||||
} else {
|
||||
print img_picto($langs->trans('SharedProject'), 'world', 'class="paddingrightonly"');
|
||||
print $langs->trans("SharedProject");
|
||||
}
|
||||
}
|
||||
print '</td></tr>';
|
||||
|
||||
if (getDolGlobalString('PROJECT_USE_OPPORTUNITIES')) {
|
||||
$classfortr = ($object->usage_opportunity ? '' : ' hideobject');
|
||||
// Opportunity status
|
||||
|
|
@ -1322,6 +1297,31 @@ if ($action == 'create' && $user->hasRight('projet', 'creer')) {
|
|||
print "</td></tr>";
|
||||
}
|
||||
|
||||
// Visibility
|
||||
print '<tr><td>'.$langs->trans("Visibility").'</td><td>';
|
||||
$array = array();
|
||||
if (!getDolGlobalString('PROJECT_DISABLE_PRIVATE_PROJECT')) {
|
||||
$array[0] = $langs->trans("PrivateProject");
|
||||
}
|
||||
if (!getDolGlobalString('PROJECT_DISABLE_PUBLIC_PROJECT')) {
|
||||
$array[1] = $langs->trans("SharedProject");
|
||||
}
|
||||
|
||||
if (count($array) > 0) {
|
||||
print $form->selectarray('public', $array, $object->public, 0, 0, 0, '', 0, 0, 0, '', '', 1);
|
||||
} else {
|
||||
print '<input type="hidden" id="public" name="public" value="'.$object->public.'">';
|
||||
|
||||
if ($object->public == 0) {
|
||||
print img_picto($langs->trans('PrivateProject'), 'private', 'class="paddingrightonly"');
|
||||
print $langs->trans("PrivateProject");
|
||||
} else {
|
||||
print img_picto($langs->trans('SharedProject'), 'world', 'class="paddingrightonly"');
|
||||
print $langs->trans("SharedProject");
|
||||
}
|
||||
}
|
||||
print '</td></tr>';
|
||||
|
||||
// Other options
|
||||
$parameters = array();
|
||||
$reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
||||
|
|
|
|||
Loading…
Reference in a new issue