X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/411ce5bc5bf433c976f55fe001fe5979456207f2..23721458d7ec8c44c4b54f45eb7d2a4e6d7cdce1:/apps/workbench/app/helpers/application_helper.rb diff --git a/apps/workbench/app/helpers/application_helper.rb b/apps/workbench/app/helpers/application_helper.rb index a05e6ba268..d02d058e3a 100644 --- a/apps/workbench/app/helpers/application_helper.rb +++ b/apps/workbench/app/helpers/application_helper.rb @@ -200,7 +200,9 @@ module ApplicationHelper "id" => span_id, :class => "editable #{is_textile?( object, attr ) ? 'editable-textile' : ''}" }.merge(htmloptions).merge(ajax_options) - edit_button = raw('') + edit_tiptitle = 'edit' + edit_tiptitle = 'Warning: do not use hyphens in the repository name as they will be stripped' if (object.class.to_s == 'Repository' and attr == 'name') + edit_button = raw('') if htmloptions[:btnplacement] == :left edit_button + ' ' + span_tag else @@ -307,9 +309,7 @@ module ApplicationHelper end end - if dataclass == 'number' or attrvalue.is_a? Fixnum or attrvalue.is_a? Float - datatype = 'number' - elsif attrvalue.is_a? String + if attrvalue.is_a? String datatype = 'text' elsif attrvalue.is_a?(Array) or dataclass.andand.is_a?(Class) # TODO: find a way to edit with x-editable