Added test_create_binding_target
Goals (incl. binding) are required to have targets Plugin fixtures are available through accessors
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<% if User.current.allowed_to?(:manage_common, @project) %>
|
||||
<% if User.current.allowed_to?(:manage_body_trackers, @project) %>
|
||||
<%= link_to t(".link_new_target"),
|
||||
new_project_target_path(@project, @view_params),
|
||||
{remote: true, class: 'icon icon-add'} %>
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
<div id='goal-form' class="tabular">
|
||||
<% if goal.persisted? || goal.is_binding? %>
|
||||
<p><%= render partial: 'goals/show_form', locals: {goal: goal} %></p>
|
||||
<%#= t '.effective_from' %>
|
||||
<p><%= f.date_field :effective_from, disabled: !goal.is_binding? %></p>
|
||||
<% else %>
|
||||
<%= render partial: 'goals/form', locals: {goal: goal} %>
|
||||
|
||||
Reference in New Issue
Block a user