diff --git a/module/todo/css/common.ui.css b/module/todo/css/common.ui.css index 9c706f0d5c..4047d69289 100644 --- a/module/todo/css/common.ui.css +++ b/module/todo/css/common.ui.css @@ -1,6 +1,3 @@ -.form-row .form-group.items-center {align-items: center;} -#nameInputBox {width: 80%;} -#nameInputBox .form-control {width: 99.8%;} .have-fix .input-control-prefix {width: 42px; background: #f6f7f9; opacity: 1;} .have-fix .input-group-addon {width: 42px;} .highlight-suffix .input-control-suffix, @@ -11,3 +8,6 @@ .form-row .tooltip-btn:hover:before {opacity: 0;} .input-control > .form-control.before-days {padding-left: 50px;} .form .label-id {height: 20px; border-color: #D8DBDE; border-radius: 10px;} +.form-row .form-group.items-center {align-items: center;} +#nameInputBox {width: 80%;} +#nameInputBox .form-control {width: 99.8%;} diff --git a/module/todo/ui/edit.html.php b/module/todo/ui/edit.html.php index d7e87790b2..565a90e8ed 100644 --- a/module/todo/ui/edit.html.php +++ b/module/todo/ui/edit.html.php @@ -65,7 +65,6 @@ function buildDateControl(object $todo): mixed set(array ( 'label' => $lang->todo->date, - 'class' => 'items-center', 'width' => '1/3' )), control @@ -517,10 +516,11 @@ formPanel ( set(array ( - 'items' => $users, - 'value' => $todo->assignedTo, - 'id' => 'assignedTo', - 'name' => 'assignedTo', + 'items' => $users, + 'value' => $todo->assignedTo, + 'id' => 'assignedTo', + 'name' => 'assignedTo', + 'disabled' => $todo->private )), on::change('changeAssignedTo()') ) @@ -628,10 +628,11 @@ formPanel ( set(array ( - 'id' => 'begin', - 'name' => 'begin', - 'items' => $times, - 'value' => $todo->begin, + 'id' => 'begin', + 'name' => 'begin', + 'items' => $times, + 'value' => $todo->begin, + 'disabled' => $todo->begin == 2400 )), on::change('selectNext()') ), @@ -644,10 +645,11 @@ formPanel ( set(array ( - 'id' => 'end', - 'name' => 'end', - 'items' => $times, - 'value' => $todo->end + 'id' => 'end', + 'name' => 'end', + 'items' => $times, + 'value' => $todo->end, + 'disabled' => $todo->begin == 2400 )), on::blur('selectEndTime(this)') )