Displaying filter formula errors
This commit is contained in:
parent
10325c9c39
commit
de395ad1e0
@ -2,6 +2,8 @@
|
||||
locals: {url: filter_project_ingredients_path(@project)} %>
|
||||
|
||||
<% if @ingredients.any? { |i| i.persisted? } %>
|
||||
<%= error_messages_for @formula_q.formula %>
|
||||
|
||||
<table class="list">
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -2,6 +2,8 @@
|
||||
locals: {url: filter_project_measurements_path(@project)} %>
|
||||
|
||||
<% if @measurements.any? { |m| m.persisted? } %>
|
||||
<%= error_messages_for @formula_q.formula %>
|
||||
|
||||
<table class="list">
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -4,6 +4,8 @@
|
||||
<% if @measurements.any? %>
|
||||
<%= render partial: 'measurements/options' %>
|
||||
|
||||
<%= error_messages_for @formula_q.formula, *@quantities.map { |q| q.formula } %>
|
||||
|
||||
<table class="readouts list odd-even">
|
||||
<thead>
|
||||
<tr>
|
||||
|
Reference in New Issue
Block a user