* Display disabled status.

This commit is contained in:
wangzemei
2023-05-09 16:24:54 +08:00
parent 4e466a6fd3
commit d2fc5f14f3
2 changed files with 18 additions and 16 deletions
+3 -3
View File
@@ -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%;}
+15 -13
View File
@@ -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)')
)