-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow to set category for simulated estimation
- Loading branch information
1 parent
19ed237
commit 07fb47c
Showing
4 changed files
with
44 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,28 @@ | ||
<% if avg_weekly_earned_value.positive? %> | ||
<%= | ||
button_to "Save", | ||
project_epic_create_estimation_path(project_id: project_id, epic_id: epic_id), | ||
params: { | ||
avg_weekly_earned_value: avg_weekly_earned_value, | ||
category: category, | ||
expected_average: params[:expected_average], | ||
implementation_start_date: implementation_start_date, | ||
labels: params[:labels], | ||
last_completed_week_number: last_completed_week_number, | ||
remaining_earned_value: remaining_earned_value, | ||
remaining_weeks: remaining_weeks, | ||
remaining_weeks_with_uncertainty: remaining_weeks_with_uncertainty, | ||
total_points: total_points, | ||
uncertainty_level: params[:uncertainty_level] | ||
}, | ||
class: "btn btn-primary btn-sm" | ||
%> | ||
<%= form_with url: project_epic_create_estimation_path(project_id: project_id, epic_id: epic_id), method: :post do |form| %> | ||
<%= form.hidden_field :avg_weekly_earned_value, value: avg_weekly_earned_value %> | ||
<%= form.hidden_field :expected_average, value: params[:expected_average] %> | ||
<%= form.hidden_field :implementation_start_date, value: implementation_start_date %> | ||
<%= form.hidden_field :labels, value: params[:labels] %> | ||
<%= form.hidden_field :last_completed_week_number, value: last_completed_week_number %> | ||
<%= form.hidden_field :remaining_earned_value, value: remaining_earned_value %> | ||
<%= form.hidden_field :remaining_weeks, value: remaining_weeks %> | ||
<%= form.hidden_field :remaining_weeks_with_uncertainty, value: remaining_weeks_with_uncertainty %> | ||
<%= form.hidden_field :total_points, value: total_points %> | ||
<%= form.hidden_field :uncertainty_level, value: params[:uncertainty_level] %> | ||
|
||
<div class="row"> | ||
<% if category.blank? %> | ||
<div class="col-lg-8"> | ||
<%= form.select :category, EstimationCategory.dropdown_options, { include_blank: false }, { class: "form-control" } %> | ||
</div> | ||
<% else %> | ||
<%= form.hidden_field :category, value: category %> | ||
<% end %> | ||
|
||
<div class="col-lg-4"> | ||
<%= form.submit "Save", name: nil, class: "btn btn-primary btn-sm" %> | ||
</div> | ||
</div> | ||
<% end %> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters