Skip to content

Commit d63f5d0

Browse files
committed
Update capacity labels and add help text
1 parent a930317 commit d63f5d0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lib/bike_brigade_web/core_components.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,9 @@ defmodule BikeBrigadeWeb.CoreComponents do
382382
<option :if={@prompt}>{@prompt}</option>
383383
{Phoenix.HTML.Form.options_for_select(@options, @value)}
384384
</select>
385+
<p :if={@help_text} class="mt-2 text-sm text-gray-500">
386+
{@help_text}
387+
</p>
385388
<.error :for={msg <- @errors}>{msg}</.error>
386389
</div>
387390
"""

lib/bike_brigade_web/live/rider_live/form_component.html.heex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@
5656
type="select"
5757
field={f[:capacity]}
5858
label="Capacity"
59-
options={[{"Small", :small}, {"Medium", :medium}, {"Large", :large}]}
59+
options={[{"Small (backpack)", :small}, {"Medium (rack/panniers)", :medium}, {"Large (trailer)", :large}]}
60+
help_text="Capacities are examples, and if your configuration is different use your judgement."
6061
/>
6162

6263
<.live_component

0 commit comments

Comments
 (0)