Merge branch 'add_minutes' of https://github.com/q6q9/guild into add_minutes
This commit is contained in:
@ -8,6 +8,8 @@ use yii\widgets\ActiveForm;
|
||||
/* @var $this yii\web\View */
|
||||
/* @var $model common\models\Reports */
|
||||
/* @var $form yii\widgets\ActiveForm */
|
||||
|
||||
$this->registerCss('.list-cell__task{width:73%}')
|
||||
?>
|
||||
|
||||
<div class="reports-form">
|
||||
@ -48,7 +50,16 @@ use yii\widgets\ActiveForm;
|
||||
'title' => 'Кол-во часов',
|
||||
'options' => [
|
||||
'type' => 'number',
|
||||
'style' => 'width:100px'
|
||||
'min' => '0'
|
||||
],
|
||||
],
|
||||
[
|
||||
'name' => 'minutes_spent',
|
||||
'title' => 'Кол-во минут',
|
||||
'options' => [
|
||||
'type' => 'number',
|
||||
'min' => '0',
|
||||
'max' => '59'
|
||||
],
|
||||
],
|
||||
],
|
||||
|
@ -34,7 +34,7 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
if ($model->task) {
|
||||
$i = 1;
|
||||
foreach ($model->task as $task) {
|
||||
$text .= "<p>$i. ($task->hours_spent ч.) $task->task</p>";
|
||||
$text .= "<p>$i. ($task->hours_spent ч., $task->minutes_spent мин.) $task->task</p>";
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
if ($model->task) {
|
||||
$i = 1;
|
||||
foreach ($model->task as $task) {
|
||||
$text .= "<p>$i. ($task->hours_spent ч.) $task->task</p>";
|
||||
$text .= "<p>$i. ($task->hours_spent ч., $task->minutes_spent мин.) $task->task</p>";
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user