Better labels and placeholders for autocomplete and taginpu.
This commit is contained in:
parent
9fc3da4c6c
commit
f6a1b9204a
|
@ -346,7 +346,11 @@ return apply_filters( 'tainacan-admin-i18n', [
|
|||
'info_updated_at' => __( 'Updated at', 'tainacan' ),
|
||||
'info_editing_metadata_values' => __( 'Editing metadata values...', 'tainacan' ),
|
||||
'info_updating_metadata_values' => __( 'Updating metadata values...', 'tainacan' ),
|
||||
'info_type_to_search' => __( 'Type to search...', 'tainacan' ),
|
||||
'info_type_to_add_items' => __( 'Add items...', 'tainacan' ),
|
||||
'info_type_to_search_items' => __( 'Search items...', 'tainacan' ),
|
||||
'info_type_to_add_terms' => __( 'Add terms...', 'tainacan' ),
|
||||
'info_type_to_search_metadata' => __( 'Search metadata...', 'tainacan' ),
|
||||
'info_type_to_add_metadata' => __( 'Add metadata...', 'tainacan' ),
|
||||
|
||||
// Tainacan Metadatum Types
|
||||
'tainacan-text' => __( 'Text', 'tainacan' ),
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
@input="search"
|
||||
field="label"
|
||||
@select="option => setResults(option) "
|
||||
:placeholder="$i18n.get('info_type_to_search')">
|
||||
:placeholder="(type == 'Tainacan\\Metadata_Types\\Relationship') ? $i18n.get('info_type_to_search_items') : $i18n.get('info_type_to_search_metadata')">
|
||||
<template slot-scope="props">
|
||||
<div class="media">
|
||||
<div
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
field="label"
|
||||
attached
|
||||
@typing="search"
|
||||
:placeholder="$i18n.get('info_type_to_search')"/>
|
||||
:placeholder="(type == 'Tainacan\\Metadata_Types\\Relationship') ? $i18n.get('info_type_to_add_items') : $i18n.get('info_type_to_add_metadata')"/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
attached
|
||||
:class="{'has-selected': selected != undefined && selected != []}"
|
||||
@typing="search"
|
||||
:placeholder="$i18n.get('info_type_to_search')" />
|
||||
:placeholder="$i18n.get('info_type_to_add_terms')" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
Loading…
Reference in New Issue