Fix: Allow text input for hour.
This commit is contained in:
parent
8045f6091f
commit
b3a0510407
@ -3659,7 +3659,7 @@ class Form
|
|||||||
* @param string $prefix prefix
|
* @param string $prefix prefix
|
||||||
* @param int $iSecond Default preselected duration (number of seconds)
|
* @param int $iSecond Default preselected duration (number of seconds)
|
||||||
* @param int $disabled Disable the combo box
|
* @param int $disabled Disable the combo box
|
||||||
* @param string $typehour if select then hour in select if text input in text
|
* @param string $typehour if 'select' then input hour is a combo select, if 'text' input is in text
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
function select_duration($prefix,$iSecond='',$disabled=0,$typehour='select')
|
function select_duration($prefix,$iSecond='',$disabled=0,$typehour='select')
|
||||||
|
|||||||
@ -75,7 +75,7 @@ function project_prepare_head($object)
|
|||||||
$head[$h][2] = 'notes';
|
$head[$h][2] = 'notes';
|
||||||
$h++;
|
$h++;
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
|
||||||
$upload_dir = $conf->projet->dir_output . "/" . dol_sanitizeFileName($object->ref);
|
$upload_dir = $conf->projet->dir_output . "/" . dol_sanitizeFileName($object->ref);
|
||||||
$nbFiles = count(dol_dir_list($upload_dir,'files'));
|
$nbFiles = count(dol_dir_list($upload_dir,'files'));
|
||||||
@ -84,7 +84,7 @@ function project_prepare_head($object)
|
|||||||
if($nbFiles > 0) $head[$h][1].= ' ('.$nbFiles.')';
|
if($nbFiles > 0) $head[$h][1].= ' ('.$nbFiles.')';
|
||||||
$head[$h][2] = 'document';
|
$head[$h][2] = 'document';
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
// Then tab for sub level of projet, i mean tasks
|
// Then tab for sub level of projet, i mean tasks
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/projet/tasks.php?id='.$object->id;
|
$head[$h][0] = DOL_URL_ROOT.'/projet/tasks.php?id='.$object->id;
|
||||||
$head[$h][1] = $langs->trans("Tasks");
|
$head[$h][1] = $langs->trans("Tasks");
|
||||||
@ -494,7 +494,7 @@ function projectLinesb(&$inc, $parent, $lines, &$level, &$projectsrole, &$tasksr
|
|||||||
print '<td class="nowrap">';
|
print '<td class="nowrap">';
|
||||||
$s =$form->select_date('',$lines[$i]->id,'','','',"addtime",1,0,1,$disabledtask);
|
$s =$form->select_date('',$lines[$i]->id,'','','',"addtime",1,0,1,$disabledtask);
|
||||||
$s.=' ';
|
$s.=' ';
|
||||||
$s.=$form->select_duration($lines[$i]->id,'',$disabledtask);
|
$s.=$form->select_duration($lines[$i]->id,'',$disabledtask,'text');
|
||||||
$s.=' <input type="submit" class="button"'.($disabledtask?' disabled="disabled"':'').' value="'.$langs->trans("Add").'">';
|
$s.=' <input type="submit" class="button"'.($disabledtask?' disabled="disabled"':'').' value="'.$langs->trans("Add").'">';
|
||||||
print $s;
|
print $s;
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user