[views] Add help to 'automagic' complex keyword form fields
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 16 Mar 2017 11:29:22 +0100
changeset 2499 4346a9cd582e
parent 2498 1b26f8fc74f0
child 2500 3abbf92c7264
[views] Add help to 'automagic' complex keyword form fields to make it clearer they depend on values previously selected. Related to extranet #12351787
cubicweb_seda/i18n/en.po
cubicweb_seda/i18n/fr.po
cubicweb_seda/views/archiveunit.py
--- a/cubicweb_seda/i18n/en.po	Thu Mar 16 12:17:23 2017 +0100
+++ b/cubicweb_seda/i18n/en.po	Thu Mar 16 11:29:22 2017 +0100
@@ -7826,6 +7826,12 @@
 msgid "seda_writer_to_object"
 msgstr ""
 
+msgid "select a type to filter out unrelated vocabularies"
+msgstr ""
+
+msgid "select first a vocabulary then type here to prompt auto-completion"
+msgstr ""
+
 msgid "service_level"
 msgstr ""
 
--- a/cubicweb_seda/i18n/fr.po	Thu Mar 16 12:17:23 2017 +0100
+++ b/cubicweb_seda/i18n/fr.po	Thu Mar 16 11:29:22 2017 +0100
@@ -7847,6 +7847,12 @@
 msgid "seda_writer_to_object"
 msgstr ""
 
+msgid "select a type to filter out unrelated vocabularies"
+msgstr "sélectionnez un type pour filtrer les vocabulaires correspondants"
+
+msgid "select first a vocabulary then type here to prompt auto-completion"
+msgstr "sélectionnez un vocabulaire avant de taper dans ce champ pour activer la complétion automatique"
+
 msgid "service_level"
 msgstr "valeur"
 
--- a/cubicweb_seda/views/archiveunit.py	Thu Mar 16 12:17:23 2017 +0100
+++ b/cubicweb_seda/views/archiveunit.py	Thu Mar 16 11:29:22 2017 +0100
@@ -591,7 +591,10 @@
 
 afs.tag_subject_of(('SEDAKeywordReference', 'seda_keyword_reference_to_scheme', '*'),
                    'main', 'attributes')
+affk.set_field_kwargs('SEDAKeywordReference', 'seda_keyword_reference_to_scheme',
+                      help=_('select a type to filter out unrelated vocabularies'))
 affk.set_field_kwargs('SEDAKeywordReference', 'seda_keyword_reference_to',
+                      help=_('select first a vocabulary then type here to prompt auto-completion'),
                       widget=widgets.ConceptAutoCompleteWidget(
                           slave_name='seda_keyword_reference_to',
                           master_name='seda_keyword_reference_to_scheme'))