Reviews some of the metadata options_as_html.
This commit is contained in:
parent
c468bc345d
commit
d288e0e1fc
|
@ -125,7 +125,7 @@ class Taxonomy extends Metadata_Type {
|
|||
|
||||
foreach($options as $option_label => $option_value) {
|
||||
|
||||
if ( $option_value != '' ) {
|
||||
if ( $option_value != '' && $option_label != 'taxonomy' ) {
|
||||
$options_as_html .= '<div class="field"><div class="label">' . ( isset($form_labels[$option_label]) && isset($form_labels[$option_label]['title']) ? $form_labels[$option_label]['title'] : $option_label ) .'</div>';
|
||||
|
||||
$readable_option_value = '';
|
||||
|
|
|
@ -24,7 +24,16 @@
|
|||
v-if="insertOptions != ''"
|
||||
class="field">
|
||||
<div class="label">{{ $i18n.get('label_insert_options') }}</div>
|
||||
<div class="value">{{ insertOptions }}</div>
|
||||
<div class="value">
|
||||
{{ insertOptions }}
|
||||
<span
|
||||
v-if="metadatum.multiple === 'yes' &&
|
||||
metadatum.cardinality != undefined &&
|
||||
metadatum.cardinality != 0 &&
|
||||
metadatum.cardinality != ''">
|
||||
({{ $i18n.getWithVariables('label_maximum_of_%s_values', [ metadatum.cardinality ]) }})
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
v-if="metadatum.options_as_html"
|
||||
|
@ -94,6 +103,9 @@ export default {
|
|||
.value {
|
||||
font-size: 0.9em;
|
||||
}
|
||||
&:only-child {
|
||||
column-span: all;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -593,6 +593,7 @@ return apply_filters( 'tainacan-admin-i18n', [
|
|||
'label_back_to_related_item' => __( 'Back to related item', 'tainacan'),
|
||||
'label_options_of_the_%s_metadata_type' => __( 'Options of the %s metadata type', 'tainacan'),
|
||||
'label_advanced_metadata_options' => __( 'Advanced metadata options', 'tainacan'),
|
||||
'label_maximum_of_%s_values' => __( 'maximum of %s values', 'tainacan'),
|
||||
|
||||
// Instructions. More complex sentences to guide user and placeholders
|
||||
'instruction_delete_selected_collections' => __( 'Delete selected collections', 'tainacan' ),
|
||||
|
|
Loading…
Reference in New Issue