Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

Make versions of functions that do not depend on a phoenix form #30

Open
bryanjos opened this issue Dec 14, 2018 · 0 comments
Open

Make versions of functions that do not depend on a phoenix form #30

bryanjos opened this issue Dec 14, 2018 · 0 comments

Comments

@bryanjos
Copy link
Contributor

Right now we can do this

<%= form_for @changeset, @route, fn f -> %>
  <%= row do %>
    <%= col medium: 6 do %>
      <%= text_input_stack f, :amount, label: gettext("Name"), input: [placeholder: gettext("Name"), required: true] %>
    <% end %>
    <%= col medium: 6 do %>
      <%= text_input_stack f, :reference_number, label: gettext("Number"), input: [placeholder: gettext("Number"), required: true] %>
    <% end %>
  <% end %>
<% end %>

but not

<%= form_tag("/hello", method: "get") do %>
  <%= row do %>
    <%= col medium: 6 do %>
      <%= text_input_stack :amount, label: gettext("Name"), input: [placeholder: gettext("Name"), required: true] %>
    <% end %>
    <%= col medium: 6 do %>
      <%= text_input_stack :reference_number, label: gettext("Number"), input: [placeholder: gettext("Number"), required: true] %>
    <% end %>
  <% end %>
<% end %>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant