Skip to content

Commit

Permalink
moving to edit-render and table-render
Browse files Browse the repository at this point in the history
  • Loading branch information
dedanirungu committed Feb 23, 2023
1 parent b160e28 commit 0573b35
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 35 deletions.
7 changes: 2 additions & 5 deletions views/admin/blacklist/form.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<table-edit :path_param="path_param" :model="model">
<edit-render :path_param="path_param" :model="model">

<div class="row">
<div class="col-md-6">
Expand All @@ -11,14 +11,11 @@
</div>
</div>

</table-edit>
</edit-render>
</template>

<script>
export default {
components: {
TableEdit: window.$func.fetchComponent("components/common/TableEdit.vue")
},
data () {
return {
id: null,
Expand Down
4 changes: 2 additions & 2 deletions views/admin/blacklist/list.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

<template>
<table-list title="mail Blacklist" :path_param="path_param" :search_fields="search_fields" :model="model"
:table_fields="table_fields"></table-list>
<table-render title="mail Blacklist" :path_param="path_param" :search_fields="search_fields" :model="model"
:table_fields="table_fields"></table-render>
</template>

<script>
Expand Down
7 changes: 2 additions & 5 deletions views/admin/contact/form.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<table-edit :path_param="path_param" :model="model">
<edit-render :path_param="path_param" :model="model">

<div class="row">
<div class="col-md-6">
Expand All @@ -14,14 +14,11 @@
</div>
</div>

</table-edit>
</edit-render>
</template>

<script>
export default {
components: {
TableEdit: window.$func.fetchComponent("components/common/TableEdit.vue")
},
data() {
return {
id: null,
Expand Down
4 changes: 2 additions & 2 deletions views/admin/contact/list.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

<template>
<table-list title="Mail Contact" :path_param="path_param" :search_fields="search_fields" :model="model"
:table_fields="table_fields"></table-list>
<table-render title="Mail Contact" :path_param="path_param" :search_fields="search_fields" :model="model"
:table_fields="table_fields"></table-render>
</template>

<script>
Expand Down
7 changes: 2 additions & 5 deletions views/admin/signature/form.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<table-edit :path_param="path_param" :model="model">
<edit-render :path_param="path_param" :model="model">
<div class="row">
<div class="col-md-6">
<FormKit v-model="model.id" label="Id" id="id" type="hidden" validation="required" />
Expand All @@ -13,14 +13,11 @@
</div>
</div>

</table-edit>
</edit-render>
</template>

<script>
export default {
components: {
TableEdit: window.$func.fetchComponent("components/common/TableEdit.vue")
},
data() {
return {
id: null,
Expand Down
4 changes: 2 additions & 2 deletions views/admin/signature/list.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

<template>
<table-list title="Mail Contact" :path_param="path_param" :search_fields="search_fields" :model="model"
:table_fields="table_fields"></table-list>
<table-render title="Mail Contact" :path_param="path_param" :search_fields="search_fields" :model="model"
:table_fields="table_fields"></table-render>
</template>

<script>
Expand Down
8 changes: 3 additions & 5 deletions views/admin/theme/form.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<table-edit :path_param="path_param" :model="model">
<edit-render :path_param="path_param" :model="model">

<div class="row">
<div class="col-md-6">
Expand All @@ -14,14 +14,12 @@
</div>
</div>

</table-edit>
</edit-render>
</template>

<script>
export default {
components: {
TableEdit: window.$func.fetchComponent("components/common/TableEdit.vue")
},
data () {
return {
id: null,
Expand Down
4 changes: 2 additions & 2 deletions views/admin/theme/list.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

<template>
<table-list title="Mail Theme" :path_param="path_param" :search_fields="search_fields" :model="model"
:table_fields="table_fields"></table-list>
<table-render title="Mail Theme" :path_param="path_param" :search_fields="search_fields" :model="model"
:table_fields="table_fields"></table-render>
</template>

<script>
Expand Down
8 changes: 3 additions & 5 deletions views/admin/whitelist/form.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<table-edit :path_param="path_param" :model="model">
<edit-render :path_param="path_param" :model="model">

<div class="row">
<div class="col-md-6">
Expand All @@ -11,14 +11,12 @@
</div>
</div>

</table-edit>
</edit-render>
</template>

<script>
export default {
components: {
TableEdit: window.$func.fetchComponent("components/common/TableEdit.vue")
},
data() {
return {
id: null,
Expand Down
4 changes: 2 additions & 2 deletions views/admin/whitelist/list.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

<template>
<table-list title="Mail Whitelist" :path_param="path_param" :search_fields="search_fields" :model="model"
:table_fields="table_fields"></table-list>
<table-render title="Mail Whitelist" :path_param="path_param" :search_fields="search_fields" :model="model"
:table_fields="table_fields"></table-render>
</template>

<script>
Expand Down

0 comments on commit 0573b35

Please sign in to comment.