FAQ admin ready for test

This commit is contained in:
ilmedova 2022-12-13 15:49:48 +05:00
parent 29ee679fbc
commit b2277ba3a2
2 changed files with 10 additions and 7 deletions

View File

@ -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')
]
]);
}

View File

@ -234,6 +234,9 @@
'resolutionbases' => 'resolutionbases'
],
'faq' => [
'list_title' => 'FAQ'
'list_title' => 'FAQs',
'title' => 'FAQ',
'question_text' => 'Question',
'answer' => 'Answer'
]
];