Added Target create action
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<%= fields_for 'target[goal_attributes]', goal do |ff| %>
|
||||
<%= fields_for 'goal', goal do |ff| %>
|
||||
<label><%= l(:field_goal) %><span class="required"> *</span></label>
|
||||
<%= ff.select :id,
|
||||
options_from_collection_for_select(@project.goals, :id, :name, goal.id),
|
||||
|
||||
2
app/views/goals/show.js.erb
Normal file
2
app/views/goals/show.js.erb
Normal file
@@ -0,0 +1,2 @@
|
||||
$('#goal-form').html('<%= j render partial: 'goals/show_form', locals: {goal: @goal} %>');
|
||||
$('input#target_effective_from').prop('disabled', <%= @goal.is_binding? %>)
|
||||
Reference in New Issue
Block a user