Skip to content

Instantly share code, notes, and snippets.

@Ninigi
Last active July 11, 2018 05:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ninigi/6f06c5e9e5dc8530985bc03bbabb97f5 to your computer and use it in GitHub Desktop.
Save Ninigi/6f06c5e9e5dc8530985bc03bbabb97f5 to your computer and use it in GitHub Desktop.
<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