Skip to content

Commit

Permalink
Adds class and id to metadata section wrappers in the edition forms. #…
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuswetah committed May 13, 2022
1 parent a9f0b74 commit 3659211
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
8 changes: 6 additions & 2 deletions src/views/admin/components/edition/item-edition-form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,9 @@

<div
v-for="(metadataSection, sectionIndex) of metadataSections"
:key="sectionIndex">
:key="sectionIndex"
:class="'metadata-section-slug-' + metadataSection.slug"
:id="'metadata-section-id-' + metadataSection.id">
<div class="metadata-section-header section-label">
<span
class="collapse-handle"
Expand All @@ -323,7 +325,9 @@
</span>
</div>
<transition name="filter-item">
<div v-show="metadataSectionCollapses[sectionIndex]">
<div
class="metadata-section-metadata-list"
v-show="metadataSectionCollapses[sectionIndex]">
<tainacan-form-item
v-for="(itemMetadatum, index) of metadatumList.filter(anItemMetadatum => anItemMetadatum.metadatum.metadata_section_id == metadataSection.id)"
:key="index"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,9 @@

<div
v-for="(metadataSection, sectionIndex) of metadataSections"
:key="sectionIndex">
:key="sectionIndex"
:class="'metadata-section-slug-' + metadataSection.slug"
:id="'metadata-section-id-' + metadataSection.id">
<div class="metadata-section-header section-label">
<span
class="collapse-handle"
Expand All @@ -396,7 +398,9 @@
</span>
</div>
<transition name="filter-item">
<div v-show="metadataSectionCollapses[sectionIndex]">
<div
class="metadata-section-metadata-list"
v-show="metadataSectionCollapses[sectionIndex]">
<template v-for="(itemMetadatum, index) of metadatumList.filter(anItemMetadatum => anItemMetadatum.metadatum.metadata_section_id == metadataSection.id)">
<tainacan-form-item
:key="index"
Expand Down Expand Up @@ -885,7 +889,7 @@ export default {
}
.field {
padding: 12px 0px 12px 34px;
margin-left: 24px;
margin-left: 16px;
}
.columns {
Expand Down

0 comments on commit 3659211

Please sign in to comment.