Sha256: 7fe2c3e48f46fd5b2f4d0276bd7b89fa8ea14a005587c3d17e475b4eea489cda

Contents?: true

Size: 1.16 KB

Versions: 10

Compression:

Stored size: 1.16 KB

Contents

<div class='container-fluid'>
  <div class='lead'>Edit <%= @job._type %></div>

  <% if @job.errors.present? %>
    <div class='alert alert-alert'>
      Failed to save the changes!

      <% @job.errors.messages.each_pair do |field, message| %>
        <div class='message'><%= field.to_s.humanize %> is not valid: <%= message.join(', ') %></div>
      <% end %>
    </div>
  <% end %>

  <%= form_for(@job, as: :job, url: job_path(@job)) do |f| %>
    <div class='row'>
      <div class='col-md-12'>
        <div class='arguments'>
          <div class='job_arguments form-group'></div>

          <div class='form-group'>
            <% @job.class.user_editable_fields.each do |property_name| %>
              <%= f.label property_name.to_s %>
              <%= editable_field_html(@job.class, property_name, @job.send(property_name), f) %>
            <% end %>
          </div>
        </div>
      </div>
    </div>

    <div class='row'>
      <div class='col-md-12'>
        <div class='buttons'>
          <%= f.submit 'Save', class: 'btn btn-primary' %>
          <%= link_to 'Cancel', :back, class: 'btn btn-default' %>
        </div>
      </div>
    </div>
  <% end %>
</div>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rocketjob_mission_control-5.0.1 app/views/rocket_job_mission_control/jobs/edit.html.erb
rocketjob_mission_control-5.0.0 app/views/rocket_job_mission_control/jobs/edit.html.erb
rocketjob_mission_control-5.0.0.beta1 app/views/rocket_job_mission_control/jobs/edit.html.erb
rocketjob_mission_control-4.3.0 app/views/rocket_job_mission_control/jobs/edit.html.erb
rocketjob_mission_control-4.2.1 app/views/rocket_job_mission_control/jobs/edit.html.erb
rocketjob_mission_control-4.2.0 app/views/rocket_job_mission_control/jobs/edit.html.erb
rocketjob_mission_control-4.1.0 app/views/rocket_job_mission_control/jobs/edit.html.erb
rocketjob_mission_control-4.0.0 app/views/rocket_job_mission_control/jobs/edit.html.erb
rocketjob_mission_control-3.2.0 app/views/rocket_job_mission_control/jobs/edit.html.erb
rocketjob_mission_control-3.1.0 app/views/rocket_job_mission_control/jobs/edit.html.erb