1
0

Displaying filter formula errors

This commit is contained in:
cryptogopher 2020-03-22 01:10:14 +01:00
parent 10325c9c39
commit de395ad1e0
3 changed files with 6 additions and 0 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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>