{
parent::setFields();
+ $this->addField(['name' => 'client',
+ 'label' => 'Client name',
+ 'type' => 'Text',
+ 'column' => true,
+ 'column_label' => 'Client',
+ 'tab' => 'Project']);
+
+ $this->addField(['name' => 'project',
+ 'label' => 'Project name',
+ 'type' => 'Text',
+ 'column' => true,
+ 'column_label' => 'Project',
+ 'tab' => 'Project']);
+
+ $this->addField(['name' => 'created_at',
+ 'label' => 'Created at',
+ 'type' => 'Datetime',
+ 'column' => true,
+ 'column_type' => 'date',
+ 'column_format' => null,
+ 'tab' => 'Project']);
+
+ $this->addField(['name' => 'updated_at',
+ 'label' => 'Updated at',
+ 'type' => 'Hidden',
+ 'column' => true,
+ 'column_type' => 'date',
+ 'column_format' => null,
+ 'tab' => 'Project']);
+
+ $this->addField(['name' => 'owner',
+ 'label' => 'Owner',
+ 'type' => 'User',
+ 'column' => true,
+ 'can' => 'viewany',
+ 'tab' => 'Project']);
+
+
$this->addField(['name' => 'title',
'label' => 'Quiz title',
'type' => 'Text',
'optionsmodel' => QuizTranslation::class,
'attribute' => 'locale',
'column' => true,
+ 'column_label' => '<i class="fa fa-language"></i>',
'tab' => 'Contents']);
foreach (self::$_messages as $name => $label) {
'tab' => 'Questions / Answers',
]);
- $this->addField(['name' => 'owner',
- 'label' => 'Owner',
- 'type' => 'User',
- 'column' => true,
- 'can' => 'viewany',
- 'tab' => 'Settings']);
$this->addField(['name' => 'scorm',
'label' => 'SCORM enabled',