Merge branch 'master' into 4523-search-index
[arvados.git] / apps / workbench / app / helpers / application_helper.rb
index e003b2cb0ab9d5e86ddd73ff3bb5093c6ac51f4a..11c55c3f77bed497566b124c34d6bb69c6d0ee0a 100644 (file)
@@ -1,6 +1,4 @@
 module ApplicationHelper
-  include VersionHelper
-
   def current_user
     controller.current_user
   end
@@ -162,10 +160,10 @@ module ApplicationHelper
     end
 
     input_type = 'text'
-    case object.class.attribute_info[attr.to_sym].andand[:type]
-    when 'text'
+    attrtype = object.class.attribute_info[attr.to_sym].andand[:type]
+    if attrtype == 'text' or attr == 'description'
       input_type = 'textarea'
-    when 'datetime'
+    elsif attrtype == 'datetime'
       input_type = 'date'
     else
       input_type = 'text'