Skip to content

Commit

Permalink
feat(fields): added geo point field
Browse files Browse the repository at this point in the history
* feat(map): added point name via reverse geolocation

* feat(map): handling multiple points

* feat(map): added Form inside component for extra fields handling

* fix(map): removed translatable and langs props

* fix(map): added label prop. Fixed listexample detail page
  • Loading branch information
AndreaTuci authored Jan 24, 2024
1 parent 76c9e8a commit ba0dd0c
Show file tree
Hide file tree
Showing 4 changed files with 246 additions and 52 deletions.
21 changes: 13 additions & 8 deletions example/pages/listexample/_detail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,19 @@ export default {
},
{ label: this.$t("content"), value: "content", type: "editor" },
{ label: "Color", value: "meta.color", synci18n: true, type: "color" },
{
label: "map",
value: "meta.map",
type: "map",
attrs: {
multiple: true,
fields: [
{ value: "store_name", label: "Store name", class: "col-sm-6" },
{ value: "contact", label: "Contact", class: "col-sm-6" },
],
},
synci18n: true,
},
{
group: "Seo",
fields: [
Expand Down Expand Up @@ -343,13 +356,6 @@ export default {
},
],
sidenav: [
{
label: this.$t("categories"),
value: "categories",
synci18n: true,
type: "m2m",
attrs: { endpoint: "api/camomilla/categories", itemText: "title" },
},
{
group: "Status",
fields: [
Expand Down Expand Up @@ -421,7 +427,6 @@ export default {
type: "media",
synci18n: true,
},
{ label: "map", value: "meta.map", type: "map", synci18n: true },
],
};
},
Expand Down
Loading

0 comments on commit ba0dd0c

Please sign in to comment.