Better label and mapping header.
This commit is contained in:
parent
b6d959ee9c
commit
ce2e525838
|
@ -37,10 +37,17 @@
|
|||
v-if="importerSourceInfo != undefined &&
|
||||
importerSourceInfo != null &&
|
||||
!isLoading">
|
||||
<template v-if="importerSourceInfo.source_metadata.length > 0 || (importerSourceInfo.source_special_fields && importerSourceInfo.source_special_fields.length > 0)">
|
||||
<p class="mapping-header-label is-pulled-left">{{ $i18n.get('label_from_source_collection') }}</p>
|
||||
<p class="mapping-header-label is-pulled-right">{{ $i18n.get('label_to_target_collection') }}</p>
|
||||
</template>
|
||||
<div
|
||||
class="mapping-header"
|
||||
v-if="importerSourceInfo.source_metadata.length > 0 || (importerSourceInfo.source_special_fields && importerSourceInfo.source_special_fields.length > 0)">
|
||||
<p>{{ $i18n.get('label_from_source_collection') }}</p>
|
||||
<hr>
|
||||
<span class="icon">
|
||||
<i class="tainacan-icon tainacan-icon-pointer" />
|
||||
</span>
|
||||
<hr>
|
||||
<p>{{ $i18n.get('label_to_target_collection') }}</p>
|
||||
</div>
|
||||
<div
|
||||
class="source-metadatum"
|
||||
v-for="(sourceMetadatum, index) of importerSourceInfo.source_metadata"
|
||||
|
@ -847,11 +854,33 @@ export default {
|
|||
padding: 1em 3em;
|
||||
}
|
||||
|
||||
.mapping-header-label {
|
||||
.mapping-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
color: var(--tainacan-info-color);
|
||||
font-size: 0.875em;
|
||||
font-weight: bold;
|
||||
margin: 18px 0 6px 0;
|
||||
|
||||
p {
|
||||
white-space: nowrap;
|
||||
}
|
||||
hr {
|
||||
width: 100%;
|
||||
margin-left: 12px;
|
||||
margin-right: 12px;
|
||||
height: 1px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 768px) {
|
||||
p {
|
||||
white-space: normal;
|
||||
}
|
||||
hr {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.modal .animation-content {
|
||||
|
|
|
@ -306,7 +306,7 @@ return apply_filters( 'tainacan-admin-i18n', [
|
|||
'label_create_metadatum' => __( 'Create metadatum', 'tainacan' ),
|
||||
'label_select_metadatum_type' => __( 'Select a metadatum type', 'tainacan' ),
|
||||
'label_add_more_metadata' => __( 'Add more metadata', 'tainacan' ),
|
||||
'label_from_source_collection' => __( 'From source collection', 'tainacan' ),
|
||||
'label_from_source_collection' => __( 'From source file', 'tainacan' ),
|
||||
'label_to_target_collection' => __( 'To target collection', 'tainacan' ),
|
||||
'label_add_value' => __( 'Add value', 'tainacan' ),
|
||||
'label_remove_value' => __( 'Remove value', 'tainacan' ),
|
||||
|
|
Loading…
Reference in New Issue