diff --git a/arches_lingo/src/arches_lingo/components/generic/LabelEditor.vue b/arches_lingo/src/arches_lingo/components/generic/LabelEditor.vue new file mode 100644 index 00000000..ce9301af --- /dev/null +++ b/arches_lingo/src/arches_lingo/components/generic/LabelEditor.vue @@ -0,0 +1,65 @@ + + + + + {{ $gettext("Label") }} + + + {{ $gettext("Label Language") }} + + + {{ $gettext("Label Type") }} + + + {{ $gettext("Label Status") }} + + + {{ $gettext("Label Metatype") }} + + + {{ $gettext("Label Temporal Validity Start") }} + + + {{ $gettext("Label Temporal Validity End") }} + + + {{ $gettext("Contributor") }} + + + {{ $gettext("Sources") }} + + + {{ $gettext("Warrant Type") }} + diff --git a/arches_lingo/src/arches_lingo/components/scheme/report/SchemeLabel.vue b/arches_lingo/src/arches_lingo/components/scheme/report/SchemeLabel.vue index cf8c8116..e6e5eab1 100644 --- a/arches_lingo/src/arches_lingo/components/scheme/report/SchemeLabel.vue +++ b/arches_lingo/src/arches_lingo/components/scheme/report/SchemeLabel.vue @@ -2,6 +2,7 @@ import { useGettext } from "vue3-gettext"; import { onMounted, ref } from "vue"; import { useRoute } from "vue-router"; +import { useToast } from "primevue/usetoast"; import { EDIT, @@ -10,20 +11,18 @@ import { NEW, VIEW, } from "@/arches_lingo/constants.ts"; +import { deleteSchemeLabelTile, fetchSchemeLabel } from "@/arches_lingo/api.ts"; +import SchemeReportSection from "@/arches_lingo/components/scheme/report/SchemeSection.vue"; +import MetaStringViewer from "@/arches_lingo/components/generic/MetaStringViewer.vue"; +import ResourceInstanceRelationships from "@/arches_lingo/components/generic/ResourceInstanceRelationships.vue"; +import ReferenceDatatype from "@/arches_lingo/components/generic/ReferenceDatatype.vue"; + import type { AppellativeStatus, DataComponentMode, MetaStringText, SchemeInstance, } from "@/arches_lingo/types.ts"; -import { deleteSchemeLabelTile, fetchSchemeLabel } from "@/arches_lingo/api.ts"; -import SchemeReportSection from "@/arches_lingo/components/scheme/report/SchemeSection.vue"; -import MetaStringViewer from "@/arches_lingo/components/generic/MetaStringViewer.vue"; -import ResourceInstanceRelationships from "@/arches_lingo/components/generic/ResourceInstanceRelationships.vue"; -import ControlledListItem from "@/arches_lingo/components/generic/ControlledListItem.vue"; -import { useToast } from "primevue/usetoast"; - -const schemeInstance = ref({}); const { $gettext } = useGettext(); const toast = useToast(); const route = useRoute(); @@ -39,12 +38,16 @@ withDefaults( defineProps<{ mode?: DataComponentMode; tileId?: string | null; + args?: Array; + // todo for Johnathan - if obj empty, create new tile + // if obj has values, load those values into the form }>(), { mode: VIEW, tileId: null, // editor arg specifying what tile to operate on. }, ); +const schemeInstance = ref(); defineExpose({ getSectionValue }); @@ -141,22 +144,22 @@ function editSectionValue(tileId: string) { - - + - - + @@ -181,7 +184,14 @@ function editSectionValue(tileId: string) { - abc + + + + +