ManageIQ/manageiq-ui-classic

View on GitHub
app/views/catalog/_form_details_info.html.haml

Summary

Maintainability
Test Coverage
- action = @edit[:new][:service_type] == "composite" ? "st_form_field_changed" : "atomic_form_field_changed"
- url_one_trans = url_for_only_path(:action => action, :id => (@edit[:rec_id] || "new"), :transOne => '1')

= text_area_tag("long_description", @edit[:new][:long_description],
  :size => "350x600", :style => "display:none;")
:javascript
  ManageIQ.oneTransition.oneTrans = 0;

= react('MarkdownPreview',
                          {:content => @edit[:new][:long_description],
                           :type => 'CATALOG_EDIT_LONG_DESCRIPTION',
                           :url => url_one_trans})