<% if @dirmon_entry.job_class %>
Job Properties
<%= f.fields_for :properties do |properties| %>
<% @dirmon_entry.job_class.user_editable_fields.each do |property_name| %>
<%= properties.label property_name.to_s %>
<%= editable_field_html(@dirmon_entry.job_class, property_name, @dirmon_entry.properties[property_name], properties, true) %>
<% end %>
<% end %>
<% end %>
<%= f.submit action, class: 'btn btn-primary' %>
<%= link_to 'cancel', :back, class: 'btn btn-default' %>
<% if action == :create %>
<%= button_tag 'properties',
type: 'button',
class: 'btn btn-default',
id: 'properties',
data: { url: rocket_job_mission_control.new_dirmon_entry_path } %>
<% end %>