menu déroulant pour les méthodes de test des Condition

This commit is contained in:
Jérémy Lecour 2021-02-01 22:44:18 +01:00 committed by Jérémy Lecour
parent c923f75332
commit ba97d0a49e
3 changed files with 13 additions and 2 deletions

View file

@ -29,7 +29,7 @@
<div class="field">
<%= form.label :test_method %>
<%= form.text_field :test_method %>
<%= form.select :test_method, I18n.t("condition.test_methods").map { |key, value| [value, key] } %>
</div>
<div class="field">

View file

@ -1,6 +1,5 @@
<p id="notice"><%= notice %></p>
<%= turbo_frame_tag "filter" do %>
<%= render @filter %>

View file

@ -31,3 +31,15 @@
en:
hello: "Hello world"
condition:
test_methods:
match: "matches"
equal: "is equal to"
start: "starts with"
end: "ends with"
contain: "contains"
exist: "exists"
empty: "is empty"
date_before: "date is before"
date_after: "date is after"