Remove external project ID
If we _do_ integrate with an external service, a different plugin should add that. Resolves #2164
This commit is contained in:
parent
62d924dadc
commit
b93204d126
|
@ -50,7 +50,6 @@ class JobsController < ApplicationController
|
||||||
:ends_on,
|
:ends_on,
|
||||||
:project_id,
|
:project_id,
|
||||||
:budget,
|
:budget,
|
||||||
:external_project_id,
|
|
||||||
:name,
|
:name,
|
||||||
:description,
|
:description,
|
||||||
time_budgets_attributes: [:id, :activity_id, :hours, :job_id, :_destroy]
|
time_budgets_attributes: [:id, :activity_id, :hours, :job_id, :_destroy]
|
||||||
|
|
|
@ -19,10 +19,6 @@
|
||||||
|
|
||||||
<%= f.hidden_field :project_id, value: @job.project.id %>
|
<%= f.hidden_field :project_id, value: @job.project.id %>
|
||||||
|
|
||||||
<p>
|
|
||||||
<%= f.label :external_project_id %>
|
|
||||||
<%= f.number_field :external_project_id %>
|
|
||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>Budget</legend>
|
<legend>Budget</legend>
|
||||||
<%= f.fields_for :time_budgets do |ff| %>
|
<%= f.fields_for :time_budgets do |ff| %>
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
<td><%= format_date(job.starts_on) %></td>
|
<td><%= format_date(job.starts_on) %></td>
|
||||||
<td><%= format_date(job.ends_on) %></td>
|
<td><%= format_date(job.ends_on) %></td>
|
||||||
<td><%= job.project_id %></td>
|
<td><%= job.project_id %></td>
|
||||||
<td><%= job.external_project_id %></td>
|
|
||||||
<td>
|
<td>
|
||||||
<%= l_hours_short(job.total_time_budget) %>
|
<%= l_hours_short(job.total_time_budget) %>
|
||||||
</td>
|
</td>
|
||||||
|
|
|
@ -18,8 +18,6 @@
|
||||||
<div class="value"><%= format_date(@job.starts_on) %></div>
|
<div class="value"><%= format_date(@job.starts_on) %></div>
|
||||||
<div class="label">Ends on:</div>
|
<div class="label">Ends on:</div>
|
||||||
<div class="value"><%= format_date(@job.starts_on) %></div>
|
<div class="value"><%= format_date(@job.starts_on) %></div>
|
||||||
<div class="label">External project ID:</div>
|
|
||||||
<div class="value"><%= @job.external_project_id %></div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="splitcontentright">
|
<div class="splitcontentright">
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
class RemoveExternalProjectIdFromJobs < ActiveRecord::Migration[6.1]
|
||||||
|
def change
|
||||||
|
remove_column :jobs, :external_project_id, :integer
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in New Issue