From 0e4a1b659be777f237ea1961d8f921951d52f33f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Veikko=20Lintuj=C3=A4rvi?= Date: Mon, 20 Mar 2023 17:46:42 +0200 Subject: [PATCH] Change membership to select --- .../live/order_live/form_component.html.heex | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/lib/osuuspuutarha_web/live/order_live/form_component.html.heex b/lib/osuuspuutarha_web/live/order_live/form_component.html.heex index b856e7a..676c495 100644 --- a/lib/osuuspuutarha_web/live/order_live/form_component.html.heex +++ b/lib/osuuspuutarha_web/live/order_live/form_component.html.heex @@ -39,11 +39,15 @@ %> <%= error_tag f, :location %> -
- <%= checkbox f, :is_member, class: "checkbox" %> - <%= label f, :is_member, "Olen jo Livonsaaren Osuuspuutarhan jäsen" %> - <%= error_tag f, :is_member %> -
+ <%= label f, :is_member, "Jäsenyytesi" %> + <%= select f, + :is_member, + [ + "Liity jäseneksi": :false, + "Olen jo Livonsaaren Osuuspuutarhan jäsen": :true, + ] + %> + <%= error_tag f, :is_member %>
<%= checkbox f, :split_invoice, class: "checkbox" %>