From 52aefd10f1cfef897e906c287c703bb87b68226e Mon Sep 17 00:00:00 2001 From: Dani Macho Date: Fri, 10 Oct 2014 09:48:28 +0200 Subject: [PATCH] added tag tip in text box to enter commas --- app/assets/javascripts/{tags.js.coffee => tags.js} | 0 app/views/shared/_post_form.html.haml | 2 +- config/locales/es.yml | 4 +++- 3 files changed, 4 insertions(+), 2 deletions(-) rename app/assets/javascripts/{tags.js.coffee => tags.js} (100%) diff --git a/app/assets/javascripts/tags.js.coffee b/app/assets/javascripts/tags.js similarity index 100% rename from app/assets/javascripts/tags.js.coffee rename to app/assets/javascripts/tags.js diff --git a/app/views/shared/_post_form.html.haml b/app/views/shared/_post_form.html.haml index bee5146..649ed3e 100644 --- a/app/views/shared/_post_form.html.haml +++ b/app/views/shared/_post_form.html.haml @@ -31,7 +31,7 @@ = f.input :description = f.association :category - = f.input :tag_list, as: :string, placeholder: 'search tag', input_html: { class: "form-control", "ng-controller" => "TypeaheadCtrl", "ng-model" => "asyncSelected", "typeahead" => "tag for tag in getTags($viewValue) | filter:$viewValue | limitTo:8" , "typeahead-loading" => "loadingTags"} + = f.input :tag_list, as: :string, :placeholder => t('application.tips.entertag'), input_html: { class: "form-control", "ng-controller" => "TypeaheadCtrl", "ng-model" => "asyncSelected", "typeahead" => "tag for tag in getTags($viewValue) | filter:$viewValue | limitTo:8" , "typeahead-loading" => "loadingTags"} %i{"ng-show" => "loadingTags", :class => "glyphicon glyphicon-refresh"} - if current_user.manages? current_organization diff --git a/config/locales/es.yml b/config/locales/es.yml index 2e47df2..77d1bc1 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -96,7 +96,9 @@ es: categories: Servicios organizations: Organizaciones statistics: Estadísticas - + tips: + entertag: Entre etiquetas separadas por comas + # views/users/index... users: