Merge branch 'master' into 4523-search-index
[arvados.git] / apps / workbench / app / helpers / application_helper.rb
index f1502afee10cf02edece673f9d05c26275ee3fcc..11c55c3f77bed497566b124c34d6bb69c6d0ee0a 100644 (file)
@@ -160,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'