|
@@ -146,8 +146,10 @@ import { EntityEdit, EntityIndex } from 'quasar-crud'
|
|
|
import DeleteBtn from 'src/components/Control/DeleteBtn.vue'
|
|
import DeleteBtn from 'src/components/Control/DeleteBtn.vue'
|
|
|
import { UnitCategoryList } from 'src/models/UnitCategory.js'
|
|
import { UnitCategoryList } from 'src/models/UnitCategory.js'
|
|
|
import PostRequisites from 'src/components/Control/PostRequisites.vue'
|
|
import PostRequisites from 'src/components/Control/PostRequisites.vue'
|
|
|
|
|
+import FormBuilderInputEditor from 'src/components/FormBuilderCustumComponents/FormBuilderInputEditor.vue'
|
|
|
|
|
|
|
|
const PostRequisitesComp = shallowRef(PostRequisites)
|
|
const PostRequisitesComp = shallowRef(PostRequisites)
|
|
|
|
|
+const FormBuilderInputEditorComp = shallowRef(FormBuilderInputEditor)
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
name: 'Admin.Category.Index',
|
|
name: 'Admin.Category.Index',
|
|
@@ -169,7 +171,7 @@ export default {
|
|
|
showRouteName: 'Admin.Unit.Show',
|
|
showRouteName: 'Admin.Unit.Show',
|
|
|
inputs: [
|
|
inputs: [
|
|
|
{ type: 'input', name: 'title', responseKey: 'title', label: 'نام درس', col: 'col-12' },
|
|
{ type: 'input', name: 'title', responseKey: 'title', label: 'نام درس', col: 'col-12' },
|
|
|
- { type: 'inputEditor', name: 'rules', responseKey: 'rules', label: 'قوانین درس', col: 'col-12' },
|
|
|
|
|
|
|
+ { type: FormBuilderInputEditorComp, name: 'rules', responseKey: 'rules', label: 'قوانین درس', col: 'col-12' },
|
|
|
{ type: PostRequisitesComp, name: 'prerequisites', responseKey: 'prerequisites', col: 'col-12' },
|
|
{ type: PostRequisitesComp, name: 'prerequisites', responseKey: 'prerequisites', col: 'col-12' },
|
|
|
{ type: 'hidden', name: 'id', responseKey: 'id', label: 'id', col: 'col-md-3 col-12' },
|
|
{ type: 'hidden', name: 'id', responseKey: 'id', label: 'id', col: 'col-md-3 col-12' },
|
|
|
{ type: 'hidden', name: 'category', responseKey: 'category_info.id' }
|
|
{ type: 'hidden', name: 'category', responseKey: 'category_info.id' }
|