Skip to content

Commit

Permalink
clean up help text
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre Tessier <[email protected]>
  • Loading branch information
puckpuck committed Dec 3, 2023
1 parent 53697ac commit 24b5922
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,14 @@
<%= error_tag f, :description %>

<%= label f, :enabled %>
<%= number_input f, :enabled, min: 0, max: 1, step: 0.1, "aria-describedby": "enabled_help_text" %>
<p id="enabled_help_text">A value between 0.0 and 1.0. 0.0 is always disabled, 1.0 is always enabled, and all values between set a percentage chance on each request.</p>
<%= number_input f, :enabled, min: 0, max: 1, step: 0.01, "aria-describedby": "enabled_help_text" %>
<p id="enabled_help_text" style="font-size: smaller; margin-top: -10px;">
A decimal value between 0 and 1 (inclusive)<br />
0.0 is always disabled<br />
1.0 is always enabled<br />
All values between set a percentage chance on each request<br />
example: 0.55 is enabled 55% of the time<br />
</p>
<%= error_tag f, :enabled %>

<%= submit "Save" %>
Expand Down

0 comments on commit 24b5922

Please sign in to comment.