74 lines
2.6 KiB
HTML
74 lines
2.6 KiB
HTML
{% load i18n %}
|
|
|
|
<div>
|
|
<div class="card mt-4 pt-2 ps-lg-2">
|
|
<h5 class="card-header">{% trans "Item" %} [[ this.$route.params.id ]]</h5>
|
|
<div class="card-body">
|
|
|
|
<v-container fluid v-if="object">
|
|
<template v-for="field in headers">
|
|
<v-row v-if="field.details">
|
|
<v-col cols="4">
|
|
<v-subheader>[[ field.text ]]</v-subheader>
|
|
</v-col>
|
|
<v-col cols="8">
|
|
<v-text-field :value="object[field.value]" readonly dense></v-text-field>
|
|
</v-col>
|
|
</v-row>
|
|
</template>
|
|
</v-container>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card mt-4 pt-2 ps-lg-2">
|
|
<h5 class="card-header">{% trans "Properties" %}</h5>
|
|
<div class="card-body">
|
|
<LinkedPropertyList
|
|
:items="linked_properties"
|
|
:items_headers="linked_properties_headers"
|
|
:items_relations="{'property': all_properties}"
|
|
:hidden_fields="['name', 'description', 'custom_identifier']"
|
|
:non_editable_fields="['item']"
|
|
show_item="property"
|
|
group_by="type"
|
|
@deleteItem="deleteLinkedProperty"
|
|
@createItem="createLinkedProperty"
|
|
@editItem="editLinkedProperty"
|
|
></LinkedPropertyList>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card mt-4 pt-2 ps-lg-2">
|
|
<h5 class="card-header">{% trans "Children" %}</h5>
|
|
<div class="card-body">
|
|
<ItemRelationList
|
|
:items="children"
|
|
:items_headers="children_headers"
|
|
:hidden_fields="['parent__name']"
|
|
:items_relations="{'parent': [object], 'child': all_items}"
|
|
group_by="type__name"
|
|
@deleteItem="deleteRelation"
|
|
@createItem="createRelation"
|
|
@editItem="editRelation"
|
|
></ItemRelationList>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card mt-4 pt-2 ps-lg-2">
|
|
<h5 class="card-header">{% trans "Parents" %}</h5>
|
|
<div class="card-body">
|
|
<ItemRelationList
|
|
:items="parents"
|
|
:items_headers="children_headers"
|
|
:hidden_fields="['child__name']"
|
|
:items_relations="{'child': [object], 'parent': all_items}"
|
|
group_by="type__name"
|
|
@deleteItem="deleteRelation"
|
|
@createItem="createRelation"
|
|
@editItem="editRelation"
|
|
></ItemRelationList>
|
|
</div>
|
|
</div>
|
|
</div>
|