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