Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

factored form components into separate partial to allow it to be (re)…

…rendered with different styling
  • Loading branch information...
commit cd02a08817038c3c89a098e42d8706f307e7ca0a 1 parent cafc4ce
@cwoodward cwoodward authored
Showing with 7 additions and 35 deletions.
  1. +7 −35 knitkit/app/widgets/signup/views/_signup_form.html.erb
View
42 knitkit/app/widgets/signup/views/_signup_form.html.erb
@@ -1,36 +1,8 @@
<div id="<%=widget_result_id%>"></div>
-<div>
- <%= form_remote_tag build_widget_url(:new) do %>
- <div class="form_settings">
- <p>
- <span>First Name</span>
- <%= text_field_tag :first_name %>
- </p>
- <p>
- <span>Last Name</span>
- <%= text_field_tag :last_name %>
- </p>
- <p>
- <span>Email</span>
- <%= text_field_tag :email %>
- </p>
- <p>
- <span>Username</span>
- <%= text_field_tag :username %>
- </p>
- <p>
- <span>Password</span>
- <%= password_field_tag :password %>
- </p>
- <p>
- <span>Confirm Password</span>
- <%= password_field_tag :password_confirmation %>
- </p>
- <p style="padding-top: 15px">
- <span>&nbsp;</span>
- <%= submit_tag "Sign Up", :disable_with => "Please wait...", :class => "submit", :style => 'margin: 0 0 0 0px;' %>
- </p>
- </div>
- <input type="hidden" value="<%=@login_url%>" name="login_url" />
- <% end %>
-</div>
+
+<div id="<%=widget_result_id%>_form">
+
+ <%= render "/signup_form_block" %>
+
+</div>
+
Please sign in to comment.
Something went wrong with that request. Please try again.