FAQ admin ready for test
This commit is contained in:
parent
29ee679fbc
commit
b2277ba3a2
|
|
@ -31,7 +31,7 @@ public function setup()
|
|||
}
|
||||
CRUD::setModel(\App\Models\Question::class);
|
||||
CRUD::setRoute(config('backpack.base.route_prefix') . '/question');
|
||||
CRUD::setEntityNameStrings('question', 'questions');
|
||||
CRUD::setEntityNameStrings(trans('app.faq.title'), trans('app.faq.list_title'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -46,12 +46,12 @@ protected function setupListOperation()
|
|||
[
|
||||
'name' => 'question_text',
|
||||
'type' => 'text',
|
||||
'label' => 'Question text'
|
||||
'label' => trans('app.faq.question_text')
|
||||
],
|
||||
[
|
||||
'name' => 'options',
|
||||
'type' => 'text',
|
||||
'label' => 'Options'
|
||||
'label' => trans('app.faq.answer')
|
||||
]
|
||||
]);
|
||||
}
|
||||
|
|
@ -70,12 +70,12 @@ protected function setupCreateOperation()
|
|||
[
|
||||
'name' => 'question_text',
|
||||
'type' => 'text',
|
||||
'label' => 'Question text'
|
||||
'label' => trans('app.faq.question_text')
|
||||
],
|
||||
[
|
||||
'name' => 'options',
|
||||
'type' => 'text',
|
||||
'label' => 'Options'
|
||||
'type' => 'simplemde',
|
||||
'label' => trans('app.faq.answer')
|
||||
]
|
||||
]);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -234,6 +234,9 @@
|
|||
'resolutionbases' => 'resolutionbases'
|
||||
],
|
||||
'faq' => [
|
||||
'list_title' => 'FAQ'
|
||||
'list_title' => 'FAQs',
|
||||
'title' => 'FAQ',
|
||||
'question_text' => 'Question',
|
||||
'answer' => 'Answer'
|
||||
]
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in New Issue