setTitle('Développement'); $this->addButton(['label' => 'Nouveau développement ', 'url' => ['development/create'], 'class' => 'btn btn-primary']); $this->addBreadcrumb($this->getTitle()); ?>
Cette page liste les besoins recencés auprès des producteurs utilisant la plateforme. N'hésitez pas à me contacter pour la faire évoluer. Les remontées de bugs sont également bienvenues.
Afin d'orienter de manière pertinente le développement de la plateforme, je vous invite à définir la priorité des évolutions qui vous intéressent.
'#', 'value' => function ($model) { return '#' . $model->id; } ], [ 'attribute' => 'type', 'header' => 'Type', 'format' => 'raw', 'value' => function ($model) { if ($model->type == Development::TYPE_EVOLUTION) { return 'Évolution'; } else { return 'Anomalie'; } } ], ['attribute' => 'sujet', 'format' => 'raw', 'value' => function ($model) { $html = '' . Html::encode($model->subject) . ''; if (strlen($model->description)) $html .= '
' . nl2br(Html::encode($model->description)); return $html; }], ['attribute' => 'estimation_temps', 'header' => 'Estimation', 'format' => 'raw', 'value' => function ($model) { return intval($model->time_estimate) . ' h'; }], ['attribute' => 'avancement', 'format' => 'raw', 'value' => function ($model) { if ($model->progress) return '
' . intval($model->progress) . '% effectué
'; else return ''; }], ['attribute' => 'date_delivery', 'format' => 'raw', 'value' => function ($model) { if (strlen($model->date_delivery)) return date('d/m/Y', strtotime($model->date_delivery)); else return ''; }], ]; if (User::hasAccessBackend()) { $columns[] = [ 'header' => 'Priorité', 'format' => 'raw', 'value' => function ($model) { $currentPriority = (isset($model->developmentPrioritYCurrentProducer)) ? $model->developmentPriorityCurrentProducer->getStrPriority() : 'Non'; $styleButton = (isset($model->developmentPriorityCurrentProducer)) ? $model->developmentPriorityCurrentProducer->getClassCssStyleButton() : 'default'; $html = '

'; if (isset($model->developmentPriority) && count($model->developmentPriority)) { foreach ($model->developmentPriority as $developmentPriority) { if ($developmentPriority->id_producer != GlobalParam::getCurrentProducerId()) $html .= '
' . Html::encode($developmentPriority->producer->name) . '
'; } } return $html; } ]; } if (User::getCurrentStatus() == USER::STATUS_ADMIN) { $columns[] = [ 'class' => 'yii\grid\ActionColumn', 'template' => '{update}', 'headerOptions' => ['class' => 'actions'], 'buttons' => [ 'update' => function ($url, $model) { return '
Modifier
'; }, ], ]; } ?> 'tab-developments', 'dataProvider' => $dataProvider, 'columns' => $columns ]); ?>