ManageIQ/manageiq-ui-classic

View on GitHub
app/views/configuration/timeprofile_edit.html.haml

Summary

Maintainability
Test Coverage
- if @timeprofile.id.nil?
  = react('SettingsTimeProfileForm', :timeProfileId => "", :timezones => @all_timezones, :action => @timeprofile_action, :userid => @userid)
- else
  = react('SettingsTimeProfileForm', :timeProfileId => @timeprofile.id.to_s, :timezones => @all_timezones, :action => @timeprofile_action, :userid => @userid)
  = render :partial => 'timeprofile_form'