From e3482c57fd3908a060505a296ba6534a2dafdc81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Veikko=20Lintuj=C3=A4rvi?= Date: Tue, 16 Jan 2024 20:07:30 +0200 Subject: [PATCH] Small fix on membership select dropdown --- lib/osuuspuutarha/orders/order.ex | 2 +- lib/osuuspuutarha_web/live/order_live/form_component.html.heex | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/osuuspuutarha/orders/order.ex b/lib/osuuspuutarha/orders/order.ex index 62a3921..26b5f4c 100644 --- a/lib/osuuspuutarha/orders/order.ex +++ b/lib/osuuspuutarha/orders/order.ex @@ -8,7 +8,7 @@ defmodule Osuuspuutarha.Orders.Order do field :email, :string field :even_weeks, :boolean, default: false field :fname, :string - field :is_member, :boolean, default: false + field :is_member, :boolean field :lname, :string field :location, Ecto.Enum, 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 d77855b..63f0492 100644 --- a/lib/osuuspuutarha_web/live/order_live/form_component.html.heex +++ b/lib/osuuspuutarha_web/live/order_live/form_component.html.heex @@ -66,7 +66,8 @@ [ "Liity jäseneksi (kertamaksu 50€)": :false, "Olen jo Livonsaaren Osuuspuutarhan jäsen": :true, - ] + ], + prompt: "Ei valintaa" %> <%= error_tag f, :is_member %>