2872: Fix auto-disable/enable "Run" button on pipeline page.
[arvados.git] / apps / workbench / app / helpers / application_helper.rb
index 552e79e699739f4f1e6b02390304c6dcff55cf43..fd13bc4a8aa2f7cb9e72185d7839377336901e93 100644 (file)
@@ -267,7 +267,9 @@ module ApplicationHelper
          }.to_json,
         })
       return content_tag('div', :class => 'input-group') do
-        html = text_field_tag(dn, display_value, :class => 'form-control')
+        html = text_field_tag(dn, display_value,
+                              :class =>
+                              "form-control #{'required' if required}")
         html + content_tag('span', :class => 'input-group-btn') do
           link_to('Choose',
                   modal_path,