Better labels and placeholders for autocomplete and taginpu.

This commit is contained in:
Mateus Machado Luna 2018-07-05 14:43:06 -03:00
parent 9fc3da4c6c
commit f6a1b9204a
4 changed files with 8 additions and 4 deletions

View File

@ -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' ),

View File

@ -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

View File

@ -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>

View File

@ -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>