Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove prompt from boolean select field #17

Merged
merged 1 commit into from
Aug 12, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/example/web/templates/admin/post/_form.html.eex
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<div class="field">
<%= label f, :draft %>
<%= select f, :draft, [{"True", true}, {"False", false}], prompt: "Choose one" %>
<%= select f, :draft, [{"True", true}, {"False", false}] %>
<%= error_tag f, :draft %>
</div>

Expand Down
2 changes: 1 addition & 1 deletion apps/torch/lib/mix/tasks/torch.gen.ex
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ defmodule Mix.Tasks.Torch.Gen do
{label(key), ~s(= number_input f, #{inspect(key)}, step: "any"), error(key)}
end
defp do_input({key, :boolean}) do
{label(key), ~s(= select f, #{inspect(key)}, [{"True", true}, {"False", false}], prompt: "Choose one"), error(key)}
{label(key), ~s(= select f, #{inspect(key)}, [{"True", true}, {"False", false}]), error(key)}
end
defp do_input({key, :text}) do
{label(key), ~s(= textarea f, #{inspect(key)}), error(key)}
Expand Down