Skip to content

Instantly share code, notes, and snippets.

@Ninigi Ninigi/new.html.eex

Last active Jul 11, 2018
Embed
What would you like to do?
<h2>New Shop</h2>
<%= render "signup_form.html", Map.put(assigns, :action, shop_path(@conn, :signup)) %>
<%= form_for @changeset, @action, fn f -> %>
<%= if @changeset.action do %>
<div class="alert alert-danger">
<p>Oops, something went wrong! Please check the errors below.</p>
</div>
<% end %>
<div class="form-group">
<%= label f, :shopify_domain, class: "control-label" %>
<%= text_input f, :shopify_domain, class: "form-control" %>
<%= error_tag f, :shopify_domain %>
</div>
<div class="form-group">
<%= submit "Install", class: "btn btn-primary" %>
</div>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.