diff options
| author | Marc Florisson | 2014-03-04 09:24:05 +0100 |
|---|---|---|
| committer | Marc Florisson | 2014-03-04 09:26:18 +0100 |
| commit | 3587b4b60cdcc3a832b5694b9cb0d7b7d4e7853e (patch) | |
| tree | 6d0bde8178b2b1a8a70993e415b5212732a6f416 /app/views/group_of_lines | |
| parent | 5c901c9f3d003c9b122925013e6155fdfa1f6dff (diff) | |
| download | chouette-core-3587b4b60cdcc3a832b5694b9cb0d7b7d4e7853e.tar.bz2 | |
fix tokenInput translations, Mantis #24416
Diffstat (limited to 'app/views/group_of_lines')
| -rw-r--r-- | app/views/group_of_lines/_form.erb | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/app/views/group_of_lines/_form.erb b/app/views/group_of_lines/_form.erb index 087d90a9f..329d3c619 100644 --- a/app/views/group_of_lines/_form.erb +++ b/app/views/group_of_lines/_form.erb @@ -1,11 +1,11 @@ <%= semantic_form_for [@referential, @group_of_line] do |form| %> - <%= form.inputs do %> - <%= form.input :name %> + <%= form.inputs do %> + <%= form.input :name %> <%= form.input :comment %> - <%= form.input :objectid, :required => !@group_of_line.new_record?, :input_html => { :disabled => !@group_of_line.new_record? } %> + <%= form.input :objectid, :required => !@group_of_line.new_record?, :input_html => { :disabled => !@group_of_line.new_record? } %> <% end %> - <%= form.inputs do %> + <%= form.inputs do %> <%= form.input :line_tokens, :label => t('.lines'), :as => :text, :input_html => { :"data-pre" => ( @group_of_line.lines.map { |line| { :id => line.id, :name => line.published_name } } ).to_json } %> <% end %> @@ -17,11 +17,14 @@ <script> $(function() { - $( "#group_of_line_line_tokens" ).tokenInput('<%= name_filter_referential_lines_path(@referential, :format => :json) %>', { - crossDomain: false, + $( "#group_of_line_line_tokens" ).tokenInput('<%= name_filter_referential_lines_path(@referential, :format => :json) %>', { + crossDomain: false, prePopulate: $('#line_tokens').data('pre'), minChars: 1, preventDuplicates: true, + hintText: '<%= t('search_hint') %>', + noResultsText: '<%= t('no_result_text') %>', + searchingText: '<%= t('searching_term') %>' }); }); </script> |
