Rank Question

This commit is contained in:
Gogs
2021-06-16 22:08:53 +02:00
parent dfe1530d27
commit e4373729c5
20 changed files with 375 additions and 52 deletions
+37
View File
@@ -0,0 +1,37 @@
<?php namespace GermanAirlinesVa\Schooling\Models;
use Model;
/**
* Model
*/
class ExamMemberRankQuestion extends Model
{
use \October\Rain\Database\Traits\Validation;
/*
* Disable timestamps by default.
* Remove this line if timestamps are defined in the database table.
*/
public $timestamps = false;
/**
* @var string The database table used by the model.
*/
public $table = 'exam_questions';
protected $connection = 'germanairlinesva_schooling';
/**
* @var array Validation rules
*/
public $rules = [
'member_rank' => 'required',
'in_use' => 'required',
'mandatory' => 'required',
'text' => 'required',
];
public $belongsTo = [
'member_rank' => 'GermanAirlinesVa\Schooling\Models\MemberRank',
];
}
+1 -1
View File
@@ -27,6 +27,6 @@ class Typerating extends Model
public $rules = ['name' => 'required', 'price' => 'required'];
public $hasMany = [
'aircraft_types' => 'GermanAirlinesVa\Fleet',
'aircraft_types' => 'GermanAirlinesVa\Fleet\Models\AircraftType',
];
}
@@ -0,0 +1,19 @@
columns:
id:
label: id
type: text
member_rank_id:
label: member_rank_id
type: text
in_use:
label: in_use
type: text
mandatory:
label: mandatory
type: text
text:
label: text
type: text
picture:
label: picture
type: text
+29
View File
@@ -0,0 +1,29 @@
fields:
member_rank:
label: 'germanairlinesva.schooling::lang.exam_question.rank'
nameFrom: name
descriptionFrom: description
span: auto
required: 1
type: relation
in_use:
label: 'germanairlinesva.schooling::lang.exam_question.in_use'
span: auto
required: 1
type: switch
mandatory:
label: 'germanairlinesva.schooling::lang.exam_question.mandatory'
span: auto
required: 1
type: switch
text:
label: 'germanairlinesva.schooling::lang.exam_question.text'
size: large
span: auto
required: 1
type: richeditor
picture:
label: 'germanairlinesva.schooling::lang.exam_question.picture'
mode: file
span: auto
type: mediafinder